diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 9fd10260e9..cbd2e9892f 100644 --- a/.agents/skills/cli-admin/SKILL.md +++ b/.agents/skills/cli-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-admin -description: CLI tool (csdk) for the admin API — provides CRUD commands for 30 tables and 12 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 4 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 30 tables and 12 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 4 custom operations ## Usage @@ -57,18 +57,18 @@ See the `references/` directory for detailed per-entity API documentation: - [auth](references/auth.md) - [config](references/config.md) - [app-admin-grant](references/app-admin-grant.md) +- [app-capability-default-capability](references/app-capability-default-capability.md) +- [app-capability-default-grant](references/app-capability-default-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-invite](references/app-invite.md) - [app-membership](references/app-membership.md) - [app-membership-default](references/app-membership-default.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-permission](references/app-permission.md) -- [app-permission-default](references/app-permission-default.md) -- [app-permission-default-grant](references/app-permission-default-grant.md) -- [app-permission-default-permission](references/app-permission-default-permission.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) +- [org-capability-default-capability](references/org-capability-default-capability.md) +- [org-capability-default-grant](references/org-capability-default-grant.md) - [org-chart-edge](references/org-chart-edge.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [org-claimed-invite](references/org-claimed-invite.md) @@ -82,19 +82,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-membership-default](references/org-membership-default.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-permission](references/org-permission.md) -- [org-permission-default](references/org-permission-default.md) -- [org-permission-default-grant](references/org-permission-default-grant.md) -- [org-permission-default-permission](references/org-permission-default-permission.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/.agents/skills/cli-admin/references/app-capability-default-capability.md b/.agents/skills/cli-admin/references/app-capability-default-capability.md new file mode 100644 index 0000000000..92ce65bdf7 --- /dev/null +++ b/.agents/skills/cli-admin/references/app-capability-default-capability.md @@ -0,0 +1,68 @@ +# appCapabilityDefaultCapability + + + +CRUD operations for AppCapabilityDefaultCapability records via csdk CLI + +## Usage + +```bash +csdk app-capability-default-capability list +csdk app-capability-default-capability list --where.. --orderBy +csdk app-capability-default-capability list --limit 10 --after +csdk app-capability-default-capability find-first --where.. +csdk app-capability-default-capability get --id +csdk app-capability-default-capability create --capabilityId +csdk app-capability-default-capability update --id [--capabilityId ] +csdk app-capability-default-capability delete --id +``` + +## Examples + +### List appCapabilityDefaultCapability records + +```bash +csdk app-capability-default-capability list +``` + +### List appCapabilityDefaultCapability records with pagination + +```bash +csdk app-capability-default-capability list --limit 10 --offset 0 +``` + +### List appCapabilityDefaultCapability records with cursor pagination + +```bash +csdk app-capability-default-capability list --limit 10 --after +``` + +### Find first matching appCapabilityDefaultCapability + +```bash +csdk app-capability-default-capability find-first --where.id.equalTo +``` + +### List appCapabilityDefaultCapability records with field selection + +```bash +csdk app-capability-default-capability list --select id,id +``` + +### List appCapabilityDefaultCapability records with filtering and ordering + +```bash +csdk app-capability-default-capability list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appCapabilityDefaultCapability + +```bash +csdk app-capability-default-capability create --capabilityId +``` + +### Get a appCapabilityDefaultCapability by id + +```bash +csdk app-capability-default-capability get --id +``` diff --git a/.agents/skills/cli-admin/references/app-capability-default-grant.md b/.agents/skills/cli-admin/references/app-capability-default-grant.md new file mode 100644 index 0000000000..408ee1aa0d --- /dev/null +++ b/.agents/skills/cli-admin/references/app-capability-default-grant.md @@ -0,0 +1,68 @@ +# appCapabilityDefaultGrant + + + +CRUD operations for AppCapabilityDefaultGrant records via csdk CLI + +## Usage + +```bash +csdk app-capability-default-grant list +csdk app-capability-default-grant list --where.. --orderBy +csdk app-capability-default-grant list --limit 10 --after +csdk app-capability-default-grant find-first --where.. +csdk app-capability-default-grant get --id +csdk app-capability-default-grant create --capabilityId [--grantorId ] [--isGrant ] +csdk app-capability-default-grant update --id [--capabilityId ] [--grantorId ] [--isGrant ] +csdk app-capability-default-grant delete --id +``` + +## Examples + +### List appCapabilityDefaultGrant records + +```bash +csdk app-capability-default-grant list +``` + +### List appCapabilityDefaultGrant records with pagination + +```bash +csdk app-capability-default-grant list --limit 10 --offset 0 +``` + +### List appCapabilityDefaultGrant records with cursor pagination + +```bash +csdk app-capability-default-grant list --limit 10 --after +``` + +### Find first matching appCapabilityDefaultGrant + +```bash +csdk app-capability-default-grant find-first --where.id.equalTo +``` + +### List appCapabilityDefaultGrant records with field selection + +```bash +csdk app-capability-default-grant list --select id,id +``` + +### List appCapabilityDefaultGrant records with filtering and ordering + +```bash +csdk app-capability-default-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appCapabilityDefaultGrant + +```bash +csdk app-capability-default-grant create --capabilityId [--grantorId ] [--isGrant ] +``` + +### Get a appCapabilityDefaultGrant by id + +```bash +csdk app-capability-default-grant get --id +``` diff --git a/.agents/skills/cli-admin/references/app-grant.md b/.agents/skills/cli-admin/references/app-grant.md index 650e3ddcd1..56706c06b3 100644 --- a/.agents/skills/cli-admin/references/app-grant.md +++ b/.agents/skills/cli-admin/references/app-grant.md @@ -12,8 +12,8 @@ csdk app-grant list --where.. --orderBy csdk app-grant list --limit 10 --after csdk app-grant find-first --where.. csdk app-grant get --id -csdk app-grant create [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] -csdk app-grant update --id [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk app-grant create [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] +csdk app-grant update --id [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] csdk app-grant delete --id ``` @@ -58,7 +58,7 @@ csdk app-grant list --where.id.equalTo --orderBy ID_ASC ### Create a appGrant ```bash -csdk app-grant create [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk app-grant create [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] ``` ### Get a appGrant by id diff --git a/.agents/skills/cli-admin/references/app-membership-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/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..58ba9fb261 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 ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--createChildCascadeOwners ] [--createdBy ] [--createdByPrincipal ] [--deleteMemberCascadeChildren ] [--inviteProfileAssignmentMode ] [--limitAllocationMode ] [--populateMemberEmail ] [--updatedBy ] [--updatedByPrincipal ] +csdk org-membership-setting update --id [--allowExternalMembers ] [--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 ] [--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-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-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 309d60d810..a92609ddbd 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 80 tables and 17 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 86 tables and 16 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 80 tables and 17 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 86 tables and 16 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) @@ -82,19 +85,21 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.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-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) - [platform-site-app-link](references/platform-site-app-link.md) @@ -108,6 +113,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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) @@ -139,7 +145,6 @@ See the `references/` directory for detailed per-entity API documentation: - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.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) - [accept-database-transfer](references/accept-database-transfer.md) 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/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/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-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-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/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/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/route-binding.md b/.agents/skills/cli-api/references/route-binding.md index 8914cc7254..91e9078040 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 ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] +csdk route-binding update --id [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--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 ] [--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..972c9ff217 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 [--config ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] +csdk route update --id [--config ] [--databaseId ] [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--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 [--config ] [--isActive ] [--method ] [--path ] [--priority ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] ``` ### Get a route by 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-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index 467e1e4a8f..b6d0b1a587 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-auth -description: CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 37 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 37 custom operations ## Usage @@ -97,9 +97,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-password](references/set-password.md) - [sign-in](references/sign-in.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-magic-link](references/sign-in-magic-link.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-out](references/sign-out.md) - [sign-up](references/sign-up.md) +- [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) diff --git a/.agents/skills/cli-auth/references/sign-in-magic-link.md b/.agents/skills/cli-auth/references/sign-in-magic-link.md new file mode 100644 index 0000000000..9df3331174 --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-in-magic-link.md @@ -0,0 +1,19 @@ +# signInMagicLink + + + +Execute the signInMagicLink mutation + +## Usage + +```bash +csdk sign-in-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` + +## Examples + +### Run signInMagicLink + +```bash +csdk sign-in-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` diff --git a/.agents/skills/cli-auth/references/sign-up-magic-link.md b/.agents/skills/cli-auth/references/sign-up-magic-link.md new file mode 100644 index 0000000000..d580e89628 --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-up-magic-link.md @@ -0,0 +1,19 @@ +# signUpMagicLink + + + +Execute the signUpMagicLink mutation + +## Usage + +```bash +csdk sign-up-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` + +## Examples + +### Run signUpMagicLink + +```bash +csdk sign-up-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index 1523187de2..6b259539db 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 113 tables and 56 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 113 tables and 56 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,19 @@ 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) +- [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 +87,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 +97,8 @@ 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-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,13 +107,29 @@ 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-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) @@ -111,6 +144,18 @@ 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-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) @@ -125,22 +170,47 @@ 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) - [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-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) - [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-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 +221,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/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..c642419529 --- /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 ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build update --id [--actorId ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--databaseId ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--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 ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--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/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-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..f879bab9c8 --- /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 ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] +csdk database-function-graph-execution-node-state update --id [--callbackInputs ] [--callbackMeta ] [--callbackTokenHash ] [--completedAt ] [--databaseId ] [--errorCode ] [--errorMessage ] [--executionId ] [--nodeName ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] +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 ] [--nodePath ] [--outputId ] [--startedAt ] [--status ] +``` + +### 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..0de911b8cb 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 ] [--catalogImageId ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--volatile ] +csdk function-definition update --id [--accessChannels ] [--catalogImageId ] [--category ] [--concurrency ] [--createdByPrincipal ] [--databaseId ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--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 ] [--catalogImageId ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--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..c7b911478a 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 ] [--catalogImageId ] [--concurrency ] [--createdByPrincipal ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] [--updatedByPrincipal ] +csdk function-deployment update --id [--annotations ] [--catalogImageId ] [--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 ] [--catalogImageId ] [--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-invocation.md b/.agents/skills/cli-compute/references/function-invocation.md index 920210cca9..ed83b6ae93 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 --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--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 --databaseId --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] ``` ### Get a functionInvocation by id 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/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..332a1fd79c --- /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 ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk platform-build update --id [--actorId ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--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 ] [--catalogImageId ] [--commitSha ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--jobId ] [--logs ] [--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-function-definition.md b/.agents/skills/cli-compute/references/platform-function-definition.md index 0f4b696f46..42f2486bae 100644 --- a/.agents/skills/cli-compute/references/platform-function-definition.md +++ b/.agents/skills/cli-compute/references/platform-function-definition.md @@ -12,8 +12,8 @@ csdk platform-function-definition list --where.. --orderBy csdk platform-function-definition find-first --where.. csdk platform-function-definition get --id -csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] -csdk platform-function-definition update --id [--accessChannels ] [--billable ] [--category ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--catalogImageId ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--updatedByPrincipal ] [--volatile ] +csdk platform-function-definition update --id [--accessChannels ] [--billable ] [--catalogImageId ] [--category ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--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 ] [--billable ] [--catalogImageId ] [--concurrency ] [--createdByPrincipal ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--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..4ab481cd73 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 ] [--catalogImageId ] [--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 ] [--catalogImageId ] [--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 ] [--catalogImageId ] [--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..f429cd1729 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 --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] +csdk platform-function-invocation update --id [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--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 --taskIdentifier [--actorId ] [--apiBindingId ] [--channel ] [--completedAt ] [--createdByPrincipal ] [--databaseId ] [--definitionScope ] [--durationMs ] [--error ] [--functionDefinitionId ] [--graphExecutionId ] [--jobId ] [--parentInvocationId ] [--payload ] [--provenance ] [--result ] [--startedAt ] [--status ] ``` ### Get a platformFunctionInvocation by id 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-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-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..c0c47938cd --- /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 ] [--requiredChecks ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk platform-repository update --id [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--name ] [--ownerId ] [--provider ] [--requiredChecks ] [--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 ] [--requiredChecks ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +``` + +### Get a platformRepository by id + +```bash +csdk platform-repository get --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..091514ce23 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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-resource-definition update --id [--annotations ] [--catalogImageId ] [--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 ] [--catalogImageId ] [--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.md b/.agents/skills/cli-compute/references/platform-resource.md index 39977b74ee..e511460b02 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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-resource update --id [--annotations ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--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..98798887b8 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 --catalogImageId --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --updatedBy --updatedByPrincipal +csdk platform-resources-health update --id [--annotations ] [--catalogImageId ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--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 --catalogImageId --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --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/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-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..58c50b9289 --- /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 ] [--requiredChecks ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +csdk repository update --id [--cloneUrl ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--defaultBranch ] [--description ] [--embedding ] [--externalId ] [--isArchived ] [--metadata ] [--name ] [--ownerId ] [--provider ] [--requiredChecks ] [--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 ] [--requiredChecks ] [--updatedBy ] [--updatedByPrincipal ] [--visibility ] +``` + +### Get a repository by id + +```bash +csdk repository get --id +``` diff --git a/.agents/skills/cli-compute/references/resource-definition.md b/.agents/skills/cli-compute/references/resource-definition.md index 398610f913..57ac7a45e8 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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--defaultSpec ] [--description ] [--integrations ] [--labels ] [--paramsSchema ] [--requiredConfigs ] [--requiredSecrets ] [--stepUpMinAge ] [--updatedBy ] [--updatedByPrincipal ] +csdk resource-definition update --id [--annotations ] [--catalogImageId ] [--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 ] [--catalogImageId ] [--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.md b/.agents/skills/cli-compute/references/resource.md index 7c9b14c8af..6bea79d352 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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--installationId ] [--integrations ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--realm ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--spec ] [--status ] [--statusObserved ] [--updatedBy ] [--updatedByPrincipal ] +csdk resource update --id [--annotations ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--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 ] [--catalogImageId ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--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..a82f023225 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 --catalogImageId --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --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 --updatedByPrincipal +csdk resources-health update --id [--annotations ] [--catalogImageId ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--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 ] [--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 --catalogImageId --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --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 --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..dd8d2e47e9 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 8 tables and 17 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 8 tables and 17 custom operations ## Usage @@ -57,10 +57,17 @@ See the `references/` directory for detailed per-entity API documentation: - [auth](references/auth.md) - [config](references/config.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) 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-infra/SKILL.md b/.agents/skills/cli-infra/SKILL.md index 2437911365..b8e7f05d37 100644 --- a/.agents/skills/cli-infra/SKILL.md +++ b/.agents/skills/cli-infra/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-infra -description: CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 custom operations +description: CLI tool (csdk) for the infra API — provides CRUD commands for 11 tables and 7 custom operations --- # cli-infra -CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 custom operations +CLI tool (csdk) for the infra API — provides CRUD commands for 11 tables and 7 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. db-preset) -csdk db-preset list -csdk db-preset get --id -csdk db-preset create -- +# CRUD for any table (e.g. content-preset) +csdk content-preset list +csdk content-preset get --id +csdk content-preset create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty db-preset list +csdk --no-tty content-preset list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty db-preset list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk db-preset list +csdk content-preset list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty db-preset create -- +csdk --no-tty content-preset create -- ``` ## References @@ -56,6 +56,7 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -68,5 +69,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-infra/references/content-preset.md b/.agents/skills/cli-infra/references/content-preset.md new file mode 100644 index 0000000000..aea512d5cb --- /dev/null +++ b/.agents/skills/cli-infra/references/content-preset.md @@ -0,0 +1,68 @@ +# contentPreset + + + +CRUD operations for ContentPreset records via csdk CLI + +## Usage + +```bash +csdk content-preset list +csdk content-preset list --where.. --orderBy +csdk content-preset list --limit 10 --after +csdk content-preset find-first --where.. +csdk content-preset get --id +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +csdk content-preset update --id [--active ] [--commitId ] [--definition ] [--description ] [--kind ] [--label ] [--slug ] [--storeId ] +csdk content-preset delete --id +``` + +## Examples + +### List contentPreset records + +```bash +csdk content-preset list +``` + +### List contentPreset records with pagination + +```bash +csdk content-preset list --limit 10 --offset 0 +``` + +### List contentPreset records with cursor pagination + +```bash +csdk content-preset list --limit 10 --after +``` + +### Find first matching contentPreset + +```bash +csdk content-preset find-first --where.id.equalTo +``` + +### List contentPreset records with field selection + +```bash +csdk content-preset list --select id,id +``` + +### List contentPreset records with filtering and ordering + +```bash +csdk content-preset list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a contentPreset + +```bash +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +``` + +### Get a contentPreset by id + +```bash +csdk content-preset get --id +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..0f1ce80662 --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md b/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..78c8099e2d --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetAndCommit + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..33e719276f --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md index c2e22a0d72..4c671c3169 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 87 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 87 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) @@ -114,9 +122,11 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-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 +137,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..6eb2e0579a 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 ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--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 ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--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 ] [--hasResources ] [--hasRuns ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--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..657c69acc0 100644 --- a/.agents/skills/cli-modules/references/app-module.md +++ b/.agents/skills/cli-modules/references/app-module.md @@ -12,8 +12,8 @@ csdk app-module list --where.. --orderBy csdk app-module list --limit 10 --after csdk app-module find-first --where.. csdk app-module get --id -csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk app-module update --id [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk app-module update --id [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk app-module delete --id ``` @@ -58,7 +58,7 @@ csdk app-module list --where.id.equalTo --orderBy ID_ASC ### Create a appModule ```bash -csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a appModule by id diff --git a/.agents/skills/cli-modules/references/billing-module.md b/.agents/skills/cli-modules/references/billing-module.md index 354a6386a3..73a4825097 100644 --- a/.agents/skills/cli-modules/references/billing-module.md +++ b/.agents/skills/cli-modules/references/billing-module.md @@ -12,8 +12,8 @@ csdk billing-module list --where.. --orderBy csdk billing-module list --limit 10 --after csdk billing-module find-first --where.. csdk billing-module get --id -csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] -csdk billing-module update --id [--apiName ] [--balancesTableId ] [--balancesTableName ] [--databaseId ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module update --id [--apiName ] [--balancesTableId ] [--balancesTableName ] [--databaseId ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] csdk billing-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingModule ```bash -csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-modules/references/billing-provider-module.md b/.agents/skills/cli-modules/references/billing-provider-module.md index e6a3518fa9..90fb26beb0 100644 --- a/.agents/skills/cli-modules/references/billing-provider-module.md +++ b/.agents/skills/cli-modules/references/billing-provider-module.md @@ -12,8 +12,8 @@ csdk billing-provider-module list --where.. --orderBy csdk billing-provider-module find-first --where.. csdk billing-provider-module get --id -csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] -csdk billing-provider-module update --id [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--databaseId ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] +csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] +csdk billing-provider-module update --id [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--databaseId ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] csdk billing-provider-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-provider-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingProviderModule ```bash -csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] +csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] ``` ### Get a billingProviderModule by id diff --git a/.agents/skills/cli-modules/references/capabilities-module.md b/.agents/skills/cli-modules/references/capabilities-module.md new file mode 100644 index 0000000000..e5d5ca56a2 --- /dev/null +++ b/.agents/skills/cli-modules/references/capabilities-module.md @@ -0,0 +1,68 @@ +# capabilitiesModule + + + +CRUD operations for CapabilitiesModule records via csdk CLI + +## Usage + +```bash +csdk capabilities-module list +csdk capabilities-module list --where.. --orderBy +csdk capabilities-module list --limit 10 --after +csdk capabilities-module find-first --where.. +csdk capabilities-module get --id +csdk capabilities-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk capabilities-module update --id [--actorTableId ] [--apiName ] [--bitlen ] [--databaseId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] +csdk capabilities-module delete --id +``` + +## Examples + +### List capabilitiesModule records + +```bash +csdk capabilities-module list +``` + +### List capabilitiesModule records with pagination + +```bash +csdk capabilities-module list --limit 10 --offset 0 +``` + +### List capabilitiesModule records with cursor pagination + +```bash +csdk capabilities-module list --limit 10 --after +``` + +### Find first matching capabilitiesModule + +```bash +csdk capabilities-module find-first --where.id.equalTo +``` + +### List capabilitiesModule records with field selection + +```bash +csdk capabilities-module list --select id,id +``` + +### List capabilitiesModule records with filtering and ordering + +```bash +csdk capabilities-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a capabilitiesModule + +```bash +csdk capabilities-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a capabilitiesModule by id + +```bash +csdk capabilities-module get --id +``` diff --git a/.agents/skills/cli-modules/references/catalog-module.md b/.agents/skills/cli-modules/references/catalog-module.md index 5b2a308304..1844f709db 100644 --- a/.agents/skills/cli-modules/references/catalog-module.md +++ b/.agents/skills/cli-modules/references/catalog-module.md @@ -12,8 +12,8 @@ csdk catalog-module list --where.. --orderBy csdk catalog-module list --limit 10 --after csdk catalog-module find-first --where.. csdk catalog-module get --id -csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultPermissions ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] -csdk catalog-module update --id [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--databaseId ] [--defaultPermissions ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--scope ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] +csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--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 ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--databaseId ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--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 ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--imagesTableId ] [--imagesTableName ] [--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-settings-module.md b/.agents/skills/cli-modules/references/database-settings-module.md index b248a0900f..ec45aff236 100644 --- a/.agents/skills/cli-modules/references/database-settings-module.md +++ b/.agents/skills/cli-modules/references/database-settings-module.md @@ -12,8 +12,8 @@ csdk database-settings-module list --where.. --orderBy csdk database-settings-module find-first --where.. csdk database-settings-module get --id -csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] -csdk database-settings-module update --id [--apiName ] [--databaseId ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--scope ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module update --id [--apiName ] [--databaseId ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--scope ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] csdk database-settings-module delete --id ``` @@ -58,7 +58,7 @@ csdk database-settings-module list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSettingsModule ```bash -csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] ``` ### Get a databaseSettingsModule by id diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index 1de713d493..a365281b88 100644 --- a/.agents/skills/cli-modules/references/db-usage-module.md +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -12,8 +12,8 @@ csdk db-usage-module list --where.. --orderBy csdk db-usage-module list --limit 10 --after csdk db-usage-module find-first --where.. csdk db-usage-module get --id -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] -csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] csdk db-usage-module delete --id ``` @@ -58,7 +58,7 @@ csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC ### Create a dbUsageModule ```bash -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/domain-module.md b/.agents/skills/cli-modules/references/domain-module.md index b62e692739..dec550e2ce 100644 --- a/.agents/skills/cli-modules/references/domain-module.md +++ b/.agents/skills/cli-modules/references/domain-module.md @@ -12,8 +12,8 @@ csdk domain-module list --where.. --orderBy csdk domain-module list --limit 10 --after csdk domain-module find-first --where.. csdk domain-module get --id -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk domain-module delete --id ``` @@ -58,7 +58,7 @@ csdk domain-module list --where.id.equalTo --orderBy ID_ASC ### Create a domainModule ```bash -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a domainModule by id diff --git a/.agents/skills/cli-modules/references/email-sender-module.md b/.agents/skills/cli-modules/references/email-sender-module.md new file mode 100644 index 0000000000..cd5e793690 --- /dev/null +++ b/.agents/skills/cli-modules/references/email-sender-module.md @@ -0,0 +1,68 @@ +# emailSenderModule + + + +CRUD operations for EmailSenderModule records via csdk CLI + +## Usage + +```bash +csdk email-sender-module list +csdk email-sender-module list --where.. --orderBy +csdk email-sender-module list --limit 10 --after +csdk email-sender-module find-first --where.. +csdk email-sender-module get --id +csdk email-sender-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteSurfaceModuleId ] +csdk email-sender-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteSurfaceModuleId ] +csdk email-sender-module delete --id +``` + +## Examples + +### List emailSenderModule records + +```bash +csdk email-sender-module list +``` + +### List emailSenderModule records with pagination + +```bash +csdk email-sender-module list --limit 10 --offset 0 +``` + +### List emailSenderModule records with cursor pagination + +```bash +csdk email-sender-module list --limit 10 --after +``` + +### Find first matching emailSenderModule + +```bash +csdk email-sender-module find-first --where.id.equalTo +``` + +### List emailSenderModule records with field selection + +```bash +csdk email-sender-module list --select id,id +``` + +### List emailSenderModule records with filtering and ordering + +```bash +csdk email-sender-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailSenderModule + +```bash +csdk email-sender-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteSurfaceModuleId ] +``` + +### Get a emailSenderModule by id + +```bash +csdk email-sender-module get --id +``` diff --git a/.agents/skills/cli-modules/references/events-module.md b/.agents/skills/cli-modules/references/events-module.md index 23dc7e10a3..46e28db596 100644 --- a/.agents/skills/cli-modules/references/events-module.md +++ b/.agents/skills/cli-modules/references/events-module.md @@ -12,8 +12,8 @@ csdk events-module list --where.. --orderBy csdk events-module list --limit 10 --after csdk events-module find-first --where.. csdk events-module get --id -csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] -csdk events-module update --id [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--scope ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] +csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] +csdk events-module update --id [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--scope ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] csdk events-module delete --id ``` @@ -58,7 +58,7 @@ csdk events-module list --where.id.equalTo --orderBy ID_ASC ### Create a eventsModule ```bash -csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] +csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] ``` ### Get a eventsModule by id diff --git a/.agents/skills/cli-modules/references/file-ref-field.md b/.agents/skills/cli-modules/references/file-ref-field.md new file mode 100644 index 0000000000..39f1ec87ef --- /dev/null +++ b/.agents/skills/cli-modules/references/file-ref-field.md @@ -0,0 +1,68 @@ +# fileRefField + + + +CRUD operations for FileRefField records via csdk CLI + +## Usage + +```bash +csdk file-ref-field list +csdk file-ref-field list --where.. --orderBy +csdk file-ref-field list --limit 10 --after +csdk file-ref-field find-first --where.. +csdk file-ref-field get --id +csdk file-ref-field create --databaseId --fieldId --storageModuleId --tableId [--bucketKey ] [--bucketTags ] [--enforceFk ] [--isPublic ] +csdk file-ref-field update --id [--bucketKey ] [--bucketTags ] [--databaseId ] [--enforceFk ] [--fieldId ] [--isPublic ] [--storageModuleId ] [--tableId ] +csdk file-ref-field delete --id +``` + +## Examples + +### List fileRefField records + +```bash +csdk file-ref-field list +``` + +### List fileRefField records with pagination + +```bash +csdk file-ref-field list --limit 10 --offset 0 +``` + +### List fileRefField records with cursor pagination + +```bash +csdk file-ref-field list --limit 10 --after +``` + +### Find first matching fileRefField + +```bash +csdk file-ref-field find-first --where.id.equalTo +``` + +### List fileRefField records with field selection + +```bash +csdk file-ref-field list --select id,id +``` + +### List fileRefField records with filtering and ordering + +```bash +csdk file-ref-field list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a fileRefField + +```bash +csdk file-ref-field create --databaseId --fieldId --storageModuleId --tableId [--bucketKey ] [--bucketTags ] [--enforceFk ] [--isPublic ] +``` + +### Get a fileRefField by id + +```bash +csdk file-ref-field get --id +``` diff --git a/.agents/skills/cli-modules/references/function-deployment-module.md b/.agents/skills/cli-modules/references/function-deployment-module.md index 5621082b0f..f128cf27c2 100644 --- a/.agents/skills/cli-modules/references/function-deployment-module.md +++ b/.agents/skills/cli-modules/references/function-deployment-module.md @@ -12,8 +12,8 @@ csdk function-deployment-module list --where.. --orderBy csdk function-deployment-module find-first --where.. csdk function-deployment-module get --id -csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk function-deployment-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-deployment-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk function-deployment-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-deployment-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionDeploymentModule ```bash -csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a functionDeploymentModule by id diff --git a/.agents/skills/cli-modules/references/function-invocation-module.md b/.agents/skills/cli-modules/references/function-invocation-module.md index b038f800c0..28bfeccb45 100644 --- a/.agents/skills/cli-modules/references/function-invocation-module.md +++ b/.agents/skills/cli-modules/references/function-invocation-module.md @@ -12,8 +12,8 @@ csdk function-invocation-module list --where.. --orderBy csdk function-invocation-module find-first --where.. csdk function-invocation-module get --id -csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk function-invocation-module update --id [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-invocation-module update --id [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk function-invocation-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-invocation-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionInvocationModule ```bash -csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a functionInvocationModule by id diff --git a/.agents/skills/cli-modules/references/function-module.md b/.agents/skills/cli-modules/references/function-module.md index 649deca7f8..4f42fe5462 100644 --- a/.agents/skills/cli-modules/references/function-module.md +++ b/.agents/skills/cli-modules/references/function-module.md @@ -12,8 +12,8 @@ csdk function-module list --where.. --orderBy csdk function-module list --limit 10 --after csdk function-module find-first --where.. csdk function-module get --id -csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] -csdk function-module update --id [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--databaseId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] [--scope ] +csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] +csdk function-module update --id [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--databaseId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] [--scope ] csdk function-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionModule ```bash -csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] +csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] ``` ### Get a functionModule by id diff --git a/.agents/skills/cli-modules/references/graph-execution-module.md b/.agents/skills/cli-modules/references/graph-execution-module.md index 56c672ad15..d87061b3ac 100644 --- a/.agents/skills/cli-modules/references/graph-execution-module.md +++ b/.agents/skills/cli-modules/references/graph-execution-module.md @@ -12,8 +12,8 @@ csdk graph-execution-module list --where.. --orderBy csdk graph-execution-module list --limit 10 --after csdk graph-execution-module find-first --where.. csdk graph-execution-module get --id -csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk graph-execution-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--graphModuleId ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk graph-execution-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--graphModuleId ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk graph-execution-module delete --id ``` @@ -58,7 +58,7 @@ csdk graph-execution-module list --where.id.equalTo --orderBy ID_ASC ### Create a graphExecutionModule ```bash -csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a graphExecutionModule by id diff --git a/.agents/skills/cli-modules/references/graph-module.md b/.agents/skills/cli-modules/references/graph-module.md index 80b5bd321f..98b4058c1f 100644 --- a/.agents/skills/cli-modules/references/graph-module.md +++ b/.agents/skills/cli-modules/references/graph-module.md @@ -12,8 +12,8 @@ csdk graph-module list --where.. --orderBy csdk graph-module list --limit 10 --after csdk graph-module find-first --where.. csdk graph-module get --id -csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] -csdk graph-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] +csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk graph-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] csdk graph-module delete --id ``` @@ -58,7 +58,7 @@ csdk graph-module list --where.id.equalTo --orderBy ID_ASC ### Create a graphModule ```bash -csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] ``` ### Get a graphModule by id diff --git a/.agents/skills/cli-modules/references/hierarchy-module.md b/.agents/skills/cli-modules/references/hierarchy-module.md index 83b155401c..4f91d9554b 100644 --- a/.agents/skills/cli-modules/references/hierarchy-module.md +++ b/.agents/skills/cli-modules/references/hierarchy-module.md @@ -12,8 +12,8 @@ csdk hierarchy-module list --where.. --orderBy csdk hierarchy-module list --limit 10 --after csdk hierarchy-module find-first --where.. csdk hierarchy-module get --id -csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultPermissions ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] -csdk hierarchy-module update --id [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--scope ] [--sprtTableName ] [--usersTableId ] +csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultCapabilities ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] +csdk hierarchy-module update --id [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--scope ] [--sprtTableName ] [--usersTableId ] csdk hierarchy-module delete --id ``` @@ -58,7 +58,7 @@ csdk hierarchy-module list --where.id.equalTo --orderBy ID_ASC ### Create a hierarchyModule ```bash -csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultPermissions ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] +csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultCapabilities ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] ``` ### Get a hierarchyModule by id diff --git a/.agents/skills/cli-modules/references/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/profiles-module.md b/.agents/skills/cli-modules/references/profiles-module.md index eca4d8a0cc..6a22fed330 100644 --- a/.agents/skills/cli-modules/references/profiles-module.md +++ b/.agents/skills/cli-modules/references/profiles-module.md @@ -12,8 +12,8 @@ csdk profiles-module list --where.. --orderBy csdk profiles-module list --limit 10 --after csdk profiles-module find-first --where.. csdk profiles-module get --id -csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] -csdk profiles-module update --id [--actorTableId ] [--apiName ] [--databaseId ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] +csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk profiles-module update --id [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--databaseId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] csdk profiles-module delete --id ``` @@ -58,7 +58,7 @@ csdk profiles-module list --where.id.equalTo --orderBy ID_ASC ### Create a profilesModule ```bash -csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] ``` ### Get a profilesModule by id diff --git a/.agents/skills/cli-modules/references/rate-limit-meters-module.md b/.agents/skills/cli-modules/references/rate-limit-meters-module.md index c76c2e1aa4..f92f5a2cdd 100644 --- a/.agents/skills/cli-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/cli-modules/references/rate-limit-meters-module.md @@ -12,8 +12,8 @@ csdk rate-limit-meters-module list --where.. --orderBy csdk rate-limit-meters-module find-first --where.. csdk rate-limit-meters-module get --id -csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] -csdk rate-limit-meters-module update --id [--apiName ] [--checkRateLimitFunction ] [--databaseId ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module update --id [--apiName ] [--checkRateLimitFunction ] [--databaseId ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] csdk rate-limit-meters-module delete --id ``` @@ -58,7 +58,7 @@ csdk rate-limit-meters-module list --where.id.equalTo --orderBy ID_ASC ### Create a rateLimitMetersModule ```bash -csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] ``` ### Get a rateLimitMetersModule by id diff --git a/.agents/skills/cli-modules/references/repository-module.md b/.agents/skills/cli-modules/references/repository-module.md new file mode 100644 index 0000000000..2a6dceef55 --- /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 ] [--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 ] [--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 ] [--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..75ccc66088 100644 --- a/.agents/skills/cli-modules/references/resource-module.md +++ b/.agents/skills/cli-modules/references/resource-module.md @@ -12,8 +12,8 @@ csdk resource-module list --where.. --orderBy csdk resource-module list --limit 10 --after csdk resource-module find-first --where.. csdk resource-module get --id -csdk resource-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] -csdk resource-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--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 ] [--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 ] [--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..e1ef1b0632 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 ] +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 ] 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 ] ``` ### 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..df13c14384 100644 --- a/.agents/skills/cli-modules/references/site-surface-module.md +++ b/.agents/skills/cli-modules/references/site-surface-module.md @@ -12,8 +12,8 @@ csdk site-surface-module list --where.. --orderBy csdk site-surface-module list --limit 10 --after csdk site-surface-module find-first --where.. csdk site-surface-module get --id -csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] -csdk site-surface-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] csdk site-surface-module delete --id ``` @@ -58,7 +58,7 @@ csdk site-surface-module list --where.id.equalTo --orderBy ID_ASC ### Create a siteSurfaceModule ```bash -csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] ``` ### Get a siteSurfaceModule by id diff --git a/.agents/skills/cli-modules/references/storage-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..efe42886b7 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] -csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-modules/references/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-settings-security-module.md b/.agents/skills/cli-modules/references/user-settings-security-module.md new file mode 100644 index 0000000000..75078a141c --- /dev/null +++ b/.agents/skills/cli-modules/references/user-settings-security-module.md @@ -0,0 +1,68 @@ +# userSettingsSecurityModule + + + +CRUD operations for UserSettingsSecurityModule records via csdk CLI + +## Usage + +```bash +csdk user-settings-security-module list +csdk user-settings-security-module list --where.. --orderBy +csdk user-settings-security-module list --limit 10 --after +csdk user-settings-security-module find-first --where.. +csdk user-settings-security-module get --id +csdk user-settings-security-module create --databaseId [--apiName ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-settings-security-module update --id [--apiName ] [--databaseId ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-settings-security-module delete --id +``` + +## Examples + +### List userSettingsSecurityModule records + +```bash +csdk user-settings-security-module list +``` + +### List userSettingsSecurityModule records with pagination + +```bash +csdk user-settings-security-module list --limit 10 --offset 0 +``` + +### List userSettingsSecurityModule records with cursor pagination + +```bash +csdk user-settings-security-module list --limit 10 --after +``` + +### Find first matching userSettingsSecurityModule + +```bash +csdk user-settings-security-module find-first --where.id.equalTo +``` + +### List userSettingsSecurityModule records with field selection + +```bash +csdk user-settings-security-module list --select id,id +``` + +### List userSettingsSecurityModule records with filtering and ordering + +```bash +csdk user-settings-security-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userSettingsSecurityModule + +```bash +csdk user-settings-security-module create --databaseId [--apiName ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a userSettingsSecurityModule by id + +```bash +csdk user-settings-security-module get --id +``` diff --git a/.agents/skills/cli-modules/references/webhook-module.md b/.agents/skills/cli-modules/references/webhook-module.md index e11626fccb..ec1cd57484 100644 --- a/.agents/skills/cli-modules/references/webhook-module.md +++ b/.agents/skills/cli-modules/references/webhook-module.md @@ -12,8 +12,8 @@ csdk webhook-module list --where.. --orderBy csdk webhook-module list --limit 10 --after csdk webhook-module find-first --where.. csdk webhook-module get --id -csdk webhook-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] -csdk webhook-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] csdk webhook-module delete --id ``` @@ -58,7 +58,7 @@ csdk webhook-module list --where.id.equalTo --orderBy ID_ASC ### Create a webhookModule ```bash -csdk webhook-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] ``` ### Get a webhookModule by id diff --git a/.agents/skills/cli-objects/SKILL.md b/.agents/skills/cli-objects/SKILL.md index ea2ac97787..db49ad1859 100644 --- a/.agents/skills/cli-objects/SKILL.md +++ b/.agents/skills/cli-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-objects -description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations +description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 7 custom operations --- # cli-objects -CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations +CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 7 custom operations ## Usage @@ -63,5 +63,8 @@ See the `references/` directory for detailed per-entity API documentation: - [store](references/store.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [provision-bucket](references/provision-bucket.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) diff --git a/.agents/skills/cli-objects/references/insert-nodes-at-paths.md b/.agents/skills/cli-objects/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..f023c4ad2f --- /dev/null +++ b/.agents/skills/cli-objects/references/insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# insertNodesAtPaths + + + +Execute the insertNodesAtPaths mutation + +## Usage + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run insertNodesAtPaths + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-objects/references/set-and-commit.md b/.agents/skills/cli-objects/references/set-and-commit.md index 897356944a..fdb32a40a4 100644 --- a/.agents/skills/cli-objects/references/set-and-commit.md +++ b/.agents/skills/cli-objects/references/set-and-commit.md @@ -7,7 +7,7 @@ Execute the setAndCommit mutation ## Usage ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk set-and-commit --input.clientMutationId --input.dbId --inpu ### Run setAndCommit ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-objects/references/set-many-and-commit.md b/.agents/skills/cli-objects/references/set-many-and-commit.md new file mode 100644 index 0000000000..7039169257 --- /dev/null +++ b/.agents/skills/cli-objects/references/set-many-and-commit.md @@ -0,0 +1,19 @@ +# setManyAndCommit + + + +Execute the setManyAndCommit mutation + +## Usage + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run setManyAndCommit + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-remote/SKILL.md b/.agents/skills/cli-remote/SKILL.md new file mode 100644 index 0000000000..f52037eb8e --- /dev/null +++ b/.agents/skills/cli-remote/SKILL.md @@ -0,0 +1,62 @@ +--- +name: cli-remote +description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 1 custom operations +--- + +# cli-remote + + + +CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 1 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) +- [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/provision-bucket.md b/.agents/skills/cli-remote/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-remote/references/provision-bucket.md @@ -0,0 +1,22 @@ +# 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. + +## 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..a2399fbadb --- /dev/null +++ b/.agents/skills/cli-storage/SKILL.md @@ -0,0 +1,67 @@ +--- +name: cli-storage +description: CLI tool (csdk) for the storage API — provides CRUD commands for 4 tables and 5 custom operations +--- + +# cli-storage + + + +CLI tool (csdk) for the storage API — provides CRUD commands for 4 tables and 5 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-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..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-storage/references/provision-bucket.md @@ -0,0 +1,22 @@ +# 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. + +## 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-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/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index 8409458c1c..c55eee526c 100644 --- a/.agents/skills/hooks-admin/SKILL.md +++ b/.agents/skills/hooks-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-admin -description: React Query hooks for the admin API — provides typed query and mutation hooks for 42 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 4 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 42 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 4 custom operations ## Usage @@ -39,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,8 @@ 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) - [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/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..05fff1843f 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, 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, 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, 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: '', 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-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-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index e7fc0db982..aa5a2abec2 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 86 tables and 16 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 86 tables and 16 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) @@ -68,7 +67,6 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.md) - [index](references/index.md) - [managed-domain](references/managed-domain.md) - [node-type-registry](references/node-type-registry.md) @@ -97,6 +95,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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) @@ -111,6 +110,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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) @@ -127,17 +127,16 @@ See the `references/` directory for detailed per-entity API documentation: - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.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) +- [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) - [domains-assign-subdomain](references/domains-assign-subdomain.md) - [platform-domains-assign-subdomain](references/platform-domains-assign-subdomain.md) - [platform-sites-provision-static-site](references/platform-sites-provision-static-site.md) - [provision-bucket](references/provision-bucket.md) +- [reject-database-transfer](references/reject-database-transfer.md) - [request-database](references/request-database.md) - [set-field-order](references/set-field-order.md) - [sites-provision-static-site](references/sites-provision-static-site.md) 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/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/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-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-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/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/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/route-binding.md b/.agents/skills/hooks-api/references/route-binding.md index ab284261aa..6edf3c3ced 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, 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, 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, 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: '', 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..db206828dc 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: 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, 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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({ config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` 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-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index d233091158..5a4b90a219 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 113 tables and 56 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 113 tables and 56 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,18 @@ const { data, isLoading } = useContentPresetsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [build](references/build.md) +- [build-step](references/build-step.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 +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) @@ -65,6 +78,8 @@ 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-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,13 +88,29 @@ 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-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) @@ -94,6 +125,18 @@ 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-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) @@ -108,12 +151,30 @@ 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) - [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-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) - [import-definitions](references/import-definitions.md) - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) 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..614bbcb647 --- /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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` 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-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..8bd6226180 --- /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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true } } }) +useDatabaseFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true } }, +}); +``` + +### Create a databaseFunctionGraphExecutionNodeState + +```typescript +const { mutate } = useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }); +``` 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..09e9a3ee4f 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, catalogImageId: 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, 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, catalogImageId: 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, 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, catalogImageId: 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, 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: '', catalogImageId: '', 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: '', 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..5e703b39e0 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, catalogImageId: 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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-invocation.md b/.agents/skills/hooks-compute/references/function-invocation.md index 3e3c4fb0c0..20d4347f9d 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, 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, createdByPrincipal: 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 } } }) 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, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', 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/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..0e96d70446 --- /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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-definition.md b/.agents/skills/hooks-compute/references/platform-function-definition.md index f23e03dc7b..e8ccca1856 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, billable: true, catalogImageId: 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, 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, billable: true, catalogImageId: 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, 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, billable: true, catalogImageId: 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, 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: '', billable: '', catalogImageId: '', 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: '', 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..f8749aacea 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, catalogImageId: 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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..4b83c42a8b 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, 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, createdByPrincipal: 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 } } }) 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, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', 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-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-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..5c5dba4f68 --- /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, requiredChecks: 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-definition.md b/.agents/skills/hooks-compute/references/platform-resource-definition.md index ad29349664..56416cb762 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, catalogImageId: 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.md b/.agents/skills/hooks-compute/references/platform-resource.md index 349c1b6dab..eb8c82ae94 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +usePlatformResourceQuery({ id: '', selection: { fields: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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..bf5d40977d 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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/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-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..ef8d9d15ee --- /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, requiredChecks: 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource-definition.md b/.agents/skills/hooks-compute/references/resource-definition.md index 9718e00032..a836f46151 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, catalogImageId: 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.md b/.agents/skills/hooks-compute/references/resource.md index f6ccdbefc4..393d36db8a 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +useResourceQuery({ id: '', selection: { fields: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resources-health.md b/.agents/skills/hooks-compute/references/resources-health.md index 5dcf7107df..cc8b822ca6 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } } }) +useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', 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..9abc61bd2c 100644 --- a/.agents/skills/hooks-config/SKILL.md +++ b/.agents/skills/hooks-config/SKILL.md @@ -1,13 +1,13 @@ --- 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 8 tables and 17 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 8 tables and 17 custom operations ## Usage @@ -39,10 +39,17 @@ const { data, isLoading } = useConfigsQuery({ See the `references/` directory for detailed per-entity API documentation: - [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) 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-infra/SKILL.md b/.agents/skills/hooks-infra/SKILL.md index f33976c75a..8bad66ac02 100644 --- a/.agents/skills/hooks-infra/SKILL.md +++ b/.agents/skills/hooks-infra/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-infra -description: React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations +description: React Query hooks for the infra API — provides typed query and mutation hooks for 11 tables and 7 custom operations --- # hooks-infra -React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations +React Query hooks for the infra API — provides typed query and mutation hooks for 11 tables and 7 custom operations ## Usage ```typescript // Import hooks -import { useDbPresetsQuery } from './hooks'; +import { useContentPresetsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useDbPresetsQuery({ ### Query records ```typescript -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,6 +38,7 @@ const { data, isLoading } = useDbPresetsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -50,5 +51,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-infra/references/content-preset.md b/.agents/skills/hooks-infra/references/content-preset.md new file mode 100644 index 0000000000..e88ddebe7e --- /dev/null +++ b/.agents/skills/hooks-infra/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +useContentPresetsQuery({ selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useContentPresetQuery({ id: '', selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useCreateContentPresetMutation({ selection: { fields: { id: true } } }) +useUpdateContentPresetMutation({ selection: { fields: { id: true } } }) +useDeleteContentPresetMutation({}) +``` + +## Examples + +### List all contentPresets + +```typescript +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a contentPreset + +```typescript +const { mutate } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +mutate({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..dd4c10a2f0 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# platformInfraInsertNodesAtPaths + + + +React Query mutation hook for platformInfraInsertNodesAtPaths + +## Usage + +```typescript +const { mutate } = usePlatformInfraInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md b/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..3a31f2d542 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetAndCommit + + + +React Query mutation hook for platformInfraSetAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraSetAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..1cdfbea46e --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetManyAndCommit + + + +React Query mutation hook for platformInfraSetManyAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use usePlatformInfraSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md index b07db5d06a..2e3c365de8 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 87 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 87 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) @@ -101,6 +104,7 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-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..e8ed93caa7 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, 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, 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, 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, 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, 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, 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/catalog-module.md b/.agents/skills/hooks-modules/references/catalog-module.md index ba6b2625c0..7dbf6e8696 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, 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, 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, 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, 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, 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, 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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/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/repository-module.md b/.agents/skills/hooks-modules/references/repository-module.md new file mode 100644 index 0000000000..ed80586fec --- /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, 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, 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, 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: '', 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..5a7303e4e8 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, 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, 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, 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: '', 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..865ad78c79 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 } } }) +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 } } }) 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 } }, }); ``` @@ -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: '' }); ``` 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/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/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-remote/SKILL.md b/.agents/skills/hooks-remote/SKILL.md new file mode 100644 index 0000000000..dc2f4af61f --- /dev/null +++ b/.agents/skills/hooks-remote/SKILL.md @@ -0,0 +1,44 @@ +--- +name: hooks-remote +description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 1 custom operations +--- + +# hooks-remote + + + +React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 1 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) +- [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/provision-bucket.md b/.agents/skills/hooks-remote/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-remote/references/provision-bucket.md @@ -0,0 +1,23 @@ +# 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. + +## 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..87272c2095 --- /dev/null +++ b/.agents/skills/hooks-storage/SKILL.md @@ -0,0 +1,49 @@ +--- +name: hooks-storage +description: React Query hooks for the storage API — provides typed query and mutation hooks for 4 tables and 5 custom operations +--- + +# hooks-storage + + + +React Query hooks for the storage API — provides typed query and mutation hooks for 4 tables and 5 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-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..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-storage/references/provision-bucket.md @@ -0,0 +1,23 @@ +# 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. + +## 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-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/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index 7fec9be40b..11350e9871 100644 --- a/.agents/skills/orm-admin/SKILL.md +++ b/.agents/skills/orm-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-admin -description: ORM client for the admin API — provides typed CRUD operations for 42 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 26 tables and 4 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 42 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 26 tables and 4 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the admin API — provides typed CRUD operations for 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,8 @@ 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) - [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/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..cd11a329cb 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: '', 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: '', 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-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-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 206677aab1..24dfceefe6 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 86 tables and 16 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 86 tables and 16 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) @@ -67,7 +66,6 @@ See the `references/` directory for detailed per-entity API documentation: - [full-text-search](references/full-text-search.md) - [function](references/function.md) - [hostname-binding](references/hostname-binding.md) -- [http-route](references/http-route.md) - [index](references/index.md) - [managed-domain](references/managed-domain.md) - [node-type-registry](references/node-type-registry.md) @@ -96,6 +94,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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) @@ -110,6 +109,7 @@ See the `references/` directory for detailed per-entity API documentation: - [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,17 +126,16 @@ See the `references/` directory for detailed per-entity API documentation: - [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.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) +- [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) - [domains-assign-subdomain](references/domains-assign-subdomain.md) - [platform-domains-assign-subdomain](references/platform-domains-assign-subdomain.md) - [platform-sites-provision-static-site](references/platform-sites-provision-static-site.md) - [provision-bucket](references/provision-bucket.md) +- [reject-database-transfer](references/reject-database-transfer.md) - [request-database](references/request-database.md) - [set-field-order](references/set-field-order.md) - [sites-provision-static-site](references/sites-provision-static-site.md) 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/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/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-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-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/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/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/route-binding.md b/.agents/skills/orm-api/references/route-binding.md index c429f21042..ea5f967189 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: '', 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: '', 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..05384e1f5b 100644 --- a/.agents/skills/orm-api/references/route.md +++ b/.agents/skills/orm-api/references/route.md @@ -9,7 +9,7 @@ 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.create({ data: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() db.route.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() db.route.delete({ where: { id: '' } }).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: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, 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-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index 2958f34c3a..84779e8762 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 113 tables and 56 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 113 tables and 56 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, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, databaseFunctionGraphExecutionOutput, databaseGraphCommit, ... 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,18 @@ 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) - [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 +67,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 +77,8 @@ 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-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,13 +87,29 @@ 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-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) @@ -93,6 +124,18 @@ 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-workflow](references/repository-workflow.md) - [resource](references/resource.md) - [resource-declared-capacity](references/resource-declared-capacity.md) - [resource-definition](references/resource-definition.md) @@ -107,12 +150,30 @@ 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) - [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-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) - [import-definitions](references/import-definitions.md) - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) 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..0d14e90c7c --- /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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + 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-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..c885f76bb7 --- /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: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }, 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: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }, + 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..fd2f8fc681 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: '', catalogImageId: '', 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: '', 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: '', catalogImageId: '', 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: '', 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..cab62c0317 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: '', catalogImageId: '', 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: '', catalogImageId: '', 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-invocation.md b/.agents/skills/orm-compute/references/function-invocation.md index 4efde3d880..14c262687f 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).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/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..8971935bf2 --- /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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + 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..48d1b167bf 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: '', billable: '', catalogImageId: '', 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: '', 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: '', billable: '', catalogImageId: '', 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: '', 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..bf5bd8324d 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: '', catalogImageId: '', 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: '', catalogImageId: '', 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..c47d6d962a 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).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-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-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..e18232d284 --- /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: '', requiredChecks: '', 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + 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..af99360e74 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: '', catalogImageId: '', 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: '', catalogImageId: '', 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.md b/.agents/skills/orm-compute/references/platform-resource.md index 009cd7f02e..6f61f2b434 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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..646c3e1170 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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/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-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..b64f4e2e2c --- /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: '', requiredChecks: '', 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + 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..e31b48bcf0 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: '', catalogImageId: '', 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: '', catalogImageId: '', 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.md b/.agents/skills/orm-compute/references/resource.md index 5f525e46d8..9991fa7dd8 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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..d2c7aba920 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', 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..ec8b199076 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 8 tables and 17 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 8 tables and 17 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: config, internalConfig, internalSecret, platformConfig, platformInternalConfig, platformInternalSecret, platformSecret, secret db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -38,10 +38,17 @@ const items = await db.config.findMany({ See the `references/` directory for detailed per-entity API documentation: - [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) 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-infra/SKILL.md b/.agents/skills/orm-infra/SKILL.md index ba4a612899..f2f2ff50ba 100644 --- a/.agents/skills/orm-infra/SKILL.md +++ b/.agents/skills/orm-infra/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-infra -description: ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations +description: ORM client for the infra API — provides typed CRUD operations for 11 tables and 7 custom operations --- # orm-infra -ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations +ORM client for the infra API — provides typed CRUD operations for 11 tables and 7 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the infra API — provides typed CRUD operations for 10 tables an // Import the ORM client import { db } from './orm'; -// Available models: dbPreset, namespace, namespaceEvent, platformInfraCommit, platformInfraGetAllTreeNodesRecord, platformInfraObject, platformInfraRef, platformInfraStore, ... +// Available models: contentPreset, dbPreset, namespace, namespaceEvent, platformInfraCommit, platformInfraGetAllTreeNodesRecord, platformInfraObject, platformInfraRef, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -28,7 +28,7 @@ db..delete({ where: { id: '' } }).execute() ### Query records ```typescript -const items = await db.dbPreset.findMany({ +const items = await db.contentPreset.findMany({ select: { id: true } }).execute(); ``` @@ -37,6 +37,7 @@ const items = await db.dbPreset.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -49,5 +50,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-infra/references/content-preset.md b/.agents/skills/orm-infra/references/content-preset.md new file mode 100644 index 0000000000..a578d21e7f --- /dev/null +++ b/.agents/skills/orm-infra/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +db.contentPreset.findMany({ select: { id: true } }).execute() +db.contentPreset.findOne({ id: '', select: { id: true } }).execute() +db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() +db.contentPreset.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all contentPreset records + +```typescript +const items = await db.contentPreset.findMany({ + select: { id: true, active: true } +}).execute(); +``` + +### Create a contentPreset + +```typescript +const item = await db.contentPreset.create({ + data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..432256cae1 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md b/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..044f7b74aa --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraSetAndCommit + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..a08d77f2f1 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md index 748b992fa5..2d5428168d 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 87 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 87 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) @@ -100,6 +103,7 @@ See the `references/` directory for detailed per-entity API documentation: - [rate-limits-module](references/rate-limits-module.md) - [realtime-module](references/realtime-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..8f0ab25eb2 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', 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/catalog-module.md b/.agents/skills/orm-modules/references/catalog-module.md index 7598944390..a8a8e65603 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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/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/repository-module.md b/.agents/skills/orm-modules/references/repository-module.md new file mode 100644 index 0000000000..f025702252 --- /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: '', 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: '', 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..c79e5d9d96 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: '', 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: '', 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..206b533df9 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: '' }, 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: '' }, 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/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/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-remote/SKILL.md b/.agents/skills/orm-remote/SKILL.md new file mode 100644 index 0000000000..8299e677a6 --- /dev/null +++ b/.agents/skills/orm-remote/SKILL.md @@ -0,0 +1,43 @@ +--- +name: orm-remote +description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 1 custom operations +--- + +# orm-remote + + + +ORM client for the remote API — provides typed CRUD operations for 3 tables and 1 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) +- [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/provision-bucket.md b/.agents/skills/orm-remote/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-remote/references/provision-bucket.md @@ -0,0 +1,22 @@ +# 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. + +## 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..6e738c2be1 --- /dev/null +++ b/.agents/skills/orm-storage/SKILL.md @@ -0,0 +1,48 @@ +--- +name: orm-storage +description: ORM client for the storage API — provides typed CRUD operations for 4 tables and 5 custom operations +--- + +# orm-storage + + + +ORM client for the storage API — provides typed CRUD operations for 4 tables and 5 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-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..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-storage/references/provision-bucket.md @@ -0,0 +1,22 @@ +# 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. + +## 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-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/pgpm/export/src/meta-export-tables.json b/pgpm/export/src/meta-export-tables.json index 83efa833ab..4f29063b0c 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", @@ -326,6 +346,11 @@ "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 +406,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 +486,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 +511,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 +526,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 +552,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 +612,19 @@ "table": "domains" }, { - "key": "http_routes", + "key": "email_identities", "schema": "routing_public", - "table": "http_routes" + "table": "email_identities" + }, + { + "key": "email_provider_accounts", + "schema": "routing_public", + "table": "email_provider_accounts" + }, + { + "key": "email_site_identities", + "schema": "routing_public", + "table": "email_site_identities" }, { "key": "managed_domains", @@ -581,6 +641,11 @@ "schema": "routing_public", "table": "pubkey_settings" }, + { + "key": "redirects", + "schema": "routing_public", + "table": "redirects" + }, { "key": "rls_settings", "schema": "routing_public", @@ -591,16 +656,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", @@ -681,11 +736,26 @@ "schema": "catalog_private", "table": "domains" }, + { + "key": "functions", + "schema": "catalog_private", + "table": "functions" + }, + { + "key": "images", + "schema": "catalog_private", + "table": "images" + }, { "key": "namespaces", "schema": "catalog_private", "table": "namespaces" }, + { + "key": "catalog_private.redirects", + "schema": "catalog_private", + "table": "redirects" + }, { "key": "resource_definitions", "schema": "catalog_private", @@ -760,10 +830,18 @@ "created_at", "updated_at" ], + "catalog_private.images": [ + "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 +874,9 @@ "created_at", "updated_at" ], + "metaschema_modules_public.content_preset_module": [ + "created_at" + ], "metaschema_modules_public.db_preset_module": [ "created_at" ], @@ -808,6 +889,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 +1026,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": [ 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..91c74e8483 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 30 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 1 - **Custom mutations:** 3 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 4f118a6683..5baf77d6b8 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -27,18 +27,18 @@ csdk auth set-token | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | | `app-admin-grant` | appAdminGrant CRUD operations | +| `app-capability-default-capability` | appCapabilityDefaultCapability CRUD operations | +| `app-capability-default-grant` | appCapabilityDefaultGrant CRUD operations | | `app-claimed-invite` | appClaimedInvite CRUD operations | | `app-grant` | appGrant CRUD operations | | `app-invite` | appInvite CRUD operations | | `app-membership` | appMembership CRUD operations | | `app-membership-default` | appMembershipDefault CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | -| `app-permission` | appPermission CRUD operations | -| `app-permission-default` | appPermissionDefault CRUD operations | -| `app-permission-default-grant` | appPermissionDefaultGrant CRUD operations | -| `app-permission-default-permission` | appPermissionDefaultPermission CRUD operations | | `membership-type` | membershipType CRUD operations | | `org-admin-grant` | orgAdminGrant CRUD operations | +| `org-capability-default-capability` | orgCapabilityDefaultCapability CRUD operations | +| `org-capability-default-grant` | orgCapabilityDefaultGrant CRUD operations | | `org-chart-edge` | orgChartEdge CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | @@ -52,19 +52,7 @@ csdk auth set-token | `org-membership-default` | orgMembershipDefault CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | | `org-owner-grant` | orgOwnerGrant CRUD operations | -| `org-permission` | orgPermission CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | -| `org-permission-default-grant` | orgPermissionDefaultGrant CRUD operations | -| `org-permission-default-permission` | orgPermissionDefaultPermission CRUD operations | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `app-permissions-get-mask` | appPermissionsGetMask | -| `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | -| `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-is-manager-of` | orgIsManagerOf | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | -| `org-permissions-get-mask` | orgPermissionsGetMask | -| `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | -| `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -139,6 +127,57 @@ CRUD operations for AppAdminGrant records. **Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` +### `app-capability-default-capability` + +CRUD operations for AppCapabilityDefaultCapability records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appCapabilityDefaultCapability records | +| `find-first` | Find first matching appCapabilityDefaultCapability record | +| `get` | Get a appCapabilityDefaultCapability by id | +| `create` | Create a new appCapabilityDefaultCapability | +| `update` | Update an existing appCapabilityDefaultCapability | +| `delete` | Delete a appCapabilityDefaultCapability | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilityId` | UUID | +| `createdAt` | Datetime | +| `id` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `capabilityId` + +### `app-capability-default-grant` + +CRUD operations for AppCapabilityDefaultGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appCapabilityDefaultGrant records | +| `find-first` | Find first matching appCapabilityDefaultGrant record | +| `get` | Get a appCapabilityDefaultGrant by id | +| `create` | Create a new appCapabilityDefaultGrant | +| `update` | Update an existing appCapabilityDefaultGrant | +| `delete` | Delete a appCapabilityDefaultGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilityId` | UUID | +| `createdAt` | Datetime | +| `grantorId` | UUID | +| `id` | UUID | +| `isGrant` | Boolean | +| `updatedAt` | Datetime | + +**Required create fields:** `capabilityId` +**Optional create fields (backend defaults):** `grantorId`, `isGrant` + ### `app-claimed-invite` CRUD operations for AppClaimedInvite records. @@ -183,14 +222,14 @@ CRUD operations for AppGrant records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `grantorId` | UUID | | `id` | UUID | | `isGrant` | Boolean | -| `permissions` | BitString | | `updatedAt` | Datetime | -**Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant`, `permissions` +**Optional create fields (backend defaults):** `actorId`, `capabilities`, `grantorId`, `isGrant` ### `app-invite` @@ -245,8 +284,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 +297,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 +324,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 +360,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 +465,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 +617,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 +742,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 +757,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 +784,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` @@ -816,6 +818,7 @@ CRUD operations for OrgMembershipSetting records. | `createChildCascadeOwners` | Boolean | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `deleteMemberCascadeChildren` | Boolean | | `entityId` | UUID | | `id` | UUID | @@ -824,9 +827,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`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `createChildCascadeOwners`, `createdBy`, `createdByPrincipal`, `deleteMemberCascadeChildren`, `inviteProfileAssignmentMode`, `limitAllocationMode`, `populateMemberEmail`, `updatedBy`, `updatedByPrincipal` ### `org-owner-grant` @@ -856,157 +860,8 @@ CRUD operations for OrgOwnerGrant records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` -### `org-permission` - -CRUD operations for OrgPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermission records | -| `find-first` | Find first matching orgPermission record | -| `get` | Get a orgPermission by id | -| `create` | Create a new orgPermission | -| `update` | Update an existing orgPermission | -| `delete` | Delete a orgPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `bitnum` | Int | -| `bitstr` | BitString | -| `description` | String | -| `id` | UUID | -| `name` | String | - -**Optional create fields (backend defaults):** `bitnum`, `bitstr`, `description`, `name` - -### `org-permission-default` - -CRUD operations for OrgPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefault records | -| `find-first` | Find first matching orgPermissionDefault record | -| `get` | Get a orgPermissionDefault by id | -| `create` | Create a new orgPermissionDefault | -| `update` | Update an existing orgPermissionDefault | -| `delete` | Delete a orgPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `entityId` | UUID | -| `id` | UUID | -| `permissions` | BitString | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `permissions` - -### `org-permission-default-grant` - -CRUD operations for OrgPermissionDefaultGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefaultGrant records | -| `find-first` | Find first matching orgPermissionDefaultGrant record | -| `get` | Get a orgPermissionDefaultGrant by id | -| `create` | Create a new orgPermissionDefaultGrant | -| `update` | Update an existing orgPermissionDefaultGrant | -| `delete` | Delete a orgPermissionDefaultGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `entityId` | UUID | -| `grantorId` | UUID | -| `id` | UUID | -| `isGrant` | Boolean | -| `permissionId` | UUID | -| `updatedAt` | Datetime | - -**Required create fields:** `entityId`, `permissionId` -**Optional create fields (backend defaults):** `grantorId`, `isGrant` - -### `org-permission-default-permission` - -CRUD operations for OrgPermissionDefaultPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefaultPermission records | -| `find-first` | Find first matching orgPermissionDefaultPermission record | -| `get` | Get a orgPermissionDefaultPermission by id | -| `create` | Create a new orgPermissionDefaultPermission | -| `update` | Update an existing orgPermissionDefaultPermission | -| `delete` | Delete a orgPermissionDefaultPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `entityId` | UUID | -| `id` | UUID | -| `permissionId` | UUID | -| `updatedAt` | Datetime | - -**Required create fields:** `entityId`, `permissionId` - ## Custom Operations -### `app-permissions-get-by-mask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--after` | Cursor | - | `--first` | Int | - | `--mask` | BitString | - | `--offset` | Int | - -### `app-permissions-get-mask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `app-permissions-get-mask-by-names` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `app-permissions-get-padded-mask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - ### `org-is-manager-of` orgIsManagerOf @@ -1021,53 +876,6 @@ orgIsManagerOf | `--targetEntityId` | UUID | | `--userId` | UUID | -### `org-permissions-get-by-mask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--after` | Cursor | - | `--first` | Int | - | `--mask` | BitString | - | `--offset` | Int | - -### `org-permissions-get-mask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `org-permissions-get-mask-by-names` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `org-permissions-get-padded-mask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index f0e6c21289..39f253e6e4 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -7,18 +7,18 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; import appAdminGrantCmd from './commands/app-admin-grant'; +import appCapabilityDefaultCapabilityCmd from './commands/app-capability-default-capability'; +import appCapabilityDefaultGrantCmd from './commands/app-capability-default-grant'; import appClaimedInviteCmd from './commands/app-claimed-invite'; import appGrantCmd from './commands/app-grant'; import appInviteCmd from './commands/app-invite'; import appMembershipCmd from './commands/app-membership'; import appMembershipDefaultCmd from './commands/app-membership-default'; import appOwnerGrantCmd from './commands/app-owner-grant'; -import appPermissionCmd from './commands/app-permission'; -import appPermissionDefaultCmd from './commands/app-permission-default'; -import appPermissionDefaultGrantCmd from './commands/app-permission-default-grant'; -import appPermissionDefaultPermissionCmd from './commands/app-permission-default-permission'; import membershipTypeCmd from './commands/membership-type'; import orgAdminGrantCmd from './commands/org-admin-grant'; +import orgCapabilityDefaultCapabilityCmd from './commands/org-capability-default-capability'; +import orgCapabilityDefaultGrantCmd from './commands/org-capability-default-grant'; import orgChartEdgeCmd from './commands/org-chart-edge'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; @@ -32,19 +32,7 @@ import orgMembershipCmd from './commands/org-membership'; import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgMembershipSettingCmd from './commands/org-membership-setting'; import orgOwnerGrantCmd from './commands/org-owner-grant'; -import orgPermissionCmd from './commands/org-permission'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; -import orgPermissionDefaultGrantCmd from './commands/org-permission-default-grant'; -import orgPermissionDefaultPermissionCmd from './commands/org-permission-default-permission'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask'; -import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; -import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgIsManagerOfCmd from './commands/org-is-manager-of'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; -import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; -import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; -import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; import provisionBucketCmd from './commands/provision-bucket'; import submitAppInviteCodeCmd from './commands/submit-app-invite-code'; import submitOrgInviteCodeCmd from './commands/submit-org-invite-code'; @@ -59,18 +47,18 @@ const createCommandMap: () => Record< context: contextCmd, auth: authCmd, 'app-admin-grant': appAdminGrantCmd, + 'app-capability-default-capability': appCapabilityDefaultCapabilityCmd, + 'app-capability-default-grant': appCapabilityDefaultGrantCmd, 'app-claimed-invite': appClaimedInviteCmd, 'app-grant': appGrantCmd, 'app-invite': appInviteCmd, 'app-membership': appMembershipCmd, 'app-membership-default': appMembershipDefaultCmd, 'app-owner-grant': appOwnerGrantCmd, - 'app-permission': appPermissionCmd, - 'app-permission-default': appPermissionDefaultCmd, - 'app-permission-default-grant': appPermissionDefaultGrantCmd, - 'app-permission-default-permission': appPermissionDefaultPermissionCmd, 'membership-type': membershipTypeCmd, 'org-admin-grant': orgAdminGrantCmd, + 'org-capability-default-capability': orgCapabilityDefaultCapabilityCmd, + 'org-capability-default-grant': orgCapabilityDefaultGrantCmd, 'org-chart-edge': orgChartEdgeCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, 'org-claimed-invite': orgClaimedInviteCmd, @@ -84,25 +72,13 @@ const createCommandMap: () => Record< 'org-membership-default': orgMembershipDefaultCmd, 'org-membership-setting': orgMembershipSettingCmd, 'org-owner-grant': orgOwnerGrantCmd, - 'org-permission': orgPermissionCmd, - 'org-permission-default': orgPermissionDefaultCmd, - 'org-permission-default-grant': orgPermissionDefaultGrantCmd, - 'org-permission-default-permission': orgPermissionDefaultPermissionCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'app-permissions-get-mask': appPermissionsGetMaskCmd, - 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, - 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-is-manager-of': orgIsManagerOfCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, - 'org-permissions-get-mask': orgPermissionsGetMaskCmd, - 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, - 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, 'provision-bucket': provisionBucketCmd, 'submit-app-invite-code': submitAppInviteCodeCmd, 'submit-org-invite-code': submitOrgInviteCodeCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-permission appPermission CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-permission-default-grant appPermissionDefaultGrant CRUD operations\n app-permission-default-permission appPermissionDefaultPermission CRUD operations\n membership-type membershipType CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-permission orgPermission CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n org-permission-default-grant orgPermissionDefaultGrant CRUD operations\n org-permission-default-permission orgPermissionDefaultPermission CRUD operations\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n app-permissions-get-mask appPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n org-permissions-get-mask orgPermissionsGetMask\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-capability-default-capability appCapabilityDefaultCapability CRUD operations\n app-capability-default-grant appCapabilityDefaultGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-capability-default-capability orgCapabilityDefaultCapability CRUD operations\n org-capability-default-grant orgCapabilityDefaultGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-is-manager-of orgIsManagerOf\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-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/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..c3ecb25714 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 @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { createChildCascadeOwners: 'boolean', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', deleteMemberCascadeChildren: 'boolean', entityId: 'uuid', id: 'uuid', @@ -30,6 +31,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'; @@ -88,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -96,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -126,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -134,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -176,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -184,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -234,6 +242,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 +290,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( @@ -290,12 +312,14 @@ async function handleCreate(argv: Partial>, prompter: In 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, @@ -304,6 +328,7 @@ async function handleCreate(argv: Partial>, prompter: In createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -312,6 +337,7 @@ async function handleCreate(argv: Partial>, prompter: In populateMemberEmail: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -368,6 +394,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 +442,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; @@ -424,12 +464,14 @@ async function handleUpdate(argv: Partial>, prompter: In 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, @@ -438,6 +480,7 @@ async function handleUpdate(argv: Partial>, prompter: In createChildCascadeOwners: true, createdAt: true, createdBy: true, + createdByPrincipal: true, deleteMemberCascadeChildren: true, entityId: true, id: true, @@ -446,6 +489,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/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 9873807c11..5380fbc13b 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(); - -// Get one by id -const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `hasUsersTableEntry` | Boolean | Yes | -| `id` | Int | No | -| `name` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `scope` | String | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +// List all orgCapabilityDefaultCapability records +const items = await db.orgCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +const item = await db.orgCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgCapabilityDefaultGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgCapabilityDefaultGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | @@ -495,20 +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(); @@ -927,6 +936,7 @@ CRUD operations for OrgMembershipSetting records. | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -935,18 +945,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, 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, 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: '', 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,203 +1001,8 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { entityId: true, id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { entityId: true, id: true, permissions: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { entityId: '', permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultGrant` - -CRUD operations for OrgPermissionDefaultGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultGrant records -const items = await db.orgPermissionDefaultGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultPermission` - -CRUD operations for OrgPermissionDefaultPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultPermission records -const items = await db.orgPermissionDefaultPermission.findMany({ select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultPermission.create({ data: { entityId: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf @@ -1205,69 +1021,6 @@ orgIsManagerOf const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '', targetEntityId: '', userId: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index 5a87e5498e..91f3ff0c09 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -6,18 +6,18 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; +import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; +import { AppCapabilityDefaultGrantModel } from './models/appCapabilityDefaultGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppInviteModel } from './models/appInvite'; import { AppMembershipModel } from './models/appMembership'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppPermissionModel } from './models/appPermission'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; -import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; +import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; @@ -31,10 +31,6 @@ import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgPermissionModel } from './models/orgPermission'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; -import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -71,18 +67,18 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), + appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), + appCapabilityDefaultGrant: new AppCapabilityDefaultGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appInvite: new AppInviteModel(client), appMembership: new AppMembershipModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appPermission: new AppPermissionModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), - appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), + orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), + orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), @@ -96,10 +92,6 @@ export function createClient(config: OrmClientConfig) { orgMembershipDefault: new OrgMembershipDefaultModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgPermission: new OrgPermissionModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), - orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 8942c14919..0018f066fb 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,6 +612,7 @@ 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 { @@ -613,12 +626,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 +640,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 +655,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 +669,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 +698,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 +711,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 +734,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 +743,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 +767,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 +793,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 +806,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 +830,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 +903,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 +955,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 +970,10 @@ export type OrgMembershipSelect = { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; orgMemberProfileByMembershipId?: { select: OrgMemberProfileSelect; }; @@ -1037,11 +981,13 @@ 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; @@ -1050,6 +996,7 @@ export type OrgMembershipSettingSelect = { createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1058,6 +1005,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1068,52 +1016,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 +1037,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 +1096,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 +1110,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 +1154,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 +1184,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 +1200,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 +1216,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 +1239,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 +1275,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 +1315,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 +1410,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 +1426,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 +1524,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 +1562,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 +1578,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,6 +1594,8 @@ 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. */ @@ -1696,6 +1612,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 +1634,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 +1659,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 +1676,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 +1700,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 +1775,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 +1802,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 +1809,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 +1831,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 +1850,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 +1880,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 +1995,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 +2008,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 +2093,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 +2124,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 +2131,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,7 +2153,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'; export type OrgMembershipSettingOrderBy = | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' @@ -2301,6 +2163,8 @@ export type OrgMembershipSettingOrderBy = | '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 +2189,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 +2210,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 +2233,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 +2299,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 +2363,9 @@ export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { actorId: string; + capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -2522,14 +2374,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 +2392,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 +2409,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 +2455,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 +2505,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 +2673,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 +2800,9 @@ export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { actorId: string; + capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -2991,14 +2813,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 +2833,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 +2850,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; @@ -3054,12 +2882,14 @@ export interface CreateOrgMembershipSettingInput { 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 { @@ -3068,12 +2898,14 @@ export interface OrgMembershipSettingPatch { 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 +2940,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 +3037,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 +3072,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 +3083,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 +3116,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 +3161,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 +3183,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 +3200,7 @@ export interface AppMembershipDefaultInput { isVerified?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `AppOwnerGrant` */ export interface AppOwnerGrantInput { @@ -3481,43 +3213,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 +3241,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 +3315,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 +3399,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 +3419,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,6 +3442,7 @@ export interface OrgMembershipDefaultInput { isApproved?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `OrgMembershipSetting` */ export interface OrgMembershipSettingInput { @@ -3734,12 +3456,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 +3470,7 @@ export interface OrgMembershipSettingInput { populateMemberEmail?: boolean; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `OrgOwnerGrant` */ export interface OrgOwnerGrantInput { @@ -3761,432 +3485,7 @@ export interface OrgOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - /** References the entity these default permissions apply to */ - entityId: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultGrant` */ -export interface OrgPermissionDefaultGrantInput { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultPermission` */ -export interface OrgPermissionDefaultPermissionInput { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value. */ - equalTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; - /** Included in the specified list. */ - in?: number[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not included in the specified list. */ - notIn?: number[]; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; - /** Included in the specified list. */ - in?: string[]; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not included in the specified list. */ - notIn?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; -} -/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - edges: AppPermissionEdge[]; - nodes: AppPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - edges?: { - select: AppPermissionEdgeSelect; - }; - nodes?: { - select: AppPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - edges: OrgPermissionEdge[]; - nodes: OrgPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - edges?: { - select: OrgPermissionEdgeSelect; - }; - nodes?: { - select: OrgPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -4255,18 +3554,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 +3929,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 +4019,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 +4604,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 +4712,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 +4736,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 +4892,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/query/index.ts b/sdk/constructive-cli/src/admin/orm/query/index.ts index 6d5f48130e..0e78db2c2c 100644 --- a/sdk/constructive-cli/src/admin/orm/query/index.ts +++ b/sdk/constructive-cli/src/admin/orm/query/index.ts @@ -6,186 +6,15 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppPermissionConnection, OrgPermissionConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} export interface OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; targetEntityId?: string; userId?: string; } -export interface OrgPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} export function createQueryOperations(client: OrmClient) { return { - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { @@ -227,133 +56,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/constructive-cli/src/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..a19cd44b90 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -35,6 +35,18 @@ csdk auth set-token | `agent-resource` | agentResource CRUD operations | | `agent-task` | agentTask CRUD operations | | `agent-thread` | agentThread CRUD operations | +| `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` | 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, @@ -137,13 +149,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 +179,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -175,9 +190,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 +221,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 +246,7 @@ CRUD operations for AgentPrompt records. | `content` | String | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -237,9 +255,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 +282,7 @@ CRUD operations for AgentResourceChunk records. | `body` | String | | `chunkIndex` | Int | | `createdAt` | Datetime | +| `databaseId` | UUID | | `embedding` | Vector | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -271,7 +291,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 +350,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `descriptionTrgmSimilarity` | Float | @@ -351,9 +372,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 +474,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,9 +512,544 @@ 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 diff --git a/sdk/constructive-cli/src/agent/cli/commands.ts b/sdk/constructive-cli/src/agent/cli/commands.ts index 1dc3d5c18d..02dd0bb5b2 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 Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/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/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index d8403ed6ba..adb10e51fc 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,6 +441,534 @@ 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` 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..e2ce4c5687 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; - ownerId?: string; - parentId?: string; - personaId?: string; - status?: string; - systemPrompt?: 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; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +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; +} +/** 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 `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; +} +/** 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 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; +/** 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 UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** 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 DeleteAgentInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** 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 DeleteAgentMessageInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** 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 DeleteAgentPersonaInput { - 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 CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: 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 AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** 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; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** 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; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: 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; +} +/** 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; +} +/** 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 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 `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 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 `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 UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** 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 DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** 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 CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** 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 AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** 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 UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** 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 DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** 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 DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** 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; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: 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; } -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 `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 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 `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 UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** 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; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: 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; } -// ============ 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 `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 `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 `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 `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 `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 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 `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 `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 `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 `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 `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; } -/** 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 `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; } -/** 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 `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; +/** 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 `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 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 `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 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[]; } -/** 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 `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; } -/** 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 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?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + 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 `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?: AgentMessageFilter; + not?: AgentPersonaFilter; /** 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?: 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; +} +/** 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 `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; +/** 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?: AgentThreadFilter[]; + 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 `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** 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?: AgentThreadFilter; + not?: AgentResourceFilter; /** 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; + 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?: 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 `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 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?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; + 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 `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: PlatformAgentPersonaFilter; /** 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; + 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; } -/** 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 `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** 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?: PlatformAgentPromptFilter[]; + /** 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 `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; - /** 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; -} -/** 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 `embedding` field. */ - embedding?: VectorFilter; /** 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,992 @@ 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 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 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; +} +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 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 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 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 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; } -/** 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 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; +} +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 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 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 `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 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 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 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; } -/** 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 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; } -/** 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 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 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 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; } -// ============ 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 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; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type CreateAgentThreadPayloadSelect = { + 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 UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type UpdateAgentThreadPayloadSelect = { + 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 DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted 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 DeleteAgentPayloadSelect = { - 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 DeletePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type DeletePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface UpdatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type UpdatePlatformAgentEventPayloadSelect = { 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 DeletePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface CreatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type CreatePlatformAgentMessagePayloadSelect = { 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 UpdatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface DeletePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type DeletePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; +}; +export interface UpdatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; + 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 +7384,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/api/README.md b/sdk/constructive-cli/src/api/README.md index 432f75b198..2152f35ab1 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 80 -- **Custom queries:** 6 +- **Tables:** 86 +- **Custom queries:** 5 - **Custom mutations:** 11 **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..edf8b36daf 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 | @@ -52,19 +55,21 @@ csdk auth set-token | `full-text-search` | fullTextSearch CRUD operations | | `function` | function CRUD operations | | `hostname-binding` | hostnameBinding CRUD operations | -| `http-route` | httpRoute 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-managed-domain` | platformManagedDomain CRUD operations | | `platform-page` | platformPage CRUD operations | | `platform-site-app-link` | platformSiteAppLink CRUD operations | @@ -78,6 +83,7 @@ csdk auth set-token | `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 | @@ -109,7 +115,6 @@ csdk auth set-token | `api-schema-names` | apiSchemaNames | | `apply-registry-defaults` | applyRegistryDefaults | | `resolve-deep-link` | resolveDeepLink | -| `resolve-http-route` | resolveHttpRoute | | `resolve-route` | resolveRoute | | `resolve-site-app-links` | resolveSiteAppLinks | | `accept-database-transfer` | acceptDatabaseTransfer | @@ -174,6 +179,37 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `api` + +CRUD operations for Api records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all api records | +| `find-first` | Find first matching api record | +| `get` | Get a api by id | +| `create` | Create a new api | +| `update` | Update an existing api | +| `delete` | Delete a api | + +**Fields:** + +| Field | Type | +|-------|------| +| `anonRole` | String | +| `config` | JSON | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `dbname` | String | +| `id` | UUID | +| `isPublished` | Boolean | +| `name` | String | +| `roleName` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `name` +**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` + ### `api-schema` CRUD operations for ApiSchema records. @@ -240,37 +276,6 @@ CRUD operations for ApiSetting records. **Required create fields:** `apiId`, `databaseId` **Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `options`, `statementTimeoutMs` -### `apis` - -CRUD operations for Apis records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all apis records | -| `find-first` | Find first matching apis record | -| `get` | Get a apis by id | -| `create` | Create a new apis | -| `update` | Update an existing apis | -| `delete` | Delete a apis | - -**Fields:** - -| Field | Type | -|-------|------| -| `anonRole` | String | -| `config` | JSON | -| `createdAt` | Datetime | -| `databaseId` | UUID | -| `dbname` | String | -| `id` | UUID | -| `isPublished` | Boolean | -| `name` | String | -| `roleName` | String | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` - ### `ast-migration` CRUD operations for AstMigration records. @@ -549,6 +554,7 @@ CRUD operations for Derive records. | `createdAt` | Datetime | | `databaseId` | UUID | | `id` | UUID | +| `includeGrants` | Boolean | | `includeMutations` | Boolean | | `kind` | String | | `policyPrefix` | String | @@ -557,7 +563,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 +584,7 @@ CRUD operations for Domain records. |-------|------| | `config` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `hostname` | String | | `id` | UUID | @@ -589,11 +596,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 +706,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. @@ -1038,40 +1143,6 @@ CRUD operations for HostnameBinding records. **Required create fields:** `domainId`, `hostname` **Optional create fields (backend defaults):** `isWildcard`, `managed`, `parentHostname`, `tlsSecretName`, `tlsStatus`, `verificationStatus` -### `http-route` - -CRUD operations for HttpRoute 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 | - -**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 | - -**Required create fields:** `databaseId`, `domainId`, `targetId`, `targetKind` -**Optional create fields (backend defaults):** `createdBy`, `isActive`, `method`, `path`, `priority`, `updatedBy` - ### `index` CRUD operations for Index records. @@ -1131,6 +1202,7 @@ CRUD operations for ManagedDomain records. | `annotations` | JSON | | `certStatus` | String | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `domain` | String | | `id` | UUID | @@ -1138,11 +1210,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` @@ -1236,6 +1309,36 @@ CRUD operations for Partition records. **Required create fields:** `databaseId`, `partitionKeyId`, `strategy`, `tableId` **Optional create fields (backend defaults):** `interval`, `isParented`, `namingPattern`, `premake`, `retention`, `retentionKeepTable` +### `platform-api` + +CRUD operations for PlatformApi records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformApi records | +| `find-first` | Find first matching platformApi record | +| `get` | Get a platformApi by id | +| `create` | Create a new platformApi | +| `update` | Update an existing platformApi | +| `delete` | Delete a platformApi | + +**Fields:** + +| Field | Type | +|-------|------| +| `anonRole` | String | +| `config` | JSON | +| `createdAt` | Datetime | +| `dbname` | String | +| `id` | UUID | +| `isPublished` | Boolean | +| `name` | String | +| `roleName` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` + ### `platform-api-schema` CRUD operations for PlatformApiSchema records. @@ -1300,36 +1403,6 @@ CRUD operations for PlatformApiSetting records. **Required create fields:** `apiId` **Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `options`, `statementTimeoutMs` -### `platform-apis` - -CRUD operations for PlatformApis records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all platformApis records | -| `find-first` | Find first matching platformApis record | -| `get` | Get a platformApis by id | -| `create` | Create a new platformApis | -| `update` | Update an existing platformApis | -| `delete` | Delete a platformApis | - -**Fields:** - -| Field | Type | -|-------|------| -| `anonRole` | String | -| `config` | JSON | -| `createdAt` | Datetime | -| `dbname` | String | -| `id` | UUID | -| `isPublished` | Boolean | -| `name` | String | -| `roleName` | String | -| `updatedAt` | Datetime | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` - ### `platform-cors-setting` CRUD operations for PlatformCorsSetting records. @@ -1374,6 +1447,7 @@ CRUD operations for PlatformDomain records. |-------|------| | `config` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `hostname` | String | | `id` | UUID | | `isPublished` | Boolean | @@ -1384,11 +1458,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 +1532,100 @@ CRUD operations for PlatformDomainVerification records. **Required create fields:** `method` **Optional create fields (backend defaults):** `attempts`, `domainId`, `error`, `expiresAt`, `lastCheckedAt`, `managedDomainId`, `recordName`, `recordType`, `recordValue`, `status`, `verifiedAt` +### `platform-email-identity` + +CRUD operations for PlatformEmailIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailIdentity records | +| `find-first` | Find first matching platformEmailIdentity record | +| `get` | Get a platformEmailIdentity by id | +| `create` | Create a new platformEmailIdentity | +| `update` | Update an existing platformEmailIdentity | +| `delete` | Delete a platformEmailIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `fromAddress` | String | +| `fromName` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `isDefault` | Boolean | +| `name` | String | +| `providerAccountId` | UUID | +| `replyToAddress` | String | +| `supportAddress` | String | +| `transportMode` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `fromAddress`, `name` +**Optional create fields (backend defaults):** `fromName`, `isActive`, `isDefault`, `providerAccountId`, `replyToAddress`, `supportAddress`, `transportMode` + +### `platform-email-provider-account` + +CRUD operations for PlatformEmailProviderAccount records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailProviderAccount records | +| `find-first` | Find first matching platformEmailProviderAccount record | +| `get` | Get a platformEmailProviderAccount by id | +| `create` | Create a new platformEmailProviderAccount | +| `update` | Update an existing platformEmailProviderAccount | +| `delete` | Delete a platformEmailProviderAccount | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiBaseUrl` | String | +| `createdAt` | Datetime | +| `credentialsSecretName` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `name` | String | +| `provider` | String | +| `providerAccountName` | String | +| `region` | String | +| `smtpHost` | String | +| `smtpPort` | Int | +| `smtpSecure` | Boolean | +| `smtpUser` | String | +| `updatedAt` | Datetime | +| `webhookSigningSecretName` | String | + +**Required create fields:** `credentialsSecretName`, `name`, `provider` +**Optional create fields (backend defaults):** `apiBaseUrl`, `isActive`, `providerAccountName`, `region`, `smtpHost`, `smtpPort`, `smtpSecure`, `smtpUser`, `webhookSigningSecretName` + +### `platform-email-site-identity` + +CRUD operations for PlatformEmailSiteIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailSiteIdentity records | +| `find-first` | Find first matching platformEmailSiteIdentity record | +| `get` | Get a platformEmailSiteIdentity by id | +| `create` | Create a new platformEmailSiteIdentity | +| `update` | Update an existing platformEmailSiteIdentity | +| `delete` | Delete a platformEmailSiteIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `emailIdentityId` | UUID | +| `id` | UUID | +| `siteId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `emailIdentityId`, `siteId` + ### `platform-managed-domain` CRUD operations for PlatformManagedDomain records. @@ -1478,17 +1647,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` @@ -1571,6 +1742,7 @@ CRUD operations for PlatformSite records. | `activeCommitId` | UUID | | `bucketId` | UUID | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `description` | String | | `id` | UUID | | `installationId` | UUID | @@ -1580,9 +1752,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` @@ -1781,6 +1954,7 @@ CRUD operations for Policy records. | Field | Type | |-------|------| | `category` | ObjectCategory | +| `columnRefs` | String | | `createdAt` | Datetime | | `data` | JSON | | `databaseId` | UUID | @@ -1800,7 +1974,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,6 +2043,37 @@ CRUD operations for PubkeySetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `cryptoNetwork`, `schemaId`, `signInRecordFailureFunctionId`, `signInRequestChallengeFunctionId`, `signInWithChallengeFunctionId`, `signUpWithKeyFunctionId`, `userField` +### `redirect` + +CRUD operations for Redirect records. + +| Subcommand | Description | +|------------|-------------| +| `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. @@ -1928,12 +2133,13 @@ CRUD operations for RouteBinding records. | `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`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetRedirectId`, `targetServiceId`, `targetSiteId` ### `route` @@ -1964,12 +2170,13 @@ CRUD operations for Route records. | `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):** `config`, `isActive`, `method`, `path`, `priority`, `targetApiId`, `targetBucketId`, `targetFunctionId`, `targetRedirectId`, `targetServiceId`, `targetSiteId` ### `schema` @@ -2085,6 +2292,7 @@ CRUD operations for Site records. | `activeCommitId` | UUID | | `bucketId` | UUID | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `id` | UUID | @@ -2095,9 +2303,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` @@ -2803,19 +3012,6 @@ resolveDeepLink | `--linkSlug` | String | | `--targetSiteId` | UUID | -### `resolve-http-route` - -resolveHttpRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--requestHost` | String | - | `--requestMethod` | String | - | `--requestPath` | String | - ### `resolve-route` resolveRoute diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index d66aadcf71..9d4fea5945 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'; @@ -32,19 +35,21 @@ import foreignKeyConstraintCmd from './commands/foreign-key-constraint'; import fullTextSearchCmd from './commands/full-text-search'; import functionCmd from './commands/function'; import hostnameBindingCmd from './commands/hostname-binding'; -import httpRouteCmd from './commands/http-route'; 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 platformManagedDomainCmd from './commands/platform-managed-domain'; import platformPageCmd from './commands/platform-page'; import platformSiteAppLinkCmd from './commands/platform-site-app-link'; @@ -58,6 +63,7 @@ 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'; @@ -89,7 +95,6 @@ import webauthnSettingCmd from './commands/webauthn-setting'; import apiSchemaNamesCmd from './commands/api-schema-names'; import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; 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 acceptDatabaseTransferCmd from './commands/accept-database-transfer'; @@ -113,9 +118,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 +134,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, @@ -139,19 +147,21 @@ const createCommandMap: () => Record< 'full-text-search': fullTextSearchCmd, function: functionCmd, 'hostname-binding': hostnameBindingCmd, - 'http-route': httpRouteCmd, 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-managed-domain': platformManagedDomainCmd, 'platform-page': platformPageCmd, 'platform-site-app-link': platformSiteAppLinkCmd, @@ -165,6 +175,7 @@ const createCommandMap: () => Record< policy: policyCmd, 'primary-key-constraint': primaryKeyConstraintCmd, 'pubkey-setting': pubkeySettingCmd, + redirect: redirectCmd, 'rls-setting': rlsSettingCmd, 'route-binding': routeBindingCmd, route: routeCmd, @@ -196,7 +207,6 @@ const createCommandMap: () => Record< 'api-schema-names': apiSchemaNamesCmd, 'apply-registry-defaults': applyRegistryDefaultsCmd, 'resolve-deep-link': resolveDeepLinkCmd, - 'resolve-http-route': resolveHttpRouteCmd, 'resolve-route': resolveRouteCmd, 'resolve-site-app-links': resolveSiteAppLinksCmd, 'accept-database-transfer': acceptDatabaseTransferCmd, @@ -212,7 +222,7 @@ const createCommandMap: () => Record< 'sites-provision-static-site': sitesProvisionStaticSiteCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n apis apis CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-apis platformApis CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n resolve-deep-link resolveDeepLink\n resolve-http-route resolveHttpRoute\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n domains-assign-subdomain domainsAssignSubdomain\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n sites-provision-static-site sitesProvisionStaticSite\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n 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-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-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n domains-assign-subdomain domainsAssignSubdomain\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n sites-provision-static-site sitesProvisionStaticSite\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/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/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/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/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/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-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-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-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/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/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/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..f04247c62f 100644 --- a/sdk/constructive-cli/src/api/cli/commands/route-binding.ts +++ b/sdk/constructive-cli/src/api/cli/commands/route-binding.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { targetApiId: 'uuid', targetBucketId: 'uuid', targetFunctionId: 'uuid', + targetRedirectId: 'uuid', targetServiceId: 'uuid', targetSiteId: 'uuid', updatedAt: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -121,6 +123,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -165,6 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -237,6 +241,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', @@ -269,6 +280,7 @@ async function handleCreate(argv: Partial>, prompter: In targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -282,6 +294,7 @@ async function handleCreate(argv: Partial>, prompter: In targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -360,6 +373,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', @@ -392,6 +412,7 @@ async function handleUpdate(argv: Partial>, prompter: In targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -405,6 +426,7 @@ async function handleUpdate(argv: Partial>, prompter: In 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..5e5b463394 100644 --- a/sdk/constructive-cli/src/api/cli/commands/route.ts +++ b/sdk/constructive-cli/src/api/cli/commands/route.ts @@ -28,6 +28,7 @@ const fieldSchema: FieldSchema = { targetApiId: 'uuid', targetBucketId: 'uuid', targetFunctionId: 'uuid', + targetRedirectId: 'uuid', targetServiceId: 'uuid', targetSiteId: 'uuid', updatedAt: 'string', @@ -95,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -130,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -177,6 +180,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -263,6 +267,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', @@ -294,6 +305,7 @@ async function handleCreate(argv: Partial>, prompter: In targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -310,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, @@ -402,6 +415,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', @@ -436,6 +456,7 @@ async function handleUpdate(argv: Partial>, prompter: In targetApiId: cleanedData.targetApiId, targetBucketId: cleanedData.targetBucketId, targetFunctionId: cleanedData.targetFunctionId, + targetRedirectId: cleanedData.targetRedirectId, targetServiceId: cleanedData.targetServiceId, targetSiteId: cleanedData.targetSiteId, }, @@ -452,6 +473,7 @@ async function handleUpdate(argv: Partial>, prompter: In targetApiId: true, targetBucketId: true, targetFunctionId: true, + targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true, 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/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index b54112ba5a..8b28bf6260 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 | @@ -47,19 +50,21 @@ const db = createClient({ | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | 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 | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -73,6 +78,7 @@ const db = createClient({ | `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 | @@ -104,6 +110,44 @@ const db = createClient({ ## Table Operations +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -185,44 +229,6 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.apis` - -CRUD operations for Apis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all apis records -const items = await db.apis.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.apis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.apis.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apis.delete({ where: { id: '' } }).execute(); -``` - ### `db.astMigration` CRUD operations for AstMigration records. @@ -550,6 +556,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 +568,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 +593,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 +605,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 +613,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 +752,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. @@ -1154,47 +1282,6 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` - -CRUD operations for HttpRoute 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 | - -**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(); - -// 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(); - -// Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); -``` - ### `db.index` CRUD operations for Index records. @@ -1252,6 +1339,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 +1347,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 +1355,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(); @@ -1394,6 +1483,43 @@ const updated = await db.partition.update({ where: { id: '' }, data: { dat const deleted = await db.partition.delete({ where: { id: '' } }).execute(); ``` +### `db.platformApi` + +CRUD operations for PlatformApi records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformApi records +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformApi.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformApiSchema` CRUD operations for PlatformApiSchema records. @@ -1473,43 +1599,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 +1642,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 +1653,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 +1661,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,6 +1757,122 @@ const updated = await db.platformDomainVerification.update({ where: { id: '' } }).execute(); ``` +### `db.platformEmailIdentity` + +CRUD operations for PlatformEmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailIdentity records +const items = await db.platformEmailIdentity.findMany({ select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailIdentity.findOne({ id: '', select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailIdentity.create({ data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailProviderAccount` + +CRUD operations for PlatformEmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all platformEmailProviderAccount records +const items = await db.platformEmailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.platformEmailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.platformEmailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailSiteIdentity` + +CRUD operations for PlatformEmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailSiteIdentity records +const items = await db.platformEmailSiteIdentity.findMany({ select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailSiteIdentity.findOne({ id: '', select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailSiteIdentity.create({ data: { emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailSiteIdentity.update({ where: { id: '' }, data: { emailIdentityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. @@ -1678,12 +1885,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 | @@ -1691,13 +1900,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(); @@ -1792,6 +2001,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 +2011,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(); @@ -2052,6 +2263,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 +2286,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 +2382,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. @@ -2227,6 +2477,7 @@ CRUD operations for RouteBinding records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2235,13 +2486,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, 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, 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: '', 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(); @@ -2270,6 +2521,7 @@ CRUD operations for Route records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2278,13 +2530,13 @@ 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', 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(); @@ -2419,6 +2671,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 +2682,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(); @@ -3314,23 +3568,6 @@ resolveDeepLink const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` - -resolveHttpRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - ### `db.query.resolveRoute` resolveRoute diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 98c5108b79..87c6a4aab6 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'; @@ -31,19 +34,21 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; 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 { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -57,6 +62,7 @@ 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'; @@ -120,9 +126,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - apis: new ApisModel(client), astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), @@ -136,6 +142,9 @@ export function createClient(config: OrmClientConfig) { domainEvent: new DomainEventModel(client), domainType: new DomainTypeModel(client), domainVerification: new DomainVerificationModel(client), + emailIdentity: new EmailIdentityModel(client), + emailProviderAccount: new EmailProviderAccountModel(client), + emailSiteIdentity: new EmailSiteIdentityModel(client), embeddingChunk: new EmbeddingChunkModel(client), enum: new EnumModel(client), exclusionConstraint: new ExclusionConstraintModel(client), @@ -146,19 +155,21 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(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), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), @@ -172,6 +183,7 @@ export function createClient(config: OrmClientConfig) { 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), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index 2347f17ca6..9f34cd64dd 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -232,11 +232,31 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; -export type ObjectCategory = 'APP' | 'AUTH' | 'CORE' | 'MEMBERSHIPS' | 'MODULE' | 'PERMISSIONS'; +export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; -/** Join table linking API surfaces to the metaschema schemas they expose */ +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ +export interface Api { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} +/** Join table linking API surfaces to the metaschema schemas they expose */ export interface ApiSchema { /** API surface that exposes this schema */ apiId?: string | null; @@ -286,26 +306,6 @@ export interface ApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface Apis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} export interface AstMigration { actionId?: string | null; actionName?: string | null; @@ -440,6 +440,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 +453,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 +474,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 */ @@ -546,6 +549,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; @@ -707,30 +780,6 @@ 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 Index { accessMethod?: string | null; category?: ObjectCategory | null; @@ -759,6 +808,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 +821,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 */ @@ -821,6 +872,24 @@ export interface Partition { tableId?: string | null; updatedAt?: string | null; } +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ +export interface PlatformApi { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} /** Join table linking API surfaces to the metaschema schemas they expose */ export interface PlatformApiSchema { /** API surface that exposes this schema */ @@ -867,24 +936,6 @@ export interface PlatformApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface PlatformApis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} /** Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default */ export interface PlatformCorsSetting { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -900,6 +951,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 +970,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 */ @@ -973,6 +1026,70 @@ export interface PlatformDomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface PlatformEmailIdentity { + createdAt?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface PlatformEmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface PlatformEmailSiteIdentity { + createdAt?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} /** Platform-operated hostnames whose DNS and certificate lifecycle the platform drives */ export interface PlatformManagedDomain { /** Whether tenants may claim subdomains under this managed hostname */ @@ -982,6 +1099,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 +1110,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 */ @@ -1045,6 +1164,7 @@ export interface PlatformSite { /** Catalog 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; @@ -1061,6 +1181,7 @@ export interface PlatformSite { /** 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 { @@ -1172,6 +1293,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 +1352,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) */ @@ -1272,6 +1415,8 @@ export interface RouteBinding { 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 */ @@ -1303,6 +1448,8 @@ export interface Route { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -1363,6 +1510,7 @@ export interface Site { /** Catalog 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 */ @@ -1381,6 +1529,7 @@ export interface Site { /** 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 { @@ -1736,17 +1885,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 +1907,7 @@ export interface CompositeTypeRelations { schema?: Schema | null; } export interface CorsSettingRelations { - api?: Apis | null; + api?: Api | null; } export interface DatabaseRelations { checkConstraints?: ConnectionResult; @@ -1812,7 +1961,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -1828,6 +1976,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; @@ -1876,9 +2035,6 @@ export interface FunctionRelations { schema?: Schema | null; } export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -1896,20 +2052,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 +2080,17 @@ export interface PlatformDomainVerificationRelations { domain?: PlatformDomain | null; managedDomain?: PlatformManagedDomain | null; } +export interface PlatformEmailIdentityRelations { + providerAccount?: PlatformEmailProviderAccount | null; + platformEmailSiteIdentitiesByEmailIdentityId?: ConnectionResult; +} +export interface PlatformEmailProviderAccountRelations { + platformEmailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface PlatformEmailSiteIdentityRelations { + emailIdentity?: PlatformEmailIdentity | null; + site?: PlatformSite | null; +} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -1935,6 +2102,7 @@ export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } export interface PlatformSiteRelations { + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; @@ -1979,6 +2147,7 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -2014,6 +2183,7 @@ export interface SiteAppLinkRelations { site?: Site | null; } export interface SiteRelations { + emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; @@ -2139,9 +2309,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 +2325,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; @@ -2167,20 +2341,25 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; 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 PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2200,6 +2379,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; @@ -2230,6 +2410,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 +2445,7 @@ export type ApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; schema?: { select: SchemaSelect; @@ -2265,34 +2472,7 @@ export type ApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; - }; -}; -export type ApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - apiSettingByApiId?: { - select: ApiSettingSelect; - }; - apiSchemasByApiId?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - corsSettingsByApiId?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; + select: ApiSelect; }; }; export type AstMigrationSelect = { @@ -2358,7 +2538,7 @@ export type CorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; }; export type DatabaseSelect = { @@ -2635,6 +2815,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2654,6 +2835,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2665,6 +2847,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2679,12 +2862,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -2759,6 +2936,68 @@ export type DomainVerificationSelect = { select: ManagedDomainSelect; }; }; +export type EmailIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: EmailProviderAccountSelect; + }; + emailSiteIdentities?: { + select: EmailSiteIdentitySelect; + first?: number; + filter?: EmailSiteIdentityFilter; + orderBy?: EmailSiteIdentityOrderBy[]; + }; +}; +export type EmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + databaseId?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + emailIdentitiesByProviderAccountId?: { + select: EmailIdentitySelect; + first?: number; + filter?: EmailIdentityFilter; + orderBy?: EmailIdentityOrderBy[]; + }; +}; +export type EmailSiteIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + site?: { + select: SiteSelect; + }; +}; export type EmbeddingChunkSelect = { chunkOverlap?: boolean; chunkSize?: boolean; @@ -3018,24 +3257,6 @@ 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 IndexSelect = { accessMethod?: boolean; category?: boolean; @@ -3066,6 +3287,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3073,6 +3295,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3135,14 +3358,37 @@ export type PartitionSelect = { select: TableSelect; }; }; -export type PlatformApiSchemaSelect = { - apiId?: boolean; +export type PlatformApiSelect = { + anonRole?: boolean; + config?: boolean; createdAt?: boolean; + dbname?: boolean; id?: boolean; - schemaId?: boolean; - updatedAt?: boolean; - api?: { - select: PlatformApisSelect; + 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; + id?: boolean; + schemaId?: boolean; + updatedAt?: boolean; + api?: { + select: PlatformApiSelect; }; schema?: { select: SchemaSelect; @@ -3168,30 +3414,7 @@ export type PlatformApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; - }; -}; -export type PlatformApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - platformApiSettingByApiId?: { - select: PlatformApiSettingSelect; - }; - platformCorsSettingByApiId?: { - select: PlatformCorsSettingSelect; - }; - platformApiSchemasByApiId?: { - select: PlatformApiSchemaSelect; - first?: number; - filter?: PlatformApiSchemaFilter; - orderBy?: PlatformApiSchemaOrderBy[]; + select: PlatformApiSelect; }; }; export type PlatformCorsSettingSelect = { @@ -3201,12 +3424,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 +3441,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3276,17 +3501,78 @@ export type PlatformDomainVerificationSelect = { select: PlatformManagedDomainSelect; }; }; +export type PlatformEmailIdentitySelect = { + createdAt?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailSiteIdentitiesByEmailIdentityId?: { + select: PlatformEmailSiteIdentitySelect; + first?: number; + filter?: PlatformEmailSiteIdentityFilter; + orderBy?: PlatformEmailSiteIdentityOrderBy[]; + }; +}; +export type PlatformEmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + platformEmailIdentitiesByProviderAccountId?: { + select: PlatformEmailIdentitySelect; + first?: number; + filter?: PlatformEmailIdentityFilter; + orderBy?: PlatformEmailIdentityOrderBy[]; + }; +}; +export type PlatformEmailSiteIdentitySelect = { + createdAt?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; 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?: { @@ -3335,6 +3621,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3344,6 +3631,10 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformEmailSiteIdentityBySiteId?: { + select: PlatformEmailSiteIdentitySelect; + }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; @@ -3473,6 +3764,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3553,6 +3845,18 @@ 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; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3601,6 +3905,7 @@ export type RouteBindingSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -3618,6 +3923,7 @@ export type RouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -3738,6 +4044,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -3748,6 +4055,10 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; siteMetadatum?: { select: SiteMetadatumSelect; }; @@ -4365,11 +4676,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 +4744,7 @@ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4437,46 +4788,6 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ApisFilter { - /** Checks for all expressions in this list. */ - and?: ApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: ApisFilter; - /** Checks for any expressions in this list. */ - or?: ApisFilter[]; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface AstMigrationFilter { /** Filter by the object’s `actionId` field. */ actionId?: UUIDFilter; @@ -4589,7 +4900,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. */ @@ -4890,6 +5201,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 +5231,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 +5245,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 +5271,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,6 +5406,116 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface EmbeddingChunkFilter { /** Checks for all expressions in this list. */ and?: EmbeddingChunkFilter[]; @@ -5513,42 +5936,6 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -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; -} export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ accessMethod?: StringFilter; @@ -5606,6 +5993,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 +6021,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. */ @@ -5727,11 +6118,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 +6182,7 @@ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5795,55 +6224,17 @@ export interface PlatformApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface PlatformApisFilter { +export interface PlatformCorsSettingFilter { + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; /** 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; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; + and?: PlatformCorsSettingFilter[]; + /** Filter by the object’s `api` relation. */ + api?: PlatformApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -5862,6 +6253,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 +6287,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 +6380,110 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformEmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface PlatformEmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformEmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -5996,6 +6495,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 +6521,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. */ @@ -6092,6 +6595,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 +6613,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. */ @@ -6146,6 +6655,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. */ @@ -6318,6 +6829,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 +6972,34 @@ 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 `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[]; @@ -6548,6 +7089,8 @@ export interface RouteBindingFilter { 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. */ @@ -6588,6 +7131,8 @@ export interface RouteFilter { 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. */ @@ -6738,10 +7283,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. */ @@ -6794,6 +7345,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. */ @@ -7642,6 +8195,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' @@ -7700,30 +8277,6 @@ export type ApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' @@ -7945,6 +8498,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 +8520,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 +8547,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 +8645,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' @@ -8388,36 +9029,6 @@ 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' - | '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'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -8465,6 +9076,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 +9095,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' @@ -8556,6 +9171,28 @@ export type PartitionOrderBy = | 'TABLE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' @@ -8610,28 +9247,6 @@ export type PlatformApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type PlatformCorsSettingOrderBy = | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' @@ -8651,6 +9266,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 +9291,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,23 +9355,101 @@ export type PlatformDomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; -export type PlatformManagedDomainOrderBy = - | 'ALLOW_PUBLIC_USAGE_ASC' - | 'ALLOW_PUBLIC_USAGE_DESC' - | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'CERT_STATUS_ASC' - | 'CERT_STATUS_DESC' +export type PlatformEmailIdentityOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_WILDCARD_ASC' - | 'IS_WILDCARD_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformEmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type PlatformEmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformManagedDomainOrderBy = + | 'ALLOW_PUBLIC_USAGE_ASC' + | 'ALLOW_PUBLIC_USAGE_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CERT_STATUS_ASC' + | 'CERT_STATUS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_WILDCARD_ASC' + | 'IS_WILDCARD_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TLS_READY_AT_ASC' | 'TLS_READY_AT_DESC' @@ -8760,6 +9457,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' @@ -8817,6 +9516,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 +9538,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' @@ -8973,6 +9676,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 +9773,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' @@ -9118,6 +9847,8 @@ export type RouteBindingOrderBy = | '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' @@ -9152,6 +9883,8 @@ export type RouteOrderBy = | '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' @@ -9239,6 +9972,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 +9996,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' @@ -9801,6 +10538,36 @@ export type WebauthnSettingOrderBy = | 'USER_FIELD_ID_ASC' | 'USER_FIELD_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateApiInput { + clientMutationId?: string; + api: { + anonRole?: string; + config?: Record; + databaseId: string; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface ApiPatch { + anonRole?: string | null; + config?: Record | null; + databaseId?: string | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -9871,36 +10638,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: { @@ -10179,6 +10916,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10188,6 +10926,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10207,6 +10946,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10216,12 +10956,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 +10973,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -10357,6 +11100,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: { @@ -10729,42 +11572,6 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { - clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: 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 UpdateHttpRouteInput { - clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; -} -export interface DeleteHttpRouteInput { - clientMutationId?: string; - id: string; -} export interface CreateIndexInput { clientMutationId?: string; index: { @@ -10815,11 +11622,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 +11637,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; } @@ -10939,6 +11750,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: { @@ -11005,34 +11844,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 +11868,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11065,12 +11877,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 +11893,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11161,43 +11976,141 @@ 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; - isWildcard?: boolean | null; - tlsReadyAt?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; - verifiedAt?: 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 UpdatePlatformManagedDomainInput { +export interface UpdatePlatformEmailIdentityInput { clientMutationId?: string; id: string; - platformManagedDomainPatch: PlatformManagedDomainPatch; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; } -export interface DeletePlatformManagedDomainInput { +export interface DeletePlatformEmailIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformPageInput { +export interface CreatePlatformEmailProviderAccountInput { clientMutationId?: string; - platformPage: { + platformEmailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface PlatformEmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdatePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; +} +export interface DeletePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + platformEmailSiteIdentity: { + emailIdentityId: string; + siteId: string; + }; +} +export interface PlatformEmailSiteIdentityPatch { + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; +} +export interface DeletePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformManagedDomainInput { + clientMutationId?: string; + platformManagedDomain: { + 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; +} +export interface UpdatePlatformManagedDomainInput { + clientMutationId?: string; + id: string; + platformManagedDomainPatch: PlatformManagedDomainPatch; +} +export interface DeletePlatformManagedDomainInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformPageInput { + clientMutationId?: string; + platformPage: { commitId?: string; content: Record; siteId: string; @@ -11258,6 +12171,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -11265,11 +12179,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 +12193,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -11463,6 +12380,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -11481,6 +12399,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -11575,6 +12494,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: { @@ -11620,6 +12569,7 @@ export interface CreateRouteBindingInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -11633,6 +12583,7 @@ export interface RouteBindingPatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -11658,6 +12609,7 @@ export interface CreateRouteInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -11673,6 +12625,7 @@ export interface RoutePatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -11782,6 +12735,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -11790,11 +12744,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 +12759,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12503,9 +13460,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 +13503,14 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, + EmailIdentity: { + emailSiteIdentities: 'EmailSiteIdentity', + }, + EmailProviderAccount: { + emailIdentitiesByProviderAccountId: 'EmailIdentity', + }, Field: { embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk', embeddingChunksByParentFkFieldId: 'EmbeddingChunk', @@ -12564,13 +13526,19 @@ export const connectionFieldsMap = { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', }, - PlatformApis: { + PlatformApi: { platformApiSchemasByApiId: 'PlatformApiSchema', }, PlatformDomain: { platformDomainEventsByDomainId: 'PlatformDomainEvent', platformDomainVerificationsByDomainId: 'PlatformDomainVerification', }, + PlatformEmailIdentity: { + platformEmailSiteIdentitiesByEmailIdentityId: 'PlatformEmailSiteIdentity', + }, + PlatformEmailProviderAccount: { + platformEmailIdentitiesByProviderAccountId: 'PlatformEmailIdentity', + }, PlatformManagedDomain: { platformDomainEventsByManagedDomainId: 'PlatformDomainEvent', platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification', @@ -12713,7 +13681,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 +13690,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 +14047,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 +14056,24 @@ export interface DomainToManyRouteFilter { /** Filters to entities where at least one related entity matches. */ some?: RouteFilter; } +/** A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityToManyEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSiteIdentityFilter; +} +/** A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountToManyEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailIdentityFilter; +} /** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManyEmbeddingChunkFilter { /** Filters to entities where every related entity matches. */ @@ -13161,7 +14138,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 +14164,24 @@ export interface PlatformDomainToManyPlatformDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformDomainVerificationFilter; } +/** A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailSiteIdentityFilter; +} +/** A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailIdentityFilter; +} /** A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformManagedDomainToManyPlatformDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -13670,6 +14665,26 @@ export interface ViewToManyViewTableFilter { /** Filters to entities where at least one related entity matches. */ some?: ViewTableFilter; } +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `ApiSchema` */ export interface ApiSchemaInput { /** API surface that exposes this schema */ @@ -13720,26 +14735,6 @@ export interface ApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `Apis` */ -export interface ApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -13865,6 +14860,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -13877,6 +14873,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 +14894,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 */ @@ -13972,6 +14970,76 @@ export interface DomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `EmailProviderAccount` */ +export interface EmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `EmailSiteIdentity` */ +export interface EmailSiteIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `EmbeddingChunk` */ export interface EmbeddingChunkInput { chunkOverlap?: number; @@ -14142,30 +15210,6 @@ 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 `Index` */ export interface IndexInput { accessMethod?: string; @@ -14195,6 +15239,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 +15252,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 */ @@ -14259,6 +15305,24 @@ export interface PartitionInput { tableId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformApi` */ +export interface PlatformApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformApiSchema` */ export interface PlatformApiSchemaInput { /** API surface that exposes this schema */ @@ -14305,24 +15369,6 @@ export interface PlatformApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `PlatformApis` */ -export interface PlatformApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `PlatformCorsSetting` */ export interface PlatformCorsSettingInput { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -14338,6 +15384,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 +15403,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 */ @@ -14411,6 +15459,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 +15532,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 +15543,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 */ @@ -14483,6 +15597,7 @@ export interface PlatformSiteInput { /** Catalog 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; @@ -14499,6 +15614,7 @@ export interface PlatformSiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -14611,6 +15727,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 +15787,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) */ @@ -14712,6 +15850,8 @@ export interface RouteBindingInput { 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 */ @@ -14743,6 +15883,8 @@ export interface RouteInput { targetBucketId?: string; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -14805,6 +15947,7 @@ export interface SiteInput { /** Catalog 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 */ @@ -14823,6 +15966,7 @@ export interface SiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -15166,7 +16310,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 +16337,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 +16507,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. */ @@ -15918,6 +17064,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. */ @@ -16769,43 +17917,6 @@ 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. */ @@ -16840,6 +17951,8 @@ export interface RouteFilter { 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. */ @@ -16847,13 +17960,81 @@ export interface RouteFilter { /** 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 { +/** 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?: PlatformApiSchemaFilter[]; - /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; - /** Filter by the object’s `apiId` field. */ + 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?: PlatformApiFilter; + /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; @@ -16958,6 +18139,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. */ @@ -17302,26 +18547,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 +18580,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 +19072,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 +19086,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 +19112,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 +19131,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,15 +19159,137 @@ 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[]; + 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 `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?: SiteFilter; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Filter by the object’s `pages` relation. */ + pages?: SiteToManyPageFilter; + /** `pages` exist. */ + pagesExist?: boolean; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `siteAppLinks` relation. */ + siteAppLinks?: SiteToManySiteAppLinkFilter; + /** `siteAppLinks` exist. */ + siteAppLinksExist?: boolean; + /** Filter by the object’s `siteDeepLinks` relation. */ + siteDeepLinks?: SiteToManySiteDeepLinkFilter; + /** `siteDeepLinks` exist. */ + siteDeepLinksExist?: boolean; + /** Filter by the object’s `siteErrorPages` relation. */ + siteErrorPages?: SiteToManySiteErrorPageFilter; + /** `siteErrorPages` exist. */ + siteErrorPagesExist?: boolean; + /** Filter by the object’s `siteMetadatum` relation. */ + siteMetadatum?: SiteMetadatumFilter; + /** A related `siteMetadatum` exists. */ + siteMetadatumExists?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `siteWebConfig` relation. */ + siteWebConfig?: SiteWebConfigFilter; + /** A related `siteWebConfig` exists. */ + siteWebConfigExists?: boolean; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; /** Filter by the object’s `config` field. */ @@ -17936,11 +19305,11 @@ export interface PlatformApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformApisFilter; + not?: PlatformApiFilter; /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; + or?: PlatformApiFilter[]; /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; /** `platformApiSchemasByApiId` exist. */ platformApiSchemasByApiIdExist?: boolean; /** Filter by the object’s `platformApiSettingByApiId` relation. */ @@ -17964,6 +19333,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 +19367,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 +19386,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 +19412,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 +19429,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 +19447,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. */ @@ -18106,80 +19489,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. */ @@ -18223,12 +19584,82 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `canonicalUrl` field. */ + canonicalUrl?: StringFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Filter by the object’s `robots` field. */ + robots?: StringFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteWebConfigFilter { + /** Checks for all expressions in this list. */ + and?: SiteWebConfigFilter[]; + /** Filter by the object’s `cleanUrls` field. */ + cleanUrls?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `indexDocument` field. */ + indexDocument?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: SiteWebConfigFilter; + /** Checks for any expressions in this list. */ + or?: SiteWebConfigFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `spaFallback` field. */ + spaFallback?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18277,7 +19708,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. */ @@ -18359,76 +19790,6 @@ export interface PlatformSiteWebConfigFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `canonicalUrl` field. */ - canonicalUrl?: StringFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Filter by the object’s `robots` field. */ - robots?: StringFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteWebConfigFilter { - /** Checks for all expressions in this list. */ - and?: SiteWebConfigFilter[]; - /** Filter by the object’s `cleanUrls` field. */ - cleanUrls?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indexDocument` field. */ - indexDocument?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: SiteWebConfigFilter; - /** Checks for any expressions in this list. */ - or?: SiteWebConfigFilter[]; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `spaFallback` field. */ - spaFallback?: BooleanFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} /** A filter to be used against 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. */ @@ -18455,24 +19816,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; @@ -18627,6 +19970,51 @@ export type SitesProvisionStaticSitePayloadSelect = { select: PlatformRouteSelect; }; }; +export interface CreateApiPayload { + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type CreateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateApiPayload { + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type UpdateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteApiPayload { + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type DeleteApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateApiSchemaPayload { /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; @@ -18709,56 +20097,11 @@ export interface DeleteApiSettingPayload { clientMutationId?: string | null; } export type DeleteApiSettingPayloadSelect = { - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; - 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; + apiSetting?: { + select: ApiSettingSelect; }; - apisEdge?: { - select: ApisEdgeSelect; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; }; clientMutationId?: boolean; }; @@ -19302,6 +20645,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,51 +21230,6 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type CreateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface UpdateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type UpdateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface DeleteHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type DeleteHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; export interface CreateIndexPayload { clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ @@ -20022,6 +21455,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 +21590,6 @@ export type DeletePlatformApiSettingPayloadSelect = { select: PlatformApiSettingEdgeSelect; }; }; -export interface CreatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was created by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type CreatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface UpdatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was updated by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type UpdatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface DeletePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was deleted by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type DeletePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; export interface CreatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was created by this mutation. */ @@ -20337,6 +21770,141 @@ export type DeletePlatformDomainVerificationPayloadSelect = { select: PlatformDomainVerificationEdgeSelect; }; }; +export interface CreatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was created by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type CreatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was updated by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type UpdatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was deleted by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type DeletePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface CreatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was created by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type CreatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface UpdatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was updated by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type UpdatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface DeletePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type DeletePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface CreatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type CreatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type UpdatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type DeletePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; export interface CreatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was created by this mutation. */ @@ -20922,6 +22490,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. */ @@ -22183,6 +23796,8 @@ export interface PlatformRoute { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -22201,6 +23816,7 @@ export type PlatformRouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -22227,7 +23843,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules: Record; /** Additional configuration options for provisioning */ options: Record; @@ -22262,6 +23878,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -22286,18 +23914,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 +24046,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,18 +24202,6 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { - cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; -} -export type HttpRouteEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteSelect; - }; -}; /** A `Index` edge in the connection. */ export interface IndexEdge { cursor?: string | null; @@ -22622,6 +24262,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 +24298,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 +24334,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; @@ -22850,6 +24526,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; 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/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/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index a947c4f65f..5129b9c87d 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'; @@ -29,19 +32,21 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; 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 { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; @@ -55,6 +60,7 @@ 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'; 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/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/query/index.ts b/sdk/constructive-cli/src/api/orm/query/index.ts index 1d38cd7001..eba73f137f 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; @@ -24,11 +19,6 @@ export interface ResolveDeepLinkVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} export interface ResolveRouteVariables { requestHost?: string; requestMethod?: string; @@ -134,43 +124,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', - ...buildCustomDocument( - 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveHttpRouteRecord' - ), - }), resolveRoute: ( args: ResolveRouteVariables, options: { diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 18f3c6520c..a2fe24f723 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 30 +- **Custom mutations:** 32 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 9344a8d22d..9a0db6356c 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -70,9 +70,11 @@ and lifecycle settings. | | `set-password` | setPassword | | `sign-in` | signIn | | `sign-in-cross-origin` | signInCrossOrigin | +| `sign-in-magic-link` | signInMagicLink | | `sign-in-sms-otp` | signInSmsOtp | | `sign-out` | signOut | | `sign-up` | signUp | +| `sign-up-magic-link` | signUpMagicLink | | `sign-up-sms` | signUpSms | | `verify-email` | verifyEmail | | `verify-password` | verifyPassword | @@ -868,6 +870,21 @@ signInCrossOrigin | `--input.credentialKind` | String | | `--input.token` | String | +### `sign-in-magic-link` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.credentialKind` | String | + | `--input.deviceToken` | String | + | `--input.rememberMe` | Boolean | + | `--input.token` | String | + ### `sign-in-sms-otp` signInSmsOtp @@ -912,6 +929,21 @@ signUp | `--input.password` | String | | `--input.rememberMe` | Boolean | +### `sign-up-magic-link` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.credentialKind` | String | + | `--input.deviceToken` | String | + | `--input.rememberMe` | Boolean | + | `--input.token` | String | + ### `sign-up-sms` signUpSms diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index dfbdf380c0..badd88f45c 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -47,9 +47,11 @@ import sendVerificationEmailCmd from './commands/send-verification-email'; import setPasswordCmd from './commands/set-password'; import signInCmd from './commands/sign-in'; import signInCrossOriginCmd from './commands/sign-in-cross-origin'; +import signInMagicLinkCmd from './commands/sign-in-magic-link'; import signInSmsOtpCmd from './commands/sign-in-sms-otp'; import signOutCmd from './commands/sign-out'; import signUpCmd from './commands/sign-up'; +import signUpMagicLinkCmd from './commands/sign-up-magic-link'; import signUpSmsCmd from './commands/sign-up-sms'; import verifyEmailCmd from './commands/verify-email'; import verifyPasswordCmd from './commands/verify-password'; @@ -105,16 +107,18 @@ const createCommandMap: () => Record< 'set-password': setPasswordCmd, 'sign-in': signInCmd, 'sign-in-cross-origin': signInCrossOriginCmd, + 'sign-in-magic-link': signInMagicLinkCmd, 'sign-in-sms-otp': signInSmsOtpCmd, 'sign-out': signOutCmd, 'sign-up': signUpCmd, + 'sign-up-magic-link': signUpMagicLinkCmd, 'sign-up-sms': signUpSmsCmd, 'verify-email': verifyEmailCmd, 'verify-password': verifyPasswordCmd, 'verify-totp': verifyTotpCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n require-step-up requireStepUp\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n create-api-key createApiKey\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n link-identity linkIdentity\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n provision-new-user provisionNewUser\n request-cross-origin-token requestCrossOriginToken\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-verification-email sendVerificationEmail\n set-password setPassword\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-sms signUpSms\n verify-email verifyEmail\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n require-step-up requireStepUp\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n create-api-key createApiKey\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n link-identity linkIdentity\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n provision-new-user provisionNewUser\n request-cross-origin-token requestCrossOriginToken\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-verification-email sendVerificationEmail\n set-password setPassword\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n verify-email verifyEmail\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts new file mode 100644 index 0000000000..f51c2fc91e --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signInMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SignInMagicLinkVariables } from '../../orm/mutation'; +import type { SignInMagicLinkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-in-magic-link - signInMagicLink\n\nUsage: sign-in-magic-link [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .signInMagicLink( + parsedAnswers as unknown as SignInMagicLinkVariables, + { + select: selectFields, + } as unknown as { + select: SignInMagicLinkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signInMagicLink'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts new file mode 100644 index 0000000000..00a35332e0 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signUpMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SignUpMagicLinkVariables } from '../../orm/mutation'; +import type { SignUpMagicLinkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-up-magic-link - signUpMagicLink\n\nUsage: sign-up-magic-link [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .signUpMagicLink( + parsedAnswers as unknown as SignUpMagicLinkVariables, + { + select: selectFields, + } as unknown as { + select: SignUpMagicLinkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signUpMagicLink'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index ab879dfcce..54c1c05969 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -921,6 +921,21 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { credentialKind: '', token: '' } }).execute(); ``` +### `db.mutation.signInMagicLink` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signInSmsOtp` signInSmsOtp @@ -966,6 +981,21 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` +### `db.mutation.signUpMagicLink` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signUpSms` signUpSms diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index b59a65f3f1..f2ea8e5716 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -306,7 +306,7 @@ export interface OrgApiKeyList { } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc?: string | null; createdAt?: string | null; id: string; @@ -316,7 +316,7 @@ export interface PhoneNumber { isVerified?: boolean | null; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string | null; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number?: string | null; ownerId?: string | null; updatedAt?: string | null; @@ -351,9 +351,9 @@ export interface PrincipalEntity { principalId?: string | null; updatedAt?: string | null; } -/** Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. */ +/** Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. */ export interface PrincipalScopeOverride { - /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ + /** Optional capability mask; AND-masked with parent capabilities during cascade. NULL means no extra mask. */ allowedMask?: string | null; createdAt?: string | null; id: string; @@ -1866,6 +1866,13 @@ export interface SignInCrossOriginInput { credentialKind?: string; token?: string; } +export interface SignInMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignInSmsOtpInput { clientMutationId?: string; code?: string; @@ -1886,6 +1893,13 @@ export interface SignUpInput { password?: string; rememberMe?: boolean; } +export interface SignUpMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignUpSmsInput { clientMutationId?: string; code?: string; @@ -2332,7 +2346,7 @@ export interface EmailInput { } /** An input for mutations affecting `PhoneNumber` */ export interface PhoneNumberInput { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc: string; createdAt?: string; id?: string; @@ -2342,7 +2356,7 @@ export interface PhoneNumberInput { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number: string; ownerId?: string; updatedAt?: string; @@ -3271,6 +3285,16 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInMagicLinkPayload { + clientMutationId?: string | null; + result?: SignInMagicLinkRecord | null; +} +export type SignInMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInMagicLinkRecordSelect; + }; +}; export interface SignInSmsOtpPayload { clientMutationId?: string | null; result?: SignInSmsOtpRecord | null; @@ -3297,6 +3321,16 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +export interface SignUpMagicLinkPayload { + clientMutationId?: string | null; + result?: SignUpMagicLinkRecord | null; +} +export type SignUpMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpMagicLinkRecordSelect; + }; +}; export interface SignUpSmsPayload { clientMutationId?: string | null; result?: SignUpSmsRecord | null; @@ -3765,6 +3799,16 @@ export type SignInCrossOriginRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignInMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -3791,6 +3835,16 @@ export type SignUpRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignUpMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index ae0973c7fb..d1531288e5 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -30,9 +30,11 @@ import type { SetPasswordInput, SignInInput, SignInCrossOriginInput, + SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, + SignUpMagicLinkInput, SignUpSmsInput, VerifyEmailInput, VerifyPasswordInput, @@ -60,9 +62,11 @@ import type { SetPasswordPayload, SignInPayload, SignInCrossOriginPayload, + SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, + SignUpMagicLinkPayload, SignUpSmsPayload, VerifyEmailPayload, VerifyPasswordPayload, @@ -90,9 +94,11 @@ import type { SetPasswordPayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, + SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, + SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, @@ -175,6 +181,9 @@ export interface SignInVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInMagicLinkVariables { + input: SignInMagicLinkInput; +} export interface SignInSmsOtpVariables { input: SignInSmsOtpInput; } @@ -184,6 +193,9 @@ export interface SignOutVariables { export interface SignUpVariables { input: SignUpInput; } +export interface SignUpMagicLinkVariables { + input: SignUpMagicLinkInput; +} export interface SignUpSmsVariables { input: SignUpSmsInput; } @@ -865,6 +877,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInMagicLink: ( + args: SignInMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInMagicLink', + fieldName: 'signInMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignInMagicLink', + 'signInMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignInMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignInMagicLinkPayload' + ), + }), signInSmsOtp: ( args: SignInSmsOtpVariables, options: { @@ -952,6 +993,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), + signUpMagicLink: ( + args: SignUpMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpMagicLink', + fieldName: 'signUpMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignUpMagicLink', + 'signUpMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignUpMagicLinkPayload' + ), + }), signUpSms: ( args: SignUpSmsVariables, options: { diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index 8d1e651e73..1023e7b2bb 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:** 113 +- **Custom queries:** 2 +- **Custom mutations:** 54 **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..8739d92df5 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -26,6 +26,18 @@ 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 | +| `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 +56,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 +66,8 @@ 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-function-api-binding` | platformFunctionApiBinding CRUD operations | | `platform-function-capability-binding` | platformFunctionCapabilityBinding CRUD operations | | `platform-function-definition` | platformFunctionDefinition CRUD operations | @@ -60,13 +76,29 @@ 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-workflow` | platformRepositoryWorkflow CRUD operations | | `platform-resource` | platformResource CRUD operations | | `platform-resource-declared-capacity` | platformResourceDeclaredCapacity CRUD operations | | `platform-resource-definition` | platformResourceDefinition CRUD operations | @@ -81,6 +113,18 @@ 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-workflow` | repositoryWorkflow CRUD operations | | `resource` | resource CRUD operations | | `resource-declared-capacity` | resourceDeclaredCapacity CRUD operations | | `resource-definition` | resourceDefinition CRUD operations | @@ -95,22 +139,47 @@ 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 | | `copy-graph` | copyGraph | +| `database-add-edge` | databaseAddEdge | +| `database-add-edge-and-save` | databaseAddEdgeAndSave | +| `database-add-node` | databaseAddNode | +| `database-add-node-and-save` | databaseAddNodeAndSave | +| `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 | | `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-infra-init-empty-repo` | platformInfraInitEmptyRepo | | `platform-infra-insert-node-at-path` | platformInfraInsertNodeAtPath | +| `platform-infra-insert-nodes-at-paths` | platformInfraInsertNodesAtPaths | +| `platform-infra-set-and-commit` | platformInfraSetAndCommit | | `platform-infra-set-data-at-path` | platformInfraSetDataAtPath | +| `platform-infra-set-many-and-commit` | platformInfraSetManyAndCommit | | `platform-resource-installations-install` | platformResourceInstallationsInstall | | `platform-resource-installations-rollback` | platformResourceInstallationsRollback | | `platform-resource-installations-uninstall` | platformResourceInstallationsUninstall | @@ -124,7 +193,9 @@ and lifecycle settings. | | `resource-installations-uninstall` | resourceInstallationsUninstall | | `resource-installations-upgrade` | resourceInstallationsUpgrade | | `save-graph` | saveGraph | +| `set-and-commit` | setAndCommit | | `set-data-at-path` | setDataAtPath | +| `set-many-and-commit` | setManyAndCommit | | `start-execution` | startExecution | | `validate-function-graph` | validateFunctionGraph | @@ -169,275 +240,274 @@ 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 | +| `catalogImageId` | UUID | +| `commitSha` | 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 | +| `jobId` | BigInt | +| `logs` | Upload | +| `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`, `catalogImageId`, `commitSha`, `createdByPrincipal`, `eventId`, `finishedAt`, `jobId`, `logs`, `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` +### `content-preset` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for ContentPreset 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 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 | |-------|------| -| `bucketId` | UUID | +| `active` | Boolean | +| `commitId` | UUID | | `createdAt` | Datetime | -| `databaseId` | UUID | -| `functionId` | UUID | -| `graphId` | UUID | +| `definition` | JSON | +| `description` | String | | `id` | UUID | -| `key` | String | -| `lifecycle` | String | -| `metadata` | JSON | +| `kind` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | | `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `lifecycle` -**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` +**Required create fields:** `definition`, `kind`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` -### `function-definition` +### `database-function-graph` -CRUD operations for FunctionDefinition records. +CRUD operations for DatabaseFunctionGraph 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 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 | |-------|------| -| `accessChannels` | String | -| `category` | String | -| `concurrency` | Int | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `context` | String | | `createdAt` | Datetime | +| `createdBy` | UUID | | `databaseId` | UUID | +| `definitionsCommitId` | UUID | | `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 | +| `isValid` | Boolean | | `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 | +| `storeId` | UUID | | `updatedAt` | Datetime | -| `volatile` | Boolean | +| `validationErrors` | JSON | -**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:** `context`, `createdBy`, `databaseId`, `definitionsCommitId`, `description`, `isValid`, `name`, `storeId`, `validationErrors` -### `function-deployment` +### `database-function-graph-execution` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraphExecution 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 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 | |-------|------| -| `annotations` | JSON | -| `concurrency` | Int | -| `createdAt` | Datetime | +| `actorId` | UUID | +| `completedAt` | Datetime | +| `currentWave` | Int | | `databaseId` | UUID | -| `errorCount` | Int | -| `handlerName` | String | +| `definitionsCommitId` | UUID | +| `entityId` | UUID | +| `entityType` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionPlan` | JSON | +| `graphId` | UUID | | `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 | +| `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 | -| `timeoutSeconds` | Int | -| `updatedAt` | Datetime | +| `tickCount` | Int | +| `timeoutAt` | Datetime | -**Required create fields:** `databaseId`, `image`, `namespaceId` -**Optional create fields (backend defaults):** `annotations`, `concurrency`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds` +**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` -### `function-deployment-event` +### `database-function-graph-execution-node-state` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState 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 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 | |-------|------| -| `actorId` | UUID | +| `callbackInputs` | JSON | +| `callbackMeta` | JSON | +| `callbackTokenHash` | String | +| `completedAt` | Datetime | | `createdAt` | Datetime | | `databaseId` | UUID | -| `deploymentId` | UUID | -| `eventType` | String | +| `errorCode` | String | +| `errorMessage` | String | +| `executionId` | UUID | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | +| `nodeName` | String | +| `nodePath` | String | +| `outputId` | UUID | +| `startedAt` | Datetime | +| `status` | String | -**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`, `nodePath`, `outputId`, `startedAt`, `status` -### `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 +515,821 @@ 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` +### `database-graph-get-all-tree-nodes-record` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord 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 | +| `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 | |-------|------| -| `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` - -CRUD operations for FunctionGraphExecution 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 | - -**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 | +| `catalogImageId` | UUID | +| `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 | +| `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`, `catalogImageId`, `concurrency`, `createdByPrincipal`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `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 | +| `catalogImageId` | UUID | +| `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`, `catalogImageId`, `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 | | `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 | -**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`, `nodePath`, `outputId`, `startedAt`, `status` -### `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 | +| `actorId` | UUID | +| `attempt` | Int | | `createdAt` | Datetime | -| `errorCount` | Int | -| `handlerName` | String | +| `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 | +| `error` | String | +| `functionDefinitionId` | UUID | +| `graphExecutionId` | UUID | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | +| `jobId` | BigInt | +| `parentInvocationId` | UUID | +| `payload` | JSON | +| `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:** `databaseId`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `channel`, `completedAt`, `createdByPrincipal`, `definitionScope`, `durationMs`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `parentInvocationId`, `payload`, `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 +1337,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 +1370,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,88 +1389,122 @@ 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 | |-------|------| -| `annotations` | JSON | +| `brand` | JSON | +| `category` | String | | `createdAt` | Datetime | | `description` | String | +| `icon` | String | | `id` | UUID | -| `isActive` | Boolean | +| `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 | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `description` | String | +| `id` | UUID | +| `isActive` | Boolean | | `isManaged` | Boolean | | `labels` | JSON | | `lastError` | String | @@ -1462,524 +1513,2818 @@ 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`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` + +### `namespace-event` + +CRUD operations for NamespaceEvent 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | + +**Required create fields:** `databaseId`, `eventType`, `namespaceId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `platform-build` + +CRUD operations for PlatformBuild records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `actorId` | UUID | +| `catalogImageId` | UUID | +| `commitSha` | String | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `eventId` | UUID | +| `finishedAt` | Datetime | +| `id` | UUID | +| `jobId` | BigInt | +| `logs` | Upload | +| `metadata` | JSON | +| `proposalId` | UUID | +| `ref` | String | +| `repositoryId` | UUID | +| `startedAt` | Datetime | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | +| `workflowId` | UUID | + +**Required create fields:** `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `catalogImageId`, `commitSha`, `createdByPrincipal`, `eventId`, `finishedAt`, `jobId`, `logs`, `metadata`, `proposalId`, `ref`, `startedAt`, `status`, `updatedByPrincipal`, `workflowId` + +### `platform-build-step` + +CRUD operations for PlatformBuildStep records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `buildId` | UUID | +| `createdByPrincipal` | UUID | +| `exitCode` | Int | +| `finishedAt` | Datetime | +| `id` | UUID | +| `kind` | String | +| `logBytes` | BigInt | +| `logOffset` | BigInt | +| `name` | String | +| `parentSeq` | Int | +| `recordedAt` | Datetime | +| `seq` | Int | +| `startedAt` | Datetime | +| `status` | String | +| `summary` | JSON | + +**Required create fields:** `buildId`, `name`, `seq` +**Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` + +### `platform-function-api-binding` + +CRUD operations for PlatformFunctionApiBinding 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `alias` | String | +| `apiId` | UUID | +| `config` | JSON | +| `createdAt` | Datetime | +| `functionDefinitionId` | UUID | +| `id` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `apiId`, `functionDefinitionId` +**Optional create fields (backend defaults):** `alias`, `config` + +### `platform-function-capability-binding` + +CRUD operations for PlatformFunctionCapabilityBinding 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `bucketId` | UUID | +| `createdAt` | Datetime | +| `functionId` | UUID | +| `graphId` | UUID | +| `id` | UUID | +| `key` | String | +| `lifecycle` | String | +| `metadata` | JSON | +| `updatedAt` | Datetime | + +**Required create fields:** `lifecycle` +**Optional create fields (backend defaults):** `bucketId`, `functionId`, `graphId`, `key`, `metadata` + +### `platform-function-definition` + +CRUD operations for PlatformFunctionDefinition 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `accessChannels` | String | +| `billable` | Boolean | +| `catalogImageId` | UUID | +| `category` | String | +| `concurrency` | Int | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `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 | +| `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:** `category`, `name` +**Optional create fields (backend defaults):** `accessChannels`, `billable`, `catalogImageId`, `concurrency`, `createdByPrincipal`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `system`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `updatedByPrincipal`, `volatile` + +### `platform-function-deployment` + +CRUD operations for PlatformFunctionDeployment 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `catalogImageId` | UUID | +| `concurrency` | Int | +| `createdAt` | Datetime | +| `createdByPrincipal` | 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:** `image`, `namespaceId` +**Optional create fields (backend defaults):** `annotations`, `catalogImageId`, `concurrency`, `createdByPrincipal`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `realm`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds`, `updatedByPrincipal` + +### `platform-function-deployment-event` + +CRUD operations for PlatformFunctionDeploymentEvent 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `deploymentId` | UUID | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | + +**Required create fields:** `deploymentId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `platform-function-execution-log` + +CRUD operations for PlatformFunctionExecutionLog 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `id` | UUID | +| `invocationId` | UUID | +| `logLevel` | String | +| `message` | String | +| `metadata` | JSON | +| `taskIdentifier` | String | + +**Required create fields:** `message` +**Optional create fields (backend defaults):** `actorId`, `invocationId`, `logLevel`, `metadata`, `taskIdentifier` + +### `platform-function-invocation-attempt` + +CRUD operations for PlatformFunctionInvocationAttempt 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `attempt` | Int | +| `createdAt` | Datetime | +| `durationMs` | Int | +| `error` | String | +| `errorDetail` | JSON | +| `id` | UUID | +| `invocationCreatedAt` | Datetime | +| `invocationId` | UUID | +| `startedAt` | Datetime | +| `success` | Boolean | +| `taskIdentifier` | String | + +**Required create fields:** `attempt`, `invocationCreatedAt`, `invocationId`, `success`, `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `durationMs`, `error`, `errorDetail`, `startedAt` + +### `platform-function-invocation` + +CRUD operations for PlatformFunctionInvocation 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `apiBindingId` | UUID | +| `channel` | String | +| `completedAt` | Datetime | +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `definitionScope` | String | +| `durationMs` | Int | +| `error` | String | +| `functionDefinitionId` | UUID | +| `graphExecutionId` | UUID | +| `id` | UUID | +| `jobId` | BigInt | +| `parentInvocationId` | UUID | +| `payload` | JSON | +| `provenance` | JSON | +| `result` | JSON | +| `startedAt` | Datetime | +| `status` | String | +| `taskIdentifier` | String | + +**Required create fields:** `taskIdentifier` +**Optional create fields (backend defaults):** `actorId`, `apiBindingId`, `channel`, `completedAt`, `createdByPrincipal`, `databaseId`, `definitionScope`, `durationMs`, `error`, `functionDefinitionId`, `graphExecutionId`, `jobId`, `parentInvocationId`, `payload`, `provenance`, `result`, `startedAt`, `status` + +### `platform-image` + +CRUD operations for PlatformImage records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `description` | String | +| `digest` | String | +| `expiresAt` | Datetime | +| `id` | UUID | +| `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:** `name`, `repository` +**Optional create fields (backend defaults):** `createdByPrincipal`, `description`, `digest`, `expiresAt`, `isPublished`, `labels`, `metadata`, `ownerId`, `platformOnly`, `registryHost`, `runtime`, `tag`, `updatedByPrincipal` + +### `platform-image-grant` + +CRUD operations for PlatformImageGrant records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +| `createdByPrincipal` | UUID | +| `expiresAt` | Datetime | +| `grantedBy` | UUID | +| `granteeKey` | UUID | +| `granteeScope` | String | +| `id` | UUID | +| `imageId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `granteeKey`, `granteeScope`, `imageId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` + +### `platform-infra-commit` + +CRUD operations for PlatformInfraCommit 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `authorId` | UUID | +| `committerId` | UUID | +| `date` | Datetime | +| `id` | UUID | +| `message` | String | +| `parentIds` | UUID | +| `scopeId` | UUID | +| `storeId` | UUID | +| `treeId` | UUID | + +**Required create fields:** `scopeId`, `storeId` +**Optional create fields (backend defaults):** `authorId`, `committerId`, `date`, `message`, `parentIds`, `treeId` + +### `platform-infra-get-all-tree-nodes-record` + +CRUD operations for PlatformInfraGetAllTreeNodesRecord 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `data` | JSON | +| `path` | String | + +**Required create fields:** `data`, `path` + +### `platform-infra-object` + +CRUD operations for PlatformInfraObject 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `data` | JSON | +| `id` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `scopeId` | UUID | + +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `data`, `kids`, `ktree` + +### `platform-infra-ref` + +CRUD operations for PlatformInfraRef 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `commitId` | UUID | +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | + +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` + +### `platform-infra-store` + +CRUD operations for PlatformInfraStore 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `hash` | UUID | +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | + +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` + +### `platform-k-8-s-resource-kind` + +CRUD operations for PlatformK8sResourceKind records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | +| `id` | UUID | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `definition`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` + +### `platform-k-8-s-spec-rule` + +CRUD operations for PlatformK8sSpecRule records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | +| `id` | UUID | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `definition`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` + +### `platform-namespace` + +CRUD operations for PlatformNamespace 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `annotations` | JSON | +| `createdAt` | Datetime | +| `description` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `isManaged` | Boolean | +| `labels` | JSON | +| `lastError` | String | +| `name` | String | +| `namespaceName` | String | +| `status` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `name`, `namespaceName` +**Optional create fields (backend defaults):** `annotations`, `description`, `isActive`, `isManaged`, `labels`, `lastError`, `status` + +### `platform-namespace-event` + +CRUD operations for PlatformNamespaceEvent 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorId` | UUID | +| `createdAt` | Datetime | +| `eventType` | String | +| `id` | UUID | +| `message` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | + +**Required create fields:** `eventType`, `namespaceId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `platform-proposal-comment` + +CRUD operations for PlatformProposalComment records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `actorId` | UUID | +| `attachments` | Upload | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | 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`, `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 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 +``` + + +### `platform-proposal` + +CRUD operations for PlatformProposal records. + +| Subcommand | Description | +|------------|-------------| +| `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 | +|-------|------| +| `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:** `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 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 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 | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | 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:** `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 | +| `providerTrgmSimilarity` | Float | +| `requiredChecks` | String | +| `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`, `requiredChecks`, `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-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 | +| `catalogImageId` | UUID | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | 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 | +| `statusObserved` | JSON | +| `storageClass` | String | +| `storageSizeBytes` | BigInt | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `kind`, `name`, `namespaceId`, `slug` +**Optional create fields (backend defaults):** `annotations`, `catalogImageId`, `createdBy`, `createdByPrincipal`, `errorCount`, `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 | + +**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes` + +### `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 | +| `catalogImageId` | UUID | +| `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`, `catalogImageId`, `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-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 | +| `catalogImageId` | UUID | +| `cpuLimitMillicores` | BigInt | +| `cpuRequestMillicores` | BigInt | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | 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 | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `annotations`, `catalogImageId`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `createdByPrincipal`, `errorCount`, `installationId`, `integrations`, `kind`, `labels`, `lastError`, `lastHeartbeatAt`, `memoryLimitBytes`, `memoryRequestBytes`, `name`, `namespaceId`, `realm`, `replicas`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `slug`, `spec`, `status`, `statusDetail`, `statusObserved`, `storageClass`, `storageSizeBytes`, `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` -### `platform-namespace-event` +### `proposal-comment` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for ProposalComment 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 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 | -| `eventType` | String | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `embeddingVectorDistance` | Float | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | -| `namespaceId` | 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:** `eventType`, `namespaceId` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**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. -### `platform-resource` +> **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 PlatformResource records. +**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 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 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 | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `actorId` | UUID | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `closedReason` | String | +| `closedReasonTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | -| `errorCount` | Int | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `decidedAt` | Datetime | +| `dueAt` | Datetime | +| `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 | +| `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 | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | +| `statusTrgmSimilarity` | Float | +| `targetRef` | String | +| `targetRefTrgmSimilarity` | Float | +| `title` | String | +| `titleTrgmSimilarity` | Float | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | 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:** `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. -### `platform-resource-declared-capacity` +> **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 PlatformResourceDeclaredCapacity records. +**Search Examples:** -| 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 | +*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 +``` -**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 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 +``` -| 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 | +*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 +``` -**Required create fields:** `cpuLimitMillicores`, `cpuRequestMillicores`, `installationId`, `isTransient`, `kind`, `memoryLimitBytes`, `memoryRequestBytes`, `namespaceId`, `podCountMax`, `podCountMin`, `source`, `sourceId`, `storageSizeBytes` +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` -### `platform-resource-definition` +*Fuzzy search via trigram similarity (`trgmClosedReason`):* +```bash +csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity +``` -CRUD operations for PlatformResourceDefinition records. +*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 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 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 | |-------|------| -| `annotations` | JSON | +| `blobSha` | String | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `defaultSpec` | JSON | -| `description` | String | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | | `id` | UUID | -| `integrations` | String | -| `kind` | String | -| `labels` | JSON | -| `name` | String | -| `namespaceId` | UUID | -| `paramsSchema` | JSON | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `slug` | String | -| `stepUpMinAge` | Interval | +| `path` | String | +| `proposalId` | UUID | +| `reviewerId` | UUID | | `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `viewedAt` | Datetime | -**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:** `blobSha`, `databaseId`, `path`, `proposalId`, `reviewerId` +**Optional create fields (backend defaults):** `createdByPrincipal`, `updatedByPrincipal`, `viewedAt` -### `platform-resource-event` +### `proposal-reaction` -CRUD operations for PlatformResourceEvent records. +CRUD operations for ProposalReaction 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 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 | -| `eventType` | String | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `emoji` | String | | `id` | UUID | -| `message` | String | -| `metadata` | JSON | -| `resourceId` | UUID | +| `proposalId` | UUID | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | -**Required create fields:** `eventType`, `resourceId` -**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` +**Required create fields:** `actorId`, `databaseId`, `emoji`, `proposalId` +**Optional create fields (backend defaults):** `commentId`, `createdByPrincipal`, `updatedByPrincipal` -### `platform-resource-installation` +### `proposal-review` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for ProposalReview 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 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 | |-------|------| -| `commitId` | UUID | +| `body` | String | +| `bodyTrgmSimilarity` | Float | +| `commitSha` | String | +| `commitShaTrgmSimilarity` | Float | | `createdAt` | Datetime | -| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | | `id` | UUID | -| `name` | String | -| `namespaceId` | UUID | -| `params` | JSON | -| `revision` | Int | -| `slug` | String | -| `status` | String | -| `storeId` | UUID | +| `proposalId` | UUID | +| `reviewerId` | UUID | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | +| `submittedAt` | Datetime | | `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `verdict` | String | +| `verdictTrgmSimilarity` | Float | -**Required create fields:** `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `createdBy`, `params`, `revision`, `status`, `storeId`, `updatedBy` +**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. -### `platform-resource-status-check` +**Search Examples:** -CRUD operations for PlatformResourceStatusCheck records. +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` -| 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 | +*Fuzzy search via trigram similarity (`trgmCommitSha`):* +```bash +csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +``` -**Fields:** +*Full-text search via tsvector (`search`):* +```bash +csdk proposal-review list --where.search "search query" --select title,tsvRank +``` -| Field | Type | -|-------|------| -| `completedAt` | Datetime | -| `id` | UUID | -| `requestedAt` | Datetime | -| `requestedBy` | UUID | -| `resourceId` | UUID | -| `result` | JSON | -| `status` | String | +*Fuzzy search via trigram similarity (`trgmVerdict`):* +```bash +csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +``` -**Required create fields:** `resourceId` -**Optional create fields (backend defaults):** `completedAt`, `requestedAt`, `requestedBy`, `result`, `status` +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +``` -### `platform-resource-usage-log` +*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 PlatformResourceUsageLog records. +CRUD operations for ProposalsChunk 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 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 | |-------|------| -| `cpuMillicores` | BigInt | +| `actorId` | UUID | +| `body` | String | +| `chunkIndex` | Int | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `embedding` | Vector | +| `embeddingVectorDistance` | Float | | `id` | UUID | -| `intervalSeconds` | Int | -| `memoryBytes` | BigInt | -| `metrics` | JSON | -| `namespaceId` | UUID | -| `resourceId` | UUID | -| `sampledAt` | Datetime | -| `source` | String | +| `metadata` | JSON | +| `proposalsId` | UUID | +| `searchScore` | Float | +| `updatedAt` | Datetime | -**Required create fields:** `intervalSeconds`, `namespaceId`, `source` -**Optional create fields (backend defaults):** `cpuMillicores`, `memoryBytes`, `metrics`, `resourceId`, `sampledAt` +**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. -### `platform-resource-usage-summary` +> **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. -CRUD operations for PlatformResourceUsageSummary records. +**Search Examples:** -| 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 | +*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 +``` -**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 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 +``` -| Field | Type | -|-------|------| -| `date` | Date | -| `gbSeconds` | BigFloat | -| `id` | UUID | -| `maxCpuMillicores` | BigInt | -| `maxMemoryBytes` | BigInt | -| `namespaceId` | UUID | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | +*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 +``` -**Required create fields:** `date`, `namespaceId` -**Optional create fields (backend defaults):** `gbSeconds`, `maxCpuMillicores`, `maxMemoryBytes`, `resourceId`, `runtimeSeconds`, `sampleCount` +*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 +``` -### `platform-resource-utilization` -CRUD operations for PlatformResourceUtilization records. +### `registry-binding` + +CRUD operations for RegistryBinding 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 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 | |-------|------| -| `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 | +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `metadata` | JSON | | `namespaceId` | UUID | -| `replicas` | Int | -| `resourceId` | UUID | -| `runtimeSeconds` | BigInt | -| `sampleCount` | Int | +| `observedCredentialVersion` | String | +| `pullSecretName` | String | +| `realm` | String | +| `registryHost` | String | +| `registryId` | UUID | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**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:** `databaseId`, `namespaceId`, `registryHost`, `registryId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `metadata`, `observedCredentialVersion`, `pullSecretName`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` -### `platform-resources-health` +### `registry` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for Registry 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 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 | |-------|------| -| `annotations` | JSON | -| `cpuLimitMillicores` | BigInt | -| `cpuRequestMillicores` | BigInt | +| `authMode` | String | +| `basePath` | String | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `errorCount` | Int | +| `createdByPrincipal` | UUID | +| `credentialSecretName` | String | +| `databaseId` | UUID | +| `host` | String | | `id` | UUID | | `installationId` | UUID | -| `integrations` | String | +| `isPublished` | Boolean | | `kind` | String | | `labels` | JSON | | `lastError` | String | -| `lastHeartbeatAt` | Datetime | -| `memoryLimitBytes` | BigInt | -| `memoryRequestBytes` | BigInt | +| `metadata` | JSON | | `name` | String | -| `namespaceId` | UUID | -| `realm` | String | -| `replicas` | Int | -| `requiredConfigs` | ResourceRequirement | -| `requiredSecrets` | ResourceRequirement | -| `resourceDefinitionId` | UUID | -| `slug` | String | -| `spec` | JSON | +| `platformOnly` | Boolean | +| `role` | String | | `status` | String | -| `statusDetail` | String | -| `statusObserved` | JSON | -| `storageClass` | String | -| `storageSizeBytes` | BigInt | | `updatedAt` | Datetime | -| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**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:** `databaseId`, `kind`, `name` +**Optional create fields (backend defaults):** `authMode`, `basePath`, `createdByPrincipal`, `credentialSecretName`, `host`, `installationId`, `isPublished`, `labels`, `lastError`, `metadata`, `platformOnly`, `role`, `status`, `updatedByPrincipal` -### `platform-resources-requirements-state` +### `registry-grant` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for RegistryGrant 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 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 | |-------|------| -| `configHash` | String | -| `configObjectName` | String | -| `requirementsHash` | String | -| `resourceId` | UUID | -| `secretsHash` | String | -| `secretsObjectName` | String | -| `slug` | String | +| `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:** `configHash`, `configObjectName`, `requirementsHash`, `resourceId`, `secretsHash`, `secretsObjectName`, `slug` +**Required create fields:** `databaseId`, `granteeKey`, `granteeScope`, `registryId` +**Optional create fields (backend defaults):** `actions`, `createdByPrincipal`, `expiresAt`, `grantedBy`, `updatedByPrincipal` -### `platform-resources-resolved-requirement` +### `repository` -CRUD operations for PlatformResourcesResolvedRequirement records. +CRUD operations for Repository 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 | +| `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 | |-------|------| -| `atomId` | UUID | -| `configObjectName` | String | +| `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 | -| `namespaceId` | UUID | -| `present` | Boolean | -| `realm` | String | -| `required` | Boolean | -| `requirementKind` | String | -| `resourceId` | UUID | -| `secretsObjectName` | String | +| `nameTrgmSimilarity` | Float | +| `ownerId` | UUID | +| `provider` | String | +| `providerTrgmSimilarity` | Float | +| `requiredChecks` | String | +| `search` | FullText | +| `searchScore` | Float | +| `searchTsvRank` | Float | | `slug` | String | +| `slugTrgmSimilarity` | Float | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | +| `visibility` | String | +| `visibilityTrgmSimilarity` | Float | -**Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +**Required create fields:** `databaseId`, `name`, `slug` +**Optional create fields (backend defaults):** `cloneUrl`, `createdBy`, `createdByPrincipal`, `defaultBranch`, `description`, `embedding`, `externalId`, `isArchived`, `metadata`, `ownerId`, `provider`, `requiredChecks`, `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. -### `platform-webhook-endpoint` +> **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. -CRUD operations for PlatformWebhookEndpoint records. +**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 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 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 | |-------|------| -| `active` | Boolean | +| `actorId` | UUID | +| `commitSha` | String | | `createdAt` | Datetime | -| `createdBy` | UUID | -| `functionDefinitionId` | UUID | -| `host` | String | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `deliveryId` | String | +| `eventType` | String | | `id` | UUID | -| `namespaceId` | UUID | -| `path` | String | -| `provider` | String | -| `replayWindowSeconds` | Int | -| `signingSecretName` | String | +| `metadata` | JSON | +| `payload` | JSON | +| `ref` | String | +| `repositoryId` | UUID | | `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:** `databaseId`, `eventType`, `repositoryId` +**Optional create fields (backend defaults):** `actorId`, `commitSha`, `createdByPrincipal`, `deliveryId`, `metadata`, `payload`, `ref`, `updatedByPrincipal` -### `platform-webhook-event` +### `repository-workflow` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for RepositoryWorkflow 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 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 | -| `endpointId` | UUID | -| `error` | String | -| `externalEventId` | String | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `eventType` | String | +| `graphId` | UUID | | `id` | UUID | -| `invocationCreatedAt` | Datetime | -| `invocationId` | UUID | -| `payload` | JSON | -| `provider` | String | -| `providerTimestamp` | Datetime | -| `status` | String | +| `inputs` | JSON | +| `isEnabled` | Boolean | +| `name` | String | +| `refPattern` | String | +| `repositoryId` | UUID | +| `requiredSecrets` | String | +| `slug` | String | | `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | -**Required create fields:** `endpointId`, `externalEventId`, `provider` -**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` +**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` @@ -1999,10 +4344,12 @@ CRUD operations for Resource records. | Field | Type | |-------|------| | `annotations` | JSON | +| `catalogImageId` | UUID | | `cpuLimitMillicores` | BigInt | | `cpuRequestMillicores` | BigInt | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `errorCount` | Int | | `id` | UUID | @@ -2029,9 +4376,10 @@ CRUD operations for Resource records. | `storageSizeBytes` | BigInt | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | 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` +**Optional create fields (backend defaults):** `annotations`, `catalogImageId`, `createdBy`, `createdByPrincipal`, `errorCount`, `installationId`, `integrations`, `labels`, `lastError`, `lastHeartbeatAt`, `realm`, `requiredConfigs`, `requiredSecrets`, `resourceDefinitionId`, `spec`, `status`, `statusObserved`, `updatedBy`, `updatedByPrincipal` ### `resource-declared-capacity` @@ -2084,8 +4432,10 @@ CRUD operations for ResourceDefinition records. | Field | Type | |-------|------| | `annotations` | JSON | +| `catalogImageId` | UUID | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `defaultSpec` | JSON | | `description` | String | @@ -2102,9 +4452,10 @@ CRUD operations for ResourceDefinition records. | `stepUpMinAge` | Interval | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | 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` +**Optional create fields (backend defaults):** `annotations`, `catalogImageId`, `createdBy`, `createdByPrincipal`, `defaultSpec`, `description`, `integrations`, `labels`, `paramsSchema`, `requiredConfigs`, `requiredSecrets`, `stepUpMinAge`, `updatedBy`, `updatedByPrincipal` ### `resource-event` @@ -2155,6 +4506,7 @@ CRUD operations for ResourceInstallation records. | `commitId` | UUID | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `id` | UUID | | `name` | String | @@ -2166,9 +4518,10 @@ CRUD operations for ResourceInstallation records. | `storeId` | UUID | | `updatedAt` | Datetime | | `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | **Required create fields:** `databaseId`, `name`, `namespaceId`, `slug` -**Optional create fields (backend defaults):** `commitId`, `createdBy`, `params`, `revision`, `status`, `storeId`, `updatedBy` +**Optional create fields (backend defaults):** `commitId`, `createdBy`, `createdByPrincipal`, `params`, `revision`, `status`, `storeId`, `updatedBy`, `updatedByPrincipal` ### `resource-status-check` @@ -2318,10 +4671,12 @@ CRUD operations for ResourcesHealth records. | Field | Type | |-------|------| | `annotations` | JSON | +| `catalogImageId` | UUID | | `cpuLimitMillicores` | BigInt | | `cpuRequestMillicores` | BigInt | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `errorCount` | Int | | `id` | UUID | @@ -2349,8 +4704,9 @@ CRUD operations for ResourcesHealth records. | `storageSizeBytes` | BigInt | | `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:** `annotations`, `catalogImageId`, `cpuLimitMillicores`, `cpuRequestMillicores`, `createdBy`, `createdByPrincipal`, `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`, `updatedByPrincipal` ### `resources-requirements-state` @@ -2430,6 +4786,7 @@ CRUD operations for WebhookEndpoint records. | `active` | Boolean | | `createdAt` | Datetime | | `createdBy` | UUID | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `functionDefinitionId` | UUID | | `host` | String | @@ -2441,60 +4798,342 @@ CRUD operations for WebhookEndpoint records. | `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 | + +### `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-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 -**Required create fields:** `databaseId`, `functionDefinitionId`, `host`, `namespaceId`, `path`, `signingSecretName` -**Optional create fields (backend defaults):** `active`, `createdBy`, `provider`, `replayWindowSeconds`, `updatedBy` +- **Type:** mutation +- **Arguments:** -### `webhook-event` + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.path` | String | + | `--input.root` | UUID | + | `--input.sId` | UUID | -CRUD operations for WebhookEvent records. +### `database-graph-insert-nodes-at-paths` -| 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 | +databaseGraphInsertNodesAtPaths -**Fields:** +- **Type:** mutation +- **Arguments:** -| 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 | + | 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`, `endpointId`, `externalEventId`, `provider` -**Optional create fields (backend defaults):** `error`, `invocationCreatedAt`, `invocationId`, `payload`, `providerTimestamp`, `status` +### `database-graph-set-and-commit` -## Custom Operations +databaseGraphSetAndCommit -### `read-function-graph` +- **Type:** mutation +- **Arguments:** -readFunctionGraph + | 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 | -- **Type:** query +### `database-graph-set-data-at-path` + +databaseGraphSetDataAtPath + +- **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `--graphId` | UUID | + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.path` | String | + | `--input.root` | UUID | + | `--input.sId` | UUID | -### `add-edge` +### `database-graph-set-many-and-commit` -addEdge +databaseGraphSetManyAndCommit - **Type:** mutation - **Arguments:** @@ -2502,18 +5141,15 @@ addEdge | 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 | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | -### `add-edge-and-save` +### `database-import-definitions` -addEdgeAndSave +databaseImportDefinitions - **Type:** mutation - **Arguments:** @@ -2521,16 +5157,14 @@ addEdgeAndSave | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dstNode` | String | - | `--input.dstPort` | String | + | `--input.contexts` | String | | `--input.graphId` | UUID | - | `--input.message` | String | - | `--input.srcNode` | String | - | `--input.srcPort` | String | + | `--input.sourceCommitId` | UUID | + | `--input.sourceScopeId` | UUID | -### `add-node` +### `database-import-graph-json` -addNode +databaseImportGraphJson - **Type:** mutation - **Arguments:** @@ -2539,17 +5173,16 @@ addNode |----------|------| | `--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.createdBy` | UUID | + | `--input.databaseId` | UUID | + | `--input.definitionsCommitId` | UUID | + | `--input.description` | String | + | `--input.graphJson` | JSON | + | `--input.name` | String | -### `add-node-and-save` +### `database-save-graph` -addNodeAndSave +databaseSaveGraph - **Type:** mutation - **Arguments:** @@ -2559,14 +5192,32 @@ addNodeAndSave | `--input.clientMutationId` | String | | `--input.graphId` | UUID | | `--input.message` | String | - | `--input.meta` | JSON | - | `--input.nodeName` | String | - | `--input.nodeType` | String | - | `--input.props` | JSON | + | `--input.rootHash` | UUID | -### `copy-graph` +### `database-start-execution` -copyGraph +databaseStartExecution + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--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 | + +### `database-validate-function-graph` + +databaseValidateFunctionGraph - **Type:** mutation - **Arguments:** @@ -2575,8 +5226,6 @@ copyGraph |----------|------| | `--input.clientMutationId` | String | | `--input.graphId` | UUID | - | `--input.name` | String | - | `--input.scopeId` | UUID | ### `import-definitions` @@ -2641,6 +5290,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 +5341,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 +5387,23 @@ insertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `insert-nodes-at-paths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + ### `platform-infra-init-empty-repo` platformInfraInitEmptyRepo @@ -2716,6 +5434,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 +5485,22 @@ platformInfraSetDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-set-many-and-commit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `platform-resource-installations-install` platformResourceInstallationsInstall @@ -2868,6 +5638,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 +5672,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..a75ba6e6f8 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -6,6 +6,18 @@ 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 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 +36,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 +46,8 @@ 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 platformFunctionApiBindingCmd from './commands/platform-function-api-binding'; import platformFunctionCapabilityBindingCmd from './commands/platform-function-capability-binding'; import platformFunctionDefinitionCmd from './commands/platform-function-definition'; @@ -40,13 +56,29 @@ 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 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'; @@ -61,6 +93,18 @@ 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 repositoryWorkflowCmd from './commands/repository-workflow'; import resourceCmd from './commands/resource'; import resourceDeclaredCapacityCmd from './commands/resource-declared-capacity'; import resourceDefinitionCmd from './commands/resource-definition'; @@ -75,22 +119,47 @@ 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 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 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 importDefinitionsCmd from './commands/import-definitions'; import importGraphJsonCmd from './commands/import-graph-json'; import infraInitEmptyRepoCmd from './commands/infra-init-empty-repo'; import infraInsertNodeAtPathCmd from './commands/infra-insert-node-at-path'; +import infraInsertNodesAtPathsCmd from './commands/infra-insert-nodes-at-paths'; +import infraSetAndCommitCmd from './commands/infra-set-and-commit'; import infraSetDataAtPathCmd from './commands/infra-set-data-at-path'; +import infraSetManyAndCommitCmd from './commands/infra-set-many-and-commit'; import initEmptyRepoCmd from './commands/init-empty-repo'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; +import insertNodesAtPathsCmd from './commands/insert-nodes-at-paths'; import platformInfraInitEmptyRepoCmd from './commands/platform-infra-init-empty-repo'; import platformInfraInsertNodeAtPathCmd from './commands/platform-infra-insert-node-at-path'; +import platformInfraInsertNodesAtPathsCmd from './commands/platform-infra-insert-nodes-at-paths'; +import platformInfraSetAndCommitCmd from './commands/platform-infra-set-and-commit'; import platformInfraSetDataAtPathCmd from './commands/platform-infra-set-data-at-path'; +import platformInfraSetManyAndCommitCmd from './commands/platform-infra-set-many-and-commit'; import platformResourceInstallationsInstallCmd from './commands/platform-resource-installations-install'; import platformResourceInstallationsRollbackCmd from './commands/platform-resource-installations-rollback'; import platformResourceInstallationsUninstallCmd from './commands/platform-resource-installations-uninstall'; @@ -101,7 +170,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 +185,18 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + build: buildCmd, + 'build-step': buildStepCmd, + '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 +215,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 +225,8 @@ const createCommandMap: () => Record< 'integration-provider': integrationProviderCmd, namespace: namespaceCmd, 'namespace-event': namespaceEventCmd, + 'platform-build': platformBuildCmd, + 'platform-build-step': platformBuildStepCmd, 'platform-function-api-binding': platformFunctionApiBindingCmd, 'platform-function-capability-binding': platformFunctionCapabilityBindingCmd, 'platform-function-definition': platformFunctionDefinitionCmd, @@ -148,13 +235,29 @@ 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-workflow': platformRepositoryWorkflowCmd, 'platform-resource': platformResourceCmd, 'platform-resource-declared-capacity': platformResourceDeclaredCapacityCmd, 'platform-resource-definition': platformResourceDefinitionCmd, @@ -169,6 +272,18 @@ 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-workflow': repositoryWorkflowCmd, resource: resourceCmd, 'resource-declared-capacity': resourceDeclaredCapacityCmd, 'resource-definition': resourceDefinitionCmd, @@ -183,22 +298,47 @@ 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, 'copy-graph': copyGraphCmd, + 'database-add-edge': databaseAddEdgeCmd, + 'database-add-edge-and-save': databaseAddEdgeAndSaveCmd, + 'database-add-node': databaseAddNodeCmd, + 'database-add-node-and-save': databaseAddNodeAndSaveCmd, + '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, '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-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 +349,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 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-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-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-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-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-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 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-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 import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/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..7e9579c7e8 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/build.ts @@ -0,0 +1,610 @@ +/** + * 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', + catalogImageId: 'uuid', + commitSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + databaseId: 'uuid', + eventId: 'uuid', + finishedAt: 'string', + id: 'uuid', + jobId: 'int', + logs: '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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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: 'catalogImageId', + message: 'catalogImageId', + 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: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + 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: '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, + catalogImageId: cleanedData.catalogImageId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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: 'catalogImageId', + message: 'catalogImageId', + 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: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + 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: '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, + catalogImageId: cleanedData.catalogImageId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + databaseId: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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/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-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..61fbe57d2a --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph-execution-node-state.ts @@ -0,0 +1,546 @@ +/** + * 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', + id: 'uuid', + nodeName: 'string', + nodePath: 'string', + outputId: 'uuid', + startedAt: 'string', + status: '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, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: 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, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: 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, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: '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: '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, + }, + ]); + 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, + nodeName: cleanedData.nodeName, + nodePath: cleanedData.nodePath, + outputId: cleanedData.outputId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + }, + select: { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: '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: '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, + }, + ]); + 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, + nodeName: cleanedData.nodeName, + nodePath: cleanedData.nodePath, + outputId: cleanedData.outputId, + startedAt: cleanedData.startedAt, + status: cleanedData.status, + }, + select: { + callbackInputs: true, + callbackMeta: true, + callbackTokenHash: true, + completedAt: true, + createdAt: true, + databaseId: true, + errorCode: true, + errorMessage: true, + executionId: true, + id: true, + nodeName: true, + nodePath: true, + outputId: true, + startedAt: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + 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..41ec65d349 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', + catalogImageId: 'uuid', category: 'string', concurrency: 'int', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', description: 'string', fnCategory: 'string', @@ -48,6 +50,7 @@ const fieldSchema: FieldSchema = { requiredBuckets: 'string', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -58,6 +61,7 @@ const fieldSchema: FieldSchema = { taskIdentifier: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', volatile: 'boolean', }; const usage = @@ -112,9 +116,11 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { accessChannels: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -139,6 +145,7 @@ async function handleList(argv: Partial>, _prompter: Inq requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -148,6 +155,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findManyArgs = parseFindManyArgs< @@ -174,9 +182,11 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { accessChannels: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -201,6 +211,7 @@ async function handleFindFirst(argv: Partial>, _prompter requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -210,6 +221,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findFirstArgs = parseFindFirstArgs< @@ -248,9 +260,11 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { accessChannels: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -275,6 +289,7 @@ async function handleGet(argv: Partial>, prompter: Inqui requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -284,6 +299,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -307,6 +323,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -320,6 +343,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', @@ -479,6 +509,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 +572,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 +597,10 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { accessChannels: cleanedData.accessChannels, + catalogImageId: cleanedData.catalogImageId, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, fnCategory: cleanedData.fnCategory, @@ -578,6 +624,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -586,13 +633,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, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -617,6 +667,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -626,6 +677,7 @@ async function handleCreate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -655,6 +707,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -668,6 +727,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', @@ -827,6 +893,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 +956,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 +981,10 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { accessChannels: cleanedData.accessChannels, + catalogImageId: cleanedData.catalogImageId, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, description: cleanedData.description, fnCategory: cleanedData.fnCategory, @@ -926,6 +1008,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -934,13 +1017,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, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, @@ -965,6 +1051,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -974,6 +1061,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..cae2c6459d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', concurrency: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', handlerName: 'string', @@ -29,6 +31,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -38,6 +41,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'; @@ -91,8 +95,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -103,6 +109,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -112,6 +119,7 @@ async function handleList(argv: Partial>, _prompter: Inq status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -137,8 +145,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -149,6 +159,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -158,6 +169,7 @@ async function handleFindFirst(argv: Partial>, _prompter status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -195,8 +207,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -207,6 +221,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -216,6 +231,7 @@ async function handleGet(argv: Partial>, prompter: Inqui status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -238,6 +254,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'concurrency', @@ -245,6 +268,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 +335,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 +398,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( @@ -372,7 +416,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, @@ -382,6 +428,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 +437,14 @@ async function handleCreate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -405,6 +455,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -414,6 +465,7 @@ async function handleCreate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -442,6 +494,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'concurrency', @@ -449,6 +508,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 +575,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 +638,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; @@ -576,7 +656,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, @@ -586,6 +668,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 +677,14 @@ async function handleUpdate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, databaseId: true, errorCount: true, handlerName: true, @@ -609,6 +695,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -618,6 +705,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-invocation.ts b/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts index 28fb06f960..b753e9ae9a 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-invocation.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { channel: 'string', completedAt: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', definitionScope: 'string', durationMs: 'int', @@ -93,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -137,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -193,6 +196,7 @@ async function handleGet(argv: Partial>, prompter: Inqui channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -251,6 +255,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', @@ -361,6 +372,7 @@ 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, @@ -382,6 +394,7 @@ async function handleCreate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -452,6 +465,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 +583,7 @@ 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, @@ -584,6 +605,7 @@ async function handleUpdate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, 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/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..033ba60e03 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts @@ -0,0 +1,593 @@ +/** + * 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', + catalogImageId: 'uuid', + commitSha: 'string', + createdAt: 'string', + createdByPrincipal: 'uuid', + eventId: 'uuid', + finishedAt: 'string', + id: 'uuid', + jobId: 'int', + logs: '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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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: 'catalogImageId', + message: 'catalogImageId', + 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: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + 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: '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, + catalogImageId: cleanedData.catalogImageId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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: 'catalogImageId', + message: 'catalogImageId', + 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: 'eventId', + message: 'eventId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'finishedAt', + message: 'finishedAt', + 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: '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, + catalogImageId: cleanedData.catalogImageId, + commitSha: cleanedData.commitSha, + createdByPrincipal: cleanedData.createdByPrincipal, + eventId: cleanedData.eventId, + finishedAt: cleanedData.finishedAt, + jobId: cleanedData.jobId, + logs: cleanedData.logs, + 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, + catalogImageId: true, + commitSha: true, + createdAt: true, + createdByPrincipal: true, + eventId: true, + finishedAt: true, + id: true, + jobId: true, + logs: 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-function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts index 66df7440ef..07c93ed546 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 @@ -18,11 +18,13 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { accessChannels: 'string', billable: 'boolean', + catalogImageId: 'uuid', category: 'string', concurrency: 'int', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', description: 'string', fnCategory: 'string', functionColumns: 'json', @@ -48,6 +50,7 @@ const fieldSchema: FieldSchema = { requiredBuckets: 'string', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -59,6 +62,7 @@ const fieldSchema: FieldSchema = { taskIdentifier: 'string', timeoutSeconds: 'int', updatedAt: 'string', + updatedByPrincipal: 'uuid', volatile: 'boolean', }; const usage = @@ -114,9 +118,11 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { accessChannels: true, billable: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -140,6 +146,7 @@ async function handleList(argv: Partial>, _prompter: Inq requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -150,6 +157,7 @@ async function handleList(argv: Partial>, _prompter: Inq targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findManyArgs = parseFindManyArgs< @@ -177,9 +185,11 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { accessChannels: true, billable: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -203,6 +213,7 @@ async function handleFindFirst(argv: Partial>, _prompter requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -213,6 +224,7 @@ async function handleFindFirst(argv: Partial>, _prompter targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }; const findFirstArgs = parseFindFirstArgs< @@ -252,9 +264,11 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { accessChannels: true, billable: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -278,6 +292,7 @@ async function handleGet(argv: Partial>, prompter: Inqui requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -288,6 +303,7 @@ async function handleGet(argv: Partial>, prompter: Inqui targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -318,6 +334,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -331,6 +354,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', @@ -484,6 +514,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 +584,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', @@ -566,8 +610,10 @@ async function handleCreate(argv: Partial>, prompter: In data: { accessChannels: cleanedData.accessChannels, billable: cleanedData.billable, + catalogImageId: cleanedData.catalogImageId, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, fnCategory: cleanedData.fnCategory, functionColumns: cleanedData.functionColumns, @@ -590,6 +636,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -599,14 +646,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, billable: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -630,6 +680,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -640,6 +691,7 @@ async function handleCreate(argv: Partial>, prompter: In targetSchema: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, volatile: true, }, }) @@ -676,6 +728,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'category', @@ -689,6 +748,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', @@ -842,6 +908,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 +978,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', @@ -924,8 +1004,10 @@ async function handleUpdate(argv: Partial>, prompter: In data: { accessChannels: cleanedData.accessChannels, billable: cleanedData.billable, + catalogImageId: cleanedData.catalogImageId, category: cleanedData.category, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, description: cleanedData.description, fnCategory: cleanedData.fnCategory, functionColumns: cleanedData.functionColumns, @@ -948,6 +1030,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -957,14 +1040,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, billable: true, + catalogImageId: true, category: true, concurrency: true, createdAt: true, + createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, @@ -988,6 +1074,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -998,6 +1085,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..926c5572b1 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 @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', concurrency: 'int', createdAt: 'string', + createdByPrincipal: 'uuid', errorCount: 'int', handlerName: 'string', id: 'uuid', @@ -28,6 +30,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -37,6 +40,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'; @@ -90,8 +94,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -101,6 +107,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -110,6 +117,7 @@ async function handleList(argv: Partial>, _prompter: Inq status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -135,8 +143,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -146,6 +156,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -155,6 +166,7 @@ async function handleFindFirst(argv: Partial>, _prompter status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -192,8 +204,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -203,6 +217,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -212,6 +227,7 @@ async function handleGet(argv: Partial>, prompter: Inqui status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -234,6 +250,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'concurrency', @@ -241,6 +264,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 +325,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 +388,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( @@ -362,7 +406,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, image: cleanedData.image, @@ -371,6 +417,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 +426,14 @@ async function handleCreate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -393,6 +443,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -402,6 +453,7 @@ async function handleCreate(argv: Partial>, prompter: In status: true, timeoutSeconds: true, updatedAt: true, + updatedByPrincipal: true, }, }) .execute(); @@ -430,6 +482,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'concurrency', @@ -437,6 +496,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 +557,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 +620,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; @@ -558,7 +638,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, concurrency: cleanedData.concurrency, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, handlerName: cleanedData.handlerName, image: cleanedData.image, @@ -567,6 +649,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 +658,14 @@ async function handleUpdate(argv: Partial>, prompter: In serviceUrl: cleanedData.serviceUrl, status: cleanedData.status, timeoutSeconds: cleanedData.timeoutSeconds, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, concurrency: true, createdAt: true, + createdByPrincipal: true, errorCount: true, handlerName: true, id: true, @@ -589,6 +675,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -598,6 +685,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..c7be921b14 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,6 +21,7 @@ const fieldSchema: FieldSchema = { channel: 'string', completedAt: 'string', createdAt: 'string', + createdByPrincipal: 'uuid', databaseId: 'uuid', definitionScope: 'string', durationMs: 'int', @@ -93,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -137,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -193,6 +196,7 @@ async function handleGet(argv: Partial>, prompter: Inqui channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -251,6 +255,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', @@ -362,6 +373,7 @@ 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, @@ -383,6 +395,7 @@ async function handleCreate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, @@ -453,6 +466,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', @@ -565,6 +585,7 @@ 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, @@ -586,6 +607,7 @@ async function handleUpdate(argv: Partial>, prompter: In channel: true, completedAt: true, createdAt: true, + createdByPrincipal: true, databaseId: true, definitionScope: true, durationMs: true, 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-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-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..b2374b9fc3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts @@ -0,0 +1,766 @@ +/** + * 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', + requiredChecks: 'string', + 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, + requiredChecks: 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, + requiredChecks: 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, + requiredChecks: 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, + requiredChecks: 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: 'requiredChecks', + message: 'requiredChecks', + 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, + requiredChecks: cleanedData.requiredChecks, + 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, + requiredChecks: 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: 'requiredChecks', + message: 'requiredChecks', + 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, + requiredChecks: cleanedData.requiredChecks, + 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, + requiredChecks: 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-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts index 03fa2c7e65..7ec34c1c50 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 @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', defaultSpec: 'json', description: 'string', id: 'uuid', @@ -34,6 +36,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'; @@ -87,8 +90,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -104,6 +109,7 @@ async function handleList(argv: Partial>, _prompter: Inq stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -129,8 +135,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -146,6 +154,7 @@ async function handleFindFirst(argv: Partial>, _prompter stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -183,8 +192,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -200,6 +211,7 @@ async function handleGet(argv: Partial>, prompter: Inqui stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -222,6 +234,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -229,6 +248,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 +342,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( @@ -327,7 +360,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, integrations: cleanedData.integrations, @@ -341,11 +376,14 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -361,6 +399,7 @@ async function handleCreate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -389,6 +428,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -396,6 +442,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 +536,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; @@ -494,7 +554,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, integrations: cleanedData.integrations, @@ -508,11 +570,14 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, defaultSpec: true, description: true, id: true, @@ -528,6 +593,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.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts index 1b845a0ef3..15d42b5140 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts @@ -17,10 +17,12 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', errorCount: 'int', id: 'uuid', installationId: 'uuid', @@ -46,6 +48,7 @@ const fieldSchema: FieldSchema = { storageSizeBytes: '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'; @@ -99,8 +102,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -121,6 +126,7 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -142,8 +148,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -164,6 +172,7 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -197,8 +206,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -219,6 +230,7 @@ async function handleGet(argv: Partial>, prompter: Inqui statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -241,6 +253,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -248,6 +267,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', @@ -370,6 +396,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( @@ -381,7 +414,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, integrations: cleanedData.integrations, @@ -400,11 +435,14 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -425,6 +463,7 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -453,6 +492,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -460,6 +506,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', @@ -582,6 +635,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; @@ -593,7 +653,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, integrations: cleanedData.integrations, @@ -612,11 +674,14 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -637,6 +702,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..cd3856a9ae 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 @@ -17,10 +17,12 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', errorCount: 'int', id: 'uuid', installationId: 'uuid', @@ -47,6 +49,7 @@ const fieldSchema: FieldSchema = { storageSizeBytes: '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'; @@ -94,10 +97,12 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -124,6 +129,7 @@ async function handleList(argv: Partial>, _prompter: Inq storageSizeBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -149,10 +155,12 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -179,6 +187,7 @@ async function handleFindFirst(argv: Partial>, _prompter storageSizeBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -209,6 +218,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'annotations', required: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: true, + }, { type: 'text', name: 'cpuLimitMillicores', @@ -227,6 +242,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'createdBy', required: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: true, + }, { type: 'text', name: 'errorCount', @@ -371,6 +392,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'updatedBy', required: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -382,9 +409,11 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, cpuLimitMillicores: cleanedData.cpuLimitMillicores, cpuRequestMillicores: cleanedData.cpuRequestMillicores, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, integrations: cleanedData.integrations, @@ -409,13 +438,16 @@ async function handleCreate(argv: Partial>, prompter: In storageClass: cleanedData.storageClass, storageSizeBytes: cleanedData.storageSizeBytes, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, errorCount: true, id: true, installationId: true, @@ -442,6 +474,7 @@ async function handleCreate(argv: Partial>, prompter: In storageSizeBytes: 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/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-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..ad9c304bb6 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/repository.ts @@ -0,0 +1,772 @@ +/** + * 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', + requiredChecks: 'string', + 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, + requiredChecks: 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, + requiredChecks: 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, + requiredChecks: 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, + requiredChecks: 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: 'requiredChecks', + message: 'requiredChecks', + 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, + requiredChecks: cleanedData.requiredChecks, + 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, + requiredChecks: 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: 'requiredChecks', + message: 'requiredChecks', + 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, + requiredChecks: cleanedData.requiredChecks, + 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, + requiredChecks: 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-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts index e045a99374..ae2a7b13dc 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts @@ -17,8 +17,10 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', defaultSpec: 'json', description: 'string', @@ -35,6 +37,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'; @@ -88,8 +91,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -106,6 +111,7 @@ async function handleList(argv: Partial>, _prompter: Inq stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -131,8 +137,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -149,6 +157,7 @@ async function handleFindFirst(argv: Partial>, _prompter stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -186,8 +195,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -204,6 +215,7 @@ async function handleGet(argv: Partial>, prompter: Inqui stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -226,6 +238,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -233,6 +252,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 +352,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( @@ -337,7 +370,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, @@ -352,11 +387,14 @@ async function handleCreate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -373,6 +411,7 @@ async function handleCreate(argv: Partial>, prompter: In stepUpMinAge: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -401,6 +440,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -408,6 +454,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 +554,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; @@ -512,7 +572,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, defaultSpec: cleanedData.defaultSpec, description: cleanedData.description, @@ -527,11 +589,14 @@ async function handleUpdate(argv: Partial>, prompter: In slug: cleanedData.slug, stepUpMinAge: cleanedData.stepUpMinAge, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, @@ -548,6 +613,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.ts b/sdk/constructive-cli/src/compute/cli/commands/resource.ts index b890b4c7a0..4d99b2890c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource.ts @@ -17,10 +17,12 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', id: 'uuid', @@ -47,6 +49,7 @@ const fieldSchema: FieldSchema = { storageSizeBytes: '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'; @@ -100,8 +103,10 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -123,6 +128,7 @@ async function handleList(argv: Partial>, _prompter: Inq statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -144,8 +150,10 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -167,6 +175,7 @@ async function handleFindFirst(argv: Partial>, _prompter statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -200,8 +209,10 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -223,6 +234,7 @@ async function handleGet(argv: Partial>, prompter: Inqui statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -245,6 +257,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -252,6 +271,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', @@ -380,6 +406,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']; @@ -388,7 +421,9 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, @@ -408,11 +443,14 @@ async function handleCreate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -434,6 +472,7 @@ async function handleCreate(argv: Partial>, prompter: In statusObserved: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }, }) .execute(); @@ -462,6 +501,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -469,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', @@ -597,6 +650,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; @@ -608,7 +668,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, @@ -628,11 +690,14 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, statusObserved: cleanedData.statusObserved, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -654,6 +719,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..69b27e81e3 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts @@ -17,10 +17,12 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', + catalogImageId: 'uuid', cpuLimitMillicores: 'int', cpuRequestMillicores: 'int', createdAt: 'string', createdBy: 'uuid', + createdByPrincipal: 'uuid', databaseId: 'uuid', errorCount: 'int', id: 'uuid', @@ -48,6 +50,7 @@ const fieldSchema: FieldSchema = { storageSizeBytes: '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'; @@ -95,10 +98,12 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -126,6 +131,7 @@ async function handleList(argv: Partial>, _prompter: Inq storageSizeBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -147,10 +153,12 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -178,6 +186,7 @@ async function handleFindFirst(argv: Partial>, _prompter storageSizeBytes: true, updatedAt: true, updatedBy: true, + updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -204,6 +213,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'annotations', required: true, }, + { + type: 'text', + name: 'catalogImageId', + message: 'catalogImageId', + required: true, + }, { type: 'text', name: 'cpuLimitMillicores', @@ -222,6 +237,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'createdBy', required: true, }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: true, + }, { type: 'text', name: 'databaseId', @@ -372,6 +393,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'updatedBy', required: true, }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -383,9 +410,11 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { annotations: cleanedData.annotations, + catalogImageId: cleanedData.catalogImageId, cpuLimitMillicores: cleanedData.cpuLimitMillicores, cpuRequestMillicores: cleanedData.cpuRequestMillicores, createdBy: cleanedData.createdBy, + createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, errorCount: cleanedData.errorCount, installationId: cleanedData.installationId, @@ -411,13 +440,16 @@ async function handleCreate(argv: Partial>, prompter: In storageClass: cleanedData.storageClass, storageSizeBytes: cleanedData.storageSizeBytes, updatedBy: cleanedData.updatedBy, + updatedByPrincipal: cleanedData.updatedByPrincipal, }, select: { annotations: true, + catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, + createdByPrincipal: true, databaseId: true, errorCount: true, id: true, @@ -445,6 +477,7 @@ async function handleCreate(argv: Partial>, prompter: In storageSizeBytes: 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..4778a8f88e 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -21,6 +21,18 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | 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 +51,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 +61,8 @@ 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 | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -55,13 +71,29 @@ 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 | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | @@ -76,6 +108,18 @@ 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 | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | @@ -93,315 +137,316 @@ 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 | +| `catalogImageId` | UUID | Yes | +| `commitSha` | 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 | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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.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 | -| `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, 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, 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: '', 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 | -| `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, 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, 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: '', 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 | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }, 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:** @@ -409,2588 +454,4889 @@ 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 | +| `catalogImageId` | UUID | 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 | +| `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, catalogImageId: 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, 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, catalogImageId: 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, 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: '', catalogImageId: '', 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: '', 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 | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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 | | `id` | UUID | No | -| `name` | String | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | 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(); +// 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(); // 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, id: true, nodeName: true, nodePath: true, outputId: true, scopeId: true, startedAt: true, status: 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: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, 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 | +| `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 | -| `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 | +| `parentInvocationId` | UUID | Yes | +| `payload` | JSON | 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, 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, 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(); // 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.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: 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(); // 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.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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 | -| `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, 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, 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: '', 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 PlatformFunctionInvocationAttempt records. +CRUD operations for InfraCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | -| `createdAt` | Datetime | No | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | Yes | +| `message` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | 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 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.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.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.platformFunctionInvocationAttempt.create({ data: { actorId: '', attempt: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', 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.platformFunctionInvocationAttempt.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.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.infraGetAllTreeNodesRecord` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for InfraGetAllTreeNodesRecord 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 | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `data` | JSON | Yes | +| `path` | 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 infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.infraObject` -CRUD operations for PlatformInfraCommit records. +CRUD operations for InfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `treeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | 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 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.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.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.infraRef` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for InfraRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `storeId` | UUID | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.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.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.infraStore` -CRUD operations for PlatformInfraObject records. +CRUD operations for InfraStore 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 platformInfraObject records -const items = await db.platformInfraObject.findMany({ select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: 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.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: 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.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.integrationProvider` -CRUD operations for PlatformInfraRef records. +CRUD operations for IntegrationProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `brand` | JSON | Yes | +| `category` | String | Yes | +| `createdAt` | Datetime | No | +| `description` | String | Yes | +| `icon` | String | Yes | | `id` | UUID | No | +| `logo` | ConstructiveInternalTypeImage | Yes | | `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | **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 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.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, 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.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.namespace` -CRUD operations for PlatformInfraStore records. +CRUD operations for Namespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | | `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `namespaceName` | String | Yes | +| `status` | 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 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(); // 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.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(); // Create -const created = await db.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.namespaceEvent` -CRUD operations for PlatformNamespace records. +CRUD operations for NamespaceEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | 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 | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | 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 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.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.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.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, 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.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.platformBuild` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for PlatformBuild records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `catalogImageId` | UUID | Yes | +| `commitSha` | String | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `message` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | Yes | | `metadata` | JSON | Yes | -| `namespaceId` | UUID | 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 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 platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: true } }).execute(); +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResource` +### `db.platformBuildStep` -CRUD operations for PlatformResource records. +CRUD operations for PlatformBuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | 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 | +| `logBytes` | BigInt | Yes | +| `logOffset` | 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 | +| `parentSeq` | Int | Yes | +| `recordedAt` | Datetime | Yes | +| `seq` | Int | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `summary` | JSON | 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 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.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.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.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.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.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` +### `db.platformFunctionApiBinding` -CRUD operations for PlatformResourceDeclaredCapacity records. +CRUD operations for PlatformFunctionApiBinding 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 | +| `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 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 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.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.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: true, updatedAt: 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.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDefinition` +### `db.platformFunctionCapabilityBinding` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for PlatformFunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `bucketId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `functionId` | UUID | Yes | +| `graphId` | 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 | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | 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 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.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.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.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.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceEvent` +### `db.platformFunctionDefinition` -CRUD operations for PlatformResourceEvent records. +CRUD operations for PlatformFunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `accessChannels` | String | Yes | +| `billable` | Boolean | Yes | +| `catalogImageId` | UUID | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `fnCategory` | String | Yes | +| `functionColumns` | JSON | Yes | +| `graphId` | UUID | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | 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 | +| `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 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 platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, catalogImageId: 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, 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.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, catalogImageId: 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, 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.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', catalogImageId: '', 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: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +### `db.platformFunctionDeployment` -CRUD operations for PlatformResourceInstallation records. +CRUD operations for PlatformFunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | Yes | +| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | +| `realm` | String | Yes | +| `resources` | JSON | Yes | | `revision` | Int | Yes | -| `slug` | String | Yes | +| `scaleMax` | Int | Yes | +| `scaleMin` | Int | Yes | +| `serviceName` | String | Yes | +| `serviceUrl` | String | Yes | | `status` | String | Yes | -| `storeId` | UUID | Yes | +| `timeoutSeconds` | Int | 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 platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, catalogImageId: 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.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.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, catalogImageId: 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.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', catalogImageId: '', 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.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.platformFunctionDeploymentEvent` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for PlatformFunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | 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 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.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: 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.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, 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.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +### `db.platformFunctionExecutionLog` -CRUD operations for PlatformResourceUsageLog records. +CRUD operations for PlatformFunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | Yes | +| `invocationId` | UUID | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `taskIdentifier` | 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(); +// 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.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.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.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, 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.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +### `db.platformFunctionInvocationAttempt` -CRUD operations for PlatformResourceUsageSummary records. +CRUD operations for PlatformFunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | +| `createdAt` | Datetime | No | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | 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 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.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.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.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, 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.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +### `db.platformFunctionInvocation` -CRUD operations for PlatformResourceUtilization records. +CRUD operations for PlatformFunctionInvocation 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 | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | 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 | +| `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 | **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 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, 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(); // 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.platformFunctionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: 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(); // 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.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.platformImage` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for PlatformImage records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `installationId` | UUID | Yes | -| `integrations` | String | Yes | -| `kind` | String | Yes | +| `isPublished` | Boolean | Yes | | `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `metadata` | JSON | 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 | +| `ownerId` | UUID | Yes | +| `platformOnly` | Boolean | Yes | +| `registryHost` | String | Yes | +| `repository` | String | Yes | +| `runtime` | String | Yes | +| `tag` | String | 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 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.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.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.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.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.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformImage.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformImage.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.platformImageGrant` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for PlatformImageGrant 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 | +| `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 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 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.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: 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.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, 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.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.platformImageGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformImageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +### `db.platformInfraCommit` -CRUD operations for PlatformResourcesResolvedRequirement records. +CRUD operations for PlatformInfraCommit 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 | +| `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 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 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.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.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.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, 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.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +### `db.platformInfraGetAllTreeNodesRecord` -CRUD operations for PlatformWebhookEndpoint records. +CRUD operations for PlatformInfraGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `active` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | -| `id` | UUID | No | -| `namespaceId` | UUID | Yes | +| `data` | JSON | Yes | | `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | 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 platformInfraGetAllTreeNodesRecord records +const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEvent` +### `db.platformInfraObject` -CRUD operations for PlatformWebhookEvent records. +CRUD operations for PlatformInfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `endpointId` | UUID | Yes | -| `error` | String | Yes | -| `externalEventId` | String | Yes | +| `data` | JSON | 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 | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `scopeId` | 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 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.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.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: 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.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.resource` +### `db.platformInfraRef` -CRUD operations for Resource records. +CRUD operations for PlatformInfraRef 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 | +| `commitId` | UUID | 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 | +| `scopeId` | UUID | Yes | +| `storeId` | 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(); +// 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.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.platformInfraRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resource.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.resource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceDeclaredCapacity` +### `db.platformInfraStore` -CRUD operations for ResourceDeclaredCapacity records. +CRUD operations for PlatformInfraStore 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 | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | 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 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.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.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: 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.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceDefinition` +### `db.platformK8sResourceKind` -CRUD operations for ResourceDefinition records. +CRUD operations for PlatformK8sResourceKind records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `defaultSpec` | JSON | Yes | +| `definition` | 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 | +| `label` | String | Yes | | `slug` | String | Yes | -| `stepUpMinAge` | Interval | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | 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 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.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.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.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.platformK8sResourceKind.create({ data: { active: '', commitId: '', definition: '', description: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformK8sResourceKind.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformK8sResourceKind.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceEvent` +### `db.platformK8sSpecRule` -CRUD operations for ResourceEvent records. +CRUD operations for PlatformK8sSpecRule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `eventType` | String | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `resourceId` | UUID | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **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 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.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.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.resourceEvent.create({ data: { actorId: '', databaseId: '', eventType: '', message: '', metadata: '', resourceId: '' }, 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.resourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformK8sSpecRule.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformK8sSpecRule.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceInstallation` +### `db.platformNamespace` -CRUD operations for ResourceInstallation records. +CRUD operations for PlatformNamespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `annotations` | JSON | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isManaged` | Boolean | Yes | +| `labels` | JSON | Yes | +| `lastError` | String | Yes | | `name` | String | Yes | -| `namespaceId` | UUID | Yes | -| `params` | JSON | Yes | -| `revision` | Int | Yes | -| `slug` | String | Yes | +| `namespaceName` | 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 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(); // 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.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(); // 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.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceStatusCheck` +### `db.platformNamespaceEvent` -CRUD operations for ResourceStatusCheck records. +CRUD operations for PlatformNamespaceEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | -| `databaseId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `eventType` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | 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(); +// 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.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.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: 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.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUsageLog` +### `db.platformProposalComment` -CRUD operations for ResourceUsageLog records. +CRUD operations for PlatformProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | Yes | -| `databaseId` | UUID | 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 | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | String | 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 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 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.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.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.resourceUsageLog.create({ data: { cpuMillicores: '', databaseId: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, 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.resourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposalComment.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUsageSummary` +> **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 ResourceUsageSummary 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 | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | Yes | +| `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 | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `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 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 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.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.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.resourceUsageSummary.create({ data: { databaseId: '', date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, 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.resourceUsageSummary.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposal.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceUtilization` +> **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 ResourceUtilization 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 | |-------|------|----------| -| `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 | +| `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 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 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.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.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.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.platformProposalFileView.create({ data: { blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.resourcesHealth` +### `db.platformProposalReaction` -CRUD operations for ResourcesHealth records. +CRUD operations for PlatformProposalReaction records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `emoji` | 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 | +| `proposalId` | UUID | 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 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.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.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.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.platformProposalReaction.create({ data: { actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.platformProposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformProposalReaction.delete({ where: { id: '' } }).execute(); ``` -### `db.resourcesRequirementsState` +### `db.platformProposalReview` -CRUD operations for ResourcesRequirementsState records. +CRUD operations for PlatformProposalReview 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 | +| `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 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 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.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); +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.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +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 | +| `requiredChecks` | String | 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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.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 | +| `catalogImageId` | UUID | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | 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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 | + +**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(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.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 | +| `catalogImageId` | UUID | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | 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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResourcesHealth.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 | +| `requiredChecks` | String | 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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.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 | +| `catalogImageId` | UUID | 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 | +| `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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resource records +const items = await db.resource.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resource.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resource.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 | + +**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(); + +// 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(); + +// 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(); + +// 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 | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.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 | +| `catalogImageId` | UUID | 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 | +| `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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all resourcesHealth records +const items = await db.resourcesHealth.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.resourcesHealth.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', 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.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.databaseCopyGraph` + +databaseCopyGraph -// Update -const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +- **Type:** mutation +- **Arguments:** -// Delete -const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); -``` + | Argument | Type | + |----------|------| + | `input` | DatabaseCopyGraphInput (required) | -### `db.resourcesResolvedRequirement` +```typescript +const result = await db.mutation.databaseCopyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +``` -CRUD operations for ResourcesResolvedRequirement records. +### `db.mutation.databaseCreateFunctionGraph` -**Fields:** +databaseCreateFunctionGraph -| 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` | DatabaseCreateFunctionGraphInput (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.databaseCreateFunctionGraph({ input: '' }).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.databaseGraphInitEmptyRepo` -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); +databaseGraphInitEmptyRepo -// 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` | DatabaseGraphInitEmptyRepoInput (required) | -### `db.webhookEndpoint` +```typescript +const result = await db.mutation.databaseGraphInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` -CRUD operations for WebhookEndpoint records. +### `db.mutation.databaseGraphInsertNodeAtPath` -**Fields:** +databaseGraphInsertNodeAtPath -| 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` | DatabaseGraphInsertNodeAtPathInput (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.databaseGraphInsertNodeAtPath({ 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.databaseGraphInsertNodesAtPaths` -// Create -const created = await db.webhookEndpoint.create({ data: { active: '', createdBy: '', databaseId: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, select: { id: true } }).execute(); +databaseGraphInsertNodesAtPaths -// 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` | DatabaseGraphInsertNodesAtPathsInput (required) | -### `db.webhookEvent` +```typescript +const result = await db.mutation.databaseGraphInsertNodesAtPaths({ input: '' }).execute(); +``` -CRUD operations for WebhookEvent records. +### `db.mutation.databaseGraphSetAndCommit` -**Fields:** +databaseGraphSetAndCommit -| 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` | DatabaseGraphSetAndCommitInput (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.databaseGraphSetAndCommit({ input: '' }).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.databaseGraphSetDataAtPath` -// Create -const created = await db.webhookEvent.create({ data: { databaseId: '', endpointId: '', error: '', externalEventId: '', invocationCreatedAt: '', invocationId: '', payload: '', provider: '', providerTimestamp: '', status: '' }, select: { id: true } }).execute(); +databaseGraphSetDataAtPath -// 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` | DatabaseGraphSetDataAtPathInput (required) | -## Custom Operations +```typescript +const result = await db.mutation.databaseGraphSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); +``` -### `db.query.readFunctionGraph` +### `db.mutation.databaseGraphSetManyAndCommit` -readFunctionGraph +databaseGraphSetManyAndCommit -- **Type:** query +- **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `graphId` | UUID | + | `input` | DatabaseGraphSetManyAndCommitInput (required) | ```typescript -const result = await db.query.readFunctionGraph({ graphId: '' }).execute(); +const result = await db.mutation.databaseGraphSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); ``` -### `db.mutation.addEdge` +### `db.mutation.databaseImportDefinitions` -addEdge +databaseImportDefinitions - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddEdgeInput (required) | + | `input` | DatabaseImportDefinitionsInput (required) | ```typescript -const result = await db.mutation.addEdge({ input: '' }).execute(); +const result = await db.mutation.databaseImportDefinitions({ input: { contexts: '', graphId: '', sourceCommitId: '', sourceScopeId: '' } }).execute(); ``` -### `db.mutation.addEdgeAndSave` +### `db.mutation.databaseImportGraphJson` -addEdgeAndSave +databaseImportGraphJson - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddEdgeAndSaveInput (required) | + | `input` | DatabaseImportGraphJsonInput (required) | ```typescript -const result = await db.mutation.addEdgeAndSave({ input: '' }).execute(); +const result = await db.mutation.databaseImportGraphJson({ input: '' }).execute(); ``` -### `db.mutation.addNode` +### `db.mutation.databaseSaveGraph` -addNode +databaseSaveGraph - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddNodeInput (required) | + | `input` | DatabaseSaveGraphInput (required) | ```typescript -const result = await db.mutation.addNode({ input: '' }).execute(); +const result = await db.mutation.databaseSaveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); ``` -### `db.mutation.addNodeAndSave` +### `db.mutation.databaseStartExecution` -addNodeAndSave +databaseStartExecution - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AddNodeAndSaveInput (required) | + | `input` | DatabaseStartExecutionInput (required) | ```typescript -const result = await db.mutation.addNodeAndSave({ input: '' }).execute(); +const result = await db.mutation.databaseStartExecution({ input: '' }).execute(); ``` -### `db.mutation.copyGraph` +### `db.mutation.databaseValidateFunctionGraph` -copyGraph +databaseValidateFunctionGraph - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CopyGraphInput (required) | + | `input` | DatabaseValidateFunctionGraphInput (required) | ```typescript -const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); +const result = await db.mutation.databaseValidateFunctionGraph({ input: { graphId: '' } }).execute(); ``` ### `db.mutation.importDefinitions` @@ -3053,6 +5399,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 +5444,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 +5489,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3128,6 +5534,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 +5579,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.platformResourceInstallationsInstall` platformResourceInstallationsInstall @@ -3296,6 +5747,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 +5777,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..7284b066dc 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -5,6 +5,18 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; +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 +35,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 +45,8 @@ 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 { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -39,13 +55,29 @@ 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 { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; @@ -60,6 +92,18 @@ 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 { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; @@ -109,6 +153,20 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(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 +185,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 +195,8 @@ 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), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -143,13 +205,29 @@ 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), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), @@ -164,6 +242,18 @@ 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), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(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..20846f2d71 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -233,9 +233,314 @@ 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 */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} +/** 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; + /** 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 */ + status?: 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 +601,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; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -307,6 +614,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,12 +660,14 @@ export interface FunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -377,6 +687,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; } @@ -384,9 +695,12 @@ export interface FunctionDefinition { export interface FunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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 +720,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,6 +739,7 @@ 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 { @@ -707,6 +1024,8 @@ export interface FunctionInvocation { 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 */ @@ -742,6 +1061,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 */ @@ -877,7 +1254,76 @@ 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 */ +/** One run of a repository workflow: its commit, its job, and what it produced */ +export interface PlatformBuild { + /** Authenticated actor this build is attributed to */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} +/** 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; @@ -911,10 +1357,12 @@ export interface PlatformFunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface PlatformFunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -924,6 +1372,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,12 +1416,14 @@ export interface PlatformFunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -994,6 +1445,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; } @@ -1001,9 +1453,12 @@ export interface PlatformFunctionDefinition { export interface PlatformFunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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 +1476,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,6 +1495,7 @@ 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 { @@ -1114,6 +1572,8 @@ export interface PlatformFunctionInvocation { 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 */ @@ -1145,6 +1605,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,6 +1725,52 @@ 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 */ @@ -1252,16 +1812,415 @@ 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 */ + 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 */ + 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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 */ annotations?: Record | null; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; @@ -1309,6 +2268,7 @@ export interface PlatformResource { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1329,8 +2289,11 @@ export interface PlatformResourceDeclaredCapacity { export interface PlatformResourceDefinition { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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,6 +2321,7 @@ 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 { @@ -1382,6 +2346,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 +2364,7 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1482,10 +2448,12 @@ export interface PlatformResourceUtilization { } export interface PlatformResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; installationId?: string | null; @@ -1512,6 +2480,7 @@ export interface PlatformResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1541,6 +2510,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 +2528,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,133 +2554,561 @@ 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 */ + 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 */ + 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; - /** 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. */ - paramsSchema?: 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; - /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ - requiredSecrets?: ResourceRequirement[] | null; - /** URL-safe identifier, unique within (namespace_id, kind) */ - slug?: string | null; - /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ - stepUpMinAge?: 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; } -/** Resource lifecycle events — audit log of provisioning, updates, and failure events */ -export interface ResourceEvent { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string | null; - /** Event timestamp (partition key) */ +/** 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; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType?: string | null; - /** Unique event identifier */ id: string; - /** Human-readable description of the event */ - message?: string | null; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record | null; + /** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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; + /** 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; + 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; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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. */ + paramsSchema?: 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; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + 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) */ + actorId?: string | null; + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType?: string | null; + /** Unique event identifier */ + id: string; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; /** Resource this event belongs to */ resourceId?: string | null; } @@ -1719,6 +3118,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 +3138,7 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1827,10 +3228,12 @@ export interface ResourceUtilization { } export interface ResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; @@ -1858,6 +3261,7 @@ export interface ResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1887,6 +3291,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 +3311,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 +3352,30 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + catalogImage?: Image | null; + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} +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,11 +3385,14 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + catalogImage?: Image | null; + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { + catalogImage?: Image | null; namespace?: Namespace | null; } export interface FunctionDeploymentEventRelations {} @@ -1968,6 +3401,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -1982,6 +3416,17 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + buildsByCatalogImageId?: ConnectionResult; + functionDefinitionsByCatalogImageId?: ConnectionResult; + functionDeploymentsByCatalogImageId?: ConnectionResult; + imageGrants?: ConnectionResult; + resourceDefinitionsByCatalogImageId?: ConnectionResult; + resourcesByCatalogImageId?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -1990,12 +3435,21 @@ export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + catalogImage?: PlatformImage | null; + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2004,12 +3458,14 @@ export interface PlatformFunctionCapabilityBindingRelations { function?: PlatformFunctionDefinition | null; } export interface PlatformFunctionDefinitionRelations { + catalogImage?: PlatformImage | null; graph?: FunctionGraph | null; platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; platformFunctionCapabilityBindingsByFunctionId?: ConnectionResult; platformWebhookEndpointsByFunctionDefinitionId?: ConnectionResult; } export interface PlatformFunctionDeploymentRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; } export interface PlatformFunctionDeploymentEventRelations {} @@ -2018,20 +3474,90 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformBuildsByCatalogImageId?: ConnectionResult; + platformFunctionDefinitionsByCatalogImageId?: ConnectionResult; + platformFunctionDeploymentsByCatalogImageId?: ConnectionResult; + platformImageGrantsByImageId?: ConnectionResult; + platformResourceDefinitionsByCatalogImageId?: ConnectionResult; + platformResourcesByCatalogImageId?: 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 { 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; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; +} export interface PlatformResourceRelations { + catalogImage?: PlatformImage | null; installation?: PlatformResourceInstallation | null; namespace?: PlatformNamespace | null; resourceDefinition?: PlatformResourceDefinition | null; @@ -2039,12 +3565,14 @@ export interface PlatformResourceRelations { } export interface PlatformResourceDeclaredCapacityRelations {} export interface PlatformResourceDefinitionRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; platformResourcesByResourceDefinitionId?: ConnectionResult; } export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } export interface PlatformResourceStatusCheckRelations { @@ -2064,7 +3592,63 @@ 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; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { + catalogImage?: Image | null; installation?: ResourceInstallation | null; namespace?: Namespace | null; resourceDefinition?: ResourceDefinition | null; @@ -2072,12 +3656,14 @@ export interface ResourceRelations { } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { + catalogImage?: Image | null; namespace?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } export interface ResourceStatusCheckRelations { @@ -2098,6 +3684,23 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; +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 +3727,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 +3738,8 @@ 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 PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2149,15 +3756,41 @@ 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 PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2185,6 +3818,18 @@ 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 RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2205,19 +3850,217 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ -export type DbPresetSelect = { - active?: boolean; - commitId?: boolean; +export type BuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; createdAt?: boolean; - definition?: boolean; - description?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; id?: boolean; - label?: boolean; - modulesHash?: boolean; - slug?: boolean; - storeId?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; updatedAt?: boolean; -}; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: ImageSelect; + }; + 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 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; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: 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; @@ -2253,11 +4096,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2284,6 +4129,7 @@ export type FunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2294,7 +4140,14 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: ImageSelect; + }; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2316,8 +4169,10 @@ export type FunctionDefinitionSelect = { }; export type FunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2328,6 +4183,7 @@ export type FunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2337,6 +4193,10 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -2398,6 +4258,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2503,6 +4369,7 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2526,6 +4393,80 @@ 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; + buildsByCatalogImageId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + functionDefinitionsByCatalogImageId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + functionDeploymentsByCatalogImageId?: { + select: FunctionDeploymentSelect; + first?: number; + filter?: FunctionDeploymentFilter; + orderBy?: FunctionDeploymentOrderBy[]; + }; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; + resourceDefinitionsByCatalogImageId?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; + resourcesByCatalogImageId?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +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; @@ -2597,6 +4538,12 @@ export type NamespaceSelect = { filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2632,6 +4579,59 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; + 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 PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2667,11 +4667,13 @@ export type PlatformFunctionCapabilityBindingSelect = { export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; billable?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2697,6 +4699,7 @@ export type PlatformFunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2708,7 +4711,11 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; graph?: { select: FunctionGraphSelect; }; @@ -2733,8 +4740,10 @@ export type PlatformFunctionDefinitionSelect = { }; export type PlatformFunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2744,6 +4753,7 @@ export type PlatformFunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2753,6 +4763,10 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -2796,6 +4810,7 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2815,43 +4830,139 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; -export type PlatformInfraCommitSelect = { - authorId?: boolean; - committerId?: boolean; - date?: boolean; - id?: boolean; - message?: boolean; - parentIds?: boolean; - scopeId?: boolean; - storeId?: boolean; - treeId?: boolean; -}; -export type PlatformInfraGetAllTreeNodesRecordSelect = { - data?: boolean; - path?: boolean; -}; -export type PlatformInfraObjectSelect = { - createdAt?: boolean; - data?: boolean; - id?: boolean; - kids?: boolean; - ktree?: boolean; - scopeId?: boolean; -}; -export type PlatformInfraRefSelect = { - commitId?: boolean; - id?: boolean; - name?: boolean; - scopeId?: boolean; - storeId?: boolean; -}; -export type PlatformInfraStoreSelect = { +export type PlatformImageSelect = { createdAt?: boolean; - hash?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; name?: boolean; - scopeId?: boolean; -}; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformBuildsByCatalogImageId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformFunctionDefinitionsByCatalogImageId?: { + select: PlatformFunctionDefinitionSelect; + first?: number; + filter?: PlatformFunctionDefinitionFilter; + orderBy?: PlatformFunctionDefinitionOrderBy[]; + }; + platformFunctionDeploymentsByCatalogImageId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; + platformResourceDefinitionsByCatalogImageId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; + platformResourcesByCatalogImageId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; +}; +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; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + scopeId?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type PlatformInfraGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type PlatformInfraObjectSelect = { + createdAt?: boolean; + data?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; + scopeId?: boolean; +}; +export type PlatformInfraRefSelect = { + commitId?: boolean; + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; +}; +export type PlatformInfraStoreSelect = { + createdAt?: boolean; + hash?: boolean; + id?: boolean; + 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; createdAt?: boolean; @@ -2871,6 +4982,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2905,12 +5022,401 @@ 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; export type PlatformResourceSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -2936,6 +5442,10 @@ export type PlatformResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; installation?: { select: PlatformResourceInstallationSelect; }; @@ -2969,8 +5479,10 @@ export type PlatformResourceDeclaredCapacitySelect = { }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -2986,6 +5498,10 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -3009,6 +5525,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3019,9 +5536,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; @@ -3086,10 +5610,12 @@ export type PlatformResourceUtilizationSelect = { }; export type PlatformResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -3116,6 +5642,7 @@ export type PlatformResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3143,6 +5670,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3153,6 +5681,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3183,17 +5712,418 @@ 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; + 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: ProposalSelect; + }; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; +}; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: 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: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; + first?: number; + 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 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + catalogImageId?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: boolean; + id?: boolean; + installationId?: boolean; + integrations?: boolean; kind?: boolean; labels?: boolean; lastError?: boolean; @@ -3215,6 +6145,10 @@ export type ResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; installation?: { select: ResourceInstallationSelect; }; @@ -3248,8 +6182,10 @@ export type ResourceDeclaredCapacitySelect = { }; export type ResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; defaultSpec?: boolean; description?: boolean; @@ -3266,6 +6202,10 @@ export type ResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -3290,6 +6230,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3301,9 +6242,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; @@ -3371,10 +6319,12 @@ export type ResourceUtilizationSelect = { }; export type ResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; @@ -3402,6 +6352,7 @@ export type ResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3429,6 +6380,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3440,6 +6392,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3472,11 +6425,117 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ -export interface DbPresetFilter { +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 `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; +} +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. */ @@ -3487,14 +6546,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. */ @@ -3502,35 +6561,328 @@ 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?: 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 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 `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; +} +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. */ @@ -3567,6 +6919,12 @@ export interface FunctionDefinitionFilter { accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -3577,6 +6935,8 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3593,6 +6953,10 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3639,6 +7003,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -3657,6 +7023,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. */ @@ -3669,10 +7037,18 @@ export interface FunctionDeploymentFilter { and?: FunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -3699,6 +7075,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -3717,6 +7095,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. */ @@ -3825,6 +7205,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. */ @@ -4071,6 +7455,8 @@ 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. */ @@ -4113,13 +7499,117 @@ 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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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. */ @@ -4263,6 +7753,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. */ @@ -4308,6 +7802,108 @@ 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -4373,6 +7969,12 @@ export interface PlatformFunctionDefinitionFilter { and?: PlatformFunctionDefinitionFilter[]; /** Filter by the object’s `billable` field. */ billable?: BooleanFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -4383,6 +7985,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. */ @@ -4451,6 +8055,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -4471,6 +8077,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; } @@ -4479,10 +8087,18 @@ export interface PlatformFunctionDeploymentFilter { and?: PlatformFunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -4507,6 +8123,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -4525,6 +8143,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. */ @@ -4621,6 +8241,8 @@ 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. */ @@ -4656,6 +8278,106 @@ 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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[]; @@ -4745,6 +8467,62 @@ 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[]; @@ -4776,6 +8554,10 @@ export interface PlatformNamespaceFilter { 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. */ @@ -4819,547 +8601,681 @@ 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 `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; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformProposalCommentFilter; /** 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; + 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 PlatformResourceDeclaredCapacityFilter { +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** 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; + 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?: 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; + 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?: PlatformResourceDeclaredCapacityFilter; + not?: PlatformProposalFilter; /** 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; + 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 PlatformResourceDefinitionFilter { +export interface PlatformProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + 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 `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 `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; + not?: PlatformProposalFileViewFilter; /** 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?: 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 `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface PlatformResourceEventFilter { +export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceEventFilter[]; + 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 `eventType` field. */ - eventType?: 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; + /** 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 `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceEventFilter; + not?: PlatformProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + 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 PlatformResourceInstallationFilter { +export interface PlatformRegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `name` field. */ - name?: 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?: PlatformResourceInstallationFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** 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; + 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 `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 PlatformResourceStatusCheckFilter { +export interface PlatformRegistryFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + 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?: PlatformResourceStatusCheckFilter; + not?: PlatformRegistryFilter; /** 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; + 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 PlatformResourceUsageLogFilter { +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + 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; - /** 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; + not?: PlatformRegistryGrantFilter; /** 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?: 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 PlatformResourceUsageSummaryFilter { +export interface PlatformRepositoryFilter { /** 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?: 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 `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?: PlatformResourceUsageSummaryFilter; + not?: PlatformRepositoryFilter; /** 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?: 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 PlatformResourceUtilizationFilter { +export interface PlatformRepositoryWorkflowFilter { /** 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; + 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 `errorCount` field. */ - errorCount?: IntFilter; + /** 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 `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 `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: 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 `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesResolvedRequirementFilter; + not?: PlatformRepositoryWorkflowFilter; /** 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; + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: 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; -} -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; + /** 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 ResourceFilter { +export interface PlatformResourceFilter { /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5368,14 +9284,14 @@ export interface ResourceFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; + installation?: PlatformResourceInstallationFilter; /** A related `installation` exists. */ installationExists?: boolean; /** Filter by the object’s `installationId` field. */ @@ -5397,27 +9313,27 @@ export interface ResourceFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + 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?: ResourceDefinitionFilter; + resourceDefinition?: PlatformResourceDefinitionFilter; /** 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. */ @@ -5434,10 +9350,12 @@ export interface ResourceFilter { 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 PlatformResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; + and?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5455,9 +9373,9 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: PlatformResourceDeclaredCapacityFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; + or?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `podCountMax` field. */ podCountMax?: IntFilter; /** Filter by the object’s `podCountMin` field. */ @@ -5469,17 +9387,23 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; } -export interface ResourceDefinitionFilter { +export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ defaultSpec?: JSONFilter; /** Filter by the object’s `description` field. */ @@ -5495,20 +9419,20 @@ export interface ResourceDefinitionFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: PlatformResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** 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. */ + /** 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; @@ -5516,16 +9440,16 @@ export interface ResourceDefinitionFilter { 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 PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: PlatformResourceEventFilter[]; /** 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. */ @@ -5535,41 +9459,45 @@ export interface ResourceEventFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: PlatformResourceEventFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; + or?: PlatformResourceEventFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; } -export interface ResourceInstallationFilter { +export interface PlatformResourceInstallationFilter { /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; + 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 `databaseId` field. */ - databaseId?: 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?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: PlatformResourceInstallationFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; + or?: PlatformResourceInstallationFilter[]; /** 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 `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. */ @@ -5582,26 +9510,26 @@ export interface ResourceInstallationFilter { 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 PlatformResourceStatusCheckFilter { /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; + and?: PlatformResourceStatusCheckFilter[]; /** 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; + not?: PlatformResourceStatusCheckFilter; /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; + 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?: ResourceFilter; + resource?: PlatformResourceFilter; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `result` field. */ @@ -5609,13 +9537,11 @@ export interface ResourceStatusCheckFilter { /** Filter by the object’s `status` field. */ status?: StringFilter; } -export interface ResourceUsageLogFilter { +export interface PlatformResourceUsageLogFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; + and?: PlatformResourceUsageLogFilter[]; /** 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. */ @@ -5627,9 +9553,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageLogFilter; + not?: PlatformResourceUsageLogFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; + or?: PlatformResourceUsageLogFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `sampledAt` field. */ @@ -5637,11 +9563,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `source` field. */ source?: StringFilter; } -export interface ResourceUsageSummaryFilter { +export interface PlatformResourceUsageSummaryFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + and?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `date` field. */ date?: DateFilter; /** Filter by the object’s `gbSeconds` field. */ @@ -5655,9 +9579,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: PlatformResourceUsageSummaryFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; + or?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `runtimeSeconds` field. */ @@ -5665,9 +9589,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourceUtilizationFilter { +export interface PlatformResourceUtilizationFilter { /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; + and?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `avgMemoryBytes` field. */ avgMemoryBytes?: BigIntFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -5699,9 +9623,9 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUtilizationFilter; + not?: PlatformResourceUtilizationFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; + or?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; /** Filter by the object’s `resourceId` field. */ @@ -5711,11 +9635,13 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourcesHealthFilter { +export interface PlatformResourcesHealthFilter { /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; + and?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5724,8 +9650,8 @@ export interface ResourcesHealthFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ @@ -5751,9 +9677,9 @@ export interface ResourcesHealthFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: PlatformResourcesHealthFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; + or?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ @@ -5778,18 +9704,20 @@ export interface ResourcesHealthFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesRequirementsStateFilter { +export interface PlatformResourcesRequirementsStateFilter { /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; + and?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `configHash` field. */ configHash?: StringFilter; /** Filter by the object’s `configObjectName` field. */ configObjectName?: StringFilter; /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; + not?: PlatformResourcesRequirementsStateFilter; /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; + or?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `requirementsHash` field. */ requirementsHash?: StringFilter; /** Filter by the object’s `resourceId` field. */ @@ -5801,9 +9729,9 @@ export interface ResourcesRequirementsStateFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface ResourcesResolvedRequirementFilter { +export interface PlatformResourcesResolvedRequirementFilter { /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; + and?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `atomId` field. */ atomId?: UUIDFilter; /** Filter by the object’s `configObjectName` field. */ @@ -5813,9 +9741,9 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: PlatformResourcesResolvedRequirementFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; + or?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `present` field. */ present?: BooleanFilter; /** Filter by the object’s `realm` field. */ @@ -5831,19 +9759,19 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface WebhookEndpointFilter { +export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + 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 `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + functionDefinition?: PlatformFunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; /** Filter by the object’s `host` field. */ @@ -5851,15 +9779,19 @@ export interface WebhookEndpointFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** 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?: PlatformWebhookEndpointFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; + 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. */ @@ -5870,20 +9802,16 @@ export interface WebhookEndpointFilter { 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 PlatformWebhookEventFilter { /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: PlatformWebhookEventFilter[]; /** 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; + endpoint?: PlatformWebhookEndpointFilter; /** Filter by the object’s `endpointId` field. */ endpointId?: UUIDFilter; /** Filter by the object’s `error` field. */ @@ -5897,9 +9825,9 @@ export interface WebhookEventFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: PlatformWebhookEventFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; + or?: PlatformWebhookEventFilter[]; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; /** Filter by the object’s `provider` field. */ @@ -5911,127 +9839,1737 @@ export interface WebhookEventFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -// ============ 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' +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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** 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; +} +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 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 `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 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' + | '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'; +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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6048,6 +11586,8 @@ export type FunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6068,15 +11608,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6100,6 +11646,8 @@ export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -6117,7 +11665,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' @@ -6411,6 +11961,8 @@ 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' @@ -6452,6 +12004,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' @@ -6604,6 +12226,82 @@ export type NamespaceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_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' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -6649,6 +12347,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'CONCURRENCY_ASC' @@ -6659,6 +12359,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' @@ -6712,6 +12414,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6734,15 +12438,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6764,6 +12474,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -6781,7 +12493,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' @@ -6859,6 +12573,8 @@ 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' @@ -6882,16 +12598,82 @@ export type PlatformFunctionInvocationOrderBy = | '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'; + | '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 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' @@ -6966,6 +12748,54 @@ 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' @@ -6990,31 +12820,525 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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'; -export type PlatformNamespaceEventOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7023,6 +13347,8 @@ 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' @@ -7075,7 +13401,9 @@ export type PlatformResourceOrderBy = | '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' @@ -7107,10 +13435,14 @@ export type PlatformResourceDeclaredCapacityOrderBy = export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -7143,7 +13475,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' @@ -7169,6 +13503,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' @@ -7191,7 +13527,9 @@ 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 PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7297,6 +13635,8 @@ export type PlatformResourceUtilizationOrderBy = export type PlatformResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7305,6 +13645,8 @@ 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' @@ -7357,7 +13699,9 @@ export type PlatformResourcesHealthOrderBy = | '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' @@ -7384,81 +13728,603 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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 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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7467,6 +14333,8 @@ 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' @@ -7521,7 +14389,9 @@ export type ResourceOrderBy = | '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' @@ -7553,10 +14423,14 @@ export type ResourceDeclaredCapacityOrderBy = export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' | 'DEFAULT_SPEC_ASC' @@ -7591,7 +14465,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 +14495,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 +14521,9 @@ 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 ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7755,6 +14635,8 @@ export type ResourceUtilizationOrderBy = export type ResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7763,6 +14645,8 @@ 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' @@ -7817,7 +14701,9 @@ export type ResourcesHealthOrderBy = | '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 +14751,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 +14777,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 +14811,16738 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 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; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: 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; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: 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[]; + catalogImageId?: string; + 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[]; + 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; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + 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; +} +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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +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; +} +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; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 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[]; + billable?: boolean; + catalogImageId?: string; + 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[]; + 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; + billable?: boolean | null; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: 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; +} +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; + requiredChecks?: 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; + requiredChecks?: 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 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; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; + }; +} +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; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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; + catalogImageId?: string | 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 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; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; + requiredChecks?: 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; + requiredChecks?: 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 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; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface ResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; + }; +} +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; +} +export interface UpdateResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +} +export interface DeleteResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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; + catalogImageId?: string | 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 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; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; }; } -export interface DbPresetPatch { - active?: boolean | null; - commitId?: string | null; - definition?: Record | null; - description?: string | null; - label?: string | null; - modulesHash?: string | null; +export interface ResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; - storeId?: string | null; + spec?: Record | null; + status?: string | null; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateDbPresetInput { +export interface UpdateResourcesHealthInput { clientMutationId?: string; id: string; - dbPresetPatch: DbPresetPatch; + resourcesHealthPatch: ResourcesHealthPatch; } -export interface DeleteDbPresetInput { +export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateResourcesRequirementsStateInput { clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + slug?: string; }; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +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 UpdateFunctionApiBindingInput { +export interface UpdateResourcesRequirementsStateInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface CreateResourcesResolvedRequirementInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; - databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; + 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 FunctionCapabilityBindingPatch { - bucketId?: string | null; - databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +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 UpdateFunctionCapabilityBindingInput { +export interface UpdateResourcesResolvedRequirementInput { clientMutationId?: string; id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDefinitionInput { +export interface CreateWebhookEndpointInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + 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[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; - }; -} -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; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; } -export interface UpdateFunctionDefinitionInput { +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; - functionDefinitionPatch: FunctionDefinitionPatch; + webhookEndpointPatch: WebhookEndpointPatch; } -export interface DeleteFunctionDefinitionInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreateWebhookEventInput { clientMutationId?: string; - functionDeployment: { - annotations?: Record; - concurrency?: number; + webhookEvent: { 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; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; status?: string; - timeoutSeconds?: number; }; } -export interface FunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; +export interface WebhookEventPatch { 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; + 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; - timeoutSeconds?: number | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdateWebhookEventInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + webhookEventPatch: WebhookEventPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeleteWebhookEventInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentEventInput { +// ============ 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: { + buildsByCatalogImageId: 'Build', + functionDefinitionsByCatalogImageId: 'FunctionDefinition', + functionDeploymentsByCatalogImageId: 'FunctionDeployment', + imageGrants: 'ImageGrant', + resourceDefinitionsByCatalogImageId: 'ResourceDefinition', + resourcesByCatalogImageId: 'Resource', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformBuildsByCatalogImageId: 'PlatformBuild', + platformFunctionDefinitionsByCatalogImageId: 'PlatformFunctionDefinition', + platformFunctionDeploymentsByCatalogImageId: 'PlatformFunctionDeployment', + platformImageGrantsByImageId: 'PlatformImageGrant', + platformResourceDefinitionsByCatalogImageId: 'PlatformResourceDefinition', + platformResourcesByCatalogImageId: 'PlatformResource', + }, + PlatformNamespace: { + 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', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + }, + 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', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + }, + 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; - functionDeploymentEvent: { - actorId?: string; - databaseId: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface FunctionDeploymentEventPatch { - actorId?: string | null; - databaseId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; +export interface AddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; +} +export interface AddNodeInput { + clientMutationId?: string; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; +} +export interface AddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; +} +export interface CopyGraphInput { + clientMutationId?: string; + graphId?: string; + name?: string; + scopeId?: string; +} +export interface DatabaseAddEdgeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; +} +export interface DatabaseAddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; +} +export interface DatabaseAddNodeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; +} +export interface DatabaseAddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface UpdateFunctionDeploymentEventInput { +export interface DatabaseCopyGraphInput { clientMutationId?: string; - id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + databaseId?: string; + graphId?: string; + name?: string; } -export interface DeleteFunctionDeploymentEventInput { +export interface DatabaseCreateFunctionGraphInput { clientMutationId?: string; - id: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; } -export interface CreateFunctionExecutionLogInput { +export interface DatabaseGraphInitEmptyRepoInput { 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; + sId?: string; + storeId?: string; } -export interface UpdateFunctionExecutionLogInput { +export interface DatabaseGraphInsertNodeAtPathInput { clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionExecutionLogInput { +export interface DatabaseGraphInsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreateFunctionGraphCommitInput { +export interface DatabaseGraphSetAndCommitInput { 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; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphCommitInput { +export interface DatabaseGraphSetDataAtPathInput { clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphCommitInput { +export interface DatabaseGraphSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphInput { +export interface DatabaseImportDefinitionsInput { 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; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface UpdateFunctionGraphInput { +export interface DatabaseImportGraphJsonInput { clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; } -export interface DeleteFunctionGraphInput { +export interface DatabaseSaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + rootHash?: string; } -export interface CreateFunctionGraphExecutionInput { +export interface DatabaseStartExecutionInput { 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; + graphId?: string; + inputPayload?: Record; + maxPendingJobs?: number; + maxTicks?: number; + outputNames?: string[]; + outputNode?: string; + outputPort?: string; + parentExecutionId?: string; + parentNodeName?: string; + timeoutInterval?: IntervalInput; } -export interface UpdateFunctionGraphExecutionInput { +export interface DatabaseValidateFunctionGraphInput { clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + graphId?: string; } -export interface DeleteFunctionGraphExecutionInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface ImportGraphJsonInput { 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; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface InfraInsertNodesAtPathsInput { 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 InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphExecutionOutputInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface InfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphObjectInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; + sId?: string; + storeId?: string; } -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | null; +export interface InsertNodeAtPathInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface InsertNodesAtPathsInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; - id: string; + sId?: string; + storeId?: string; } -export interface CreateFunctionGraphRefInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface UpdateFunctionGraphRefInput { +export interface PlatformInfraSetAndCommitInput { clientMutationId?: string; - id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphRefInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateFunctionGraphStoreInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; - }; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +export interface PlatformResourceInstallationsInstallInput { + clientMutationId?: string; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface UpdateFunctionGraphStoreInput { +export interface PlatformResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + commitId?: string; + targetInstallationId?: string; } -export interface DeleteFunctionGraphStoreInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; + targetInstallationId?: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsUpgradeInput { 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; - }; + newParams?: Record; + targetInstallationId?: 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 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 UpdateFunctionInvocationAttemptInput { +export interface ResourceInstallationsInstallInput { clientMutationId?: string; - id: string; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface DeleteFunctionInvocationAttemptInput { +export interface ResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; + commitId?: string; + targetInstallationId?: string; } -export interface CreateFunctionInvocationInput { +export interface ResourceInstallationsUninstallInput { 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; - }; + targetInstallationId?: 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 ResourceInstallationsUpgradeInput { + clientMutationId?: string; + newParams?: Record; + targetInstallationId?: string; } -export interface UpdateFunctionInvocationInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; + graphId?: string; + message?: string; + rootHash?: string; } -export interface DeleteFunctionInvocationInput { +export interface SetAndCommitInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreateGetAllTreeNodesRecordInput { +export interface SetDataAtPathInput { clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} -export interface GetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdateGetAllTreeNodesRecordInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface DeleteGetAllTreeNodesRecordInput { +export interface StartExecutionInput { 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 CreateInfraCommitInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; - }; + graphId?: 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; +/** 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 UpdateInfraCommitInput { - clientMutationId?: string; - id: string; - infraCommitPatch: InfraCommitPatch; +/** 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 DeleteInfraCommitInput { - 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 CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: 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 InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: 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 UpdateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; +/** 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 DeleteInfraGetAllTreeNodesRecordInput { - 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 CreateInfraObjectInput { - clientMutationId?: string; - infraObject: { - data?: Record; - databaseId: string; - kids?: string[]; - ktree?: 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 InfraObjectPatch { - data?: Record | null; - databaseId?: string | null; - kids?: string[] | null; - ktree?: 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 UpdateInfraObjectInput { - clientMutationId?: string; - id: string; - infraObjectPatch: InfraObjectPatch; +/** 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 DeleteInfraObjectInput { - 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 CreateInfraRefInput { - clientMutationId?: string; - infraRef: { - commitId?: string; - databaseId: string; - name: string; - storeId: 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 InfraRefPatch { - commitId?: string | null; - databaseId?: string | null; - name?: string | null; - storeId?: string | null; +/** A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyBuildFilter { + /** 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 UpdateInfraRefInput { - clientMutationId?: string; - id: string; - infraRefPatch: InfraRefPatch; +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDefinitionFilter { + /** 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 DeleteInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDeploymentFilter { + /** 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 CreateInfraStoreInput { - clientMutationId?: string; - infraStore: { - databaseId: string; - hash?: string; - name: 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 InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceDefinitionFilter { + /** 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 UpdateInfraStoreInput { - clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceFilter { + /** 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 DeleteInfraStoreInput { - 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 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 `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 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 `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 UpdateIntegrationProviderInput { - clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; +/** 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 DeleteIntegrationProviderInput { - 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 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 `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 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 `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 UpdateNamespaceInput { - clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; +/** 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 DeleteNamespaceInput { - 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 CreateNamespaceEventInput { - clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** 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 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 `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 UpdateNamespaceEventInput { - clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformBuildFilter { + /** 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 DeleteNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDefinitionFilter { + /** 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 CreatePlatformFunctionApiBindingInput { - clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDeploymentFilter { + /** 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 PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +/** 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 UpdatePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceDefinitionFilter { + /** 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 DeletePlatformFunctionApiBindingInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceFilter { + /** 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 CreatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; +/** 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 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 `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 UpdatePlatformFunctionCapabilityBindingInput { - clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; +/** 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 DeletePlatformFunctionCapabilityBindingInput { - 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; } -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 `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 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 `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 UpdatePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +/** 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 DeletePlatformFunctionDefinitionInput { - clientMutationId?: string; - id: 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; +} +/** 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 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 `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 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 `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 UpdatePlatformFunctionDeploymentInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +/** 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 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 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 CreatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - platformFunctionDeploymentEvent: { - actorId?: string; - deploymentId: string; - eventType: string; - message?: string; - metadata?: Record; - }; +/** 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 PlatformFunctionDeploymentEventPatch { - actorId?: string | null; - deploymentId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | 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 UpdatePlatformFunctionDeploymentEventInput { - clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +/** 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 DeletePlatformFunctionDeploymentEventInput { - 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 CreatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - platformFunctionExecutionLog: { - actorId?: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - 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 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 `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 UpdatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +/** 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 DeletePlatformFunctionExecutionLogInput { - clientMutationId?: string; - id: 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 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 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 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 `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 UpdatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; +/** 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 DeletePlatformFunctionInvocationAttemptInput { - 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 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 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 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 `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 UpdatePlatformFunctionInvocationInput { - clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; +/** 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 DeletePlatformFunctionInvocationInput { - 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 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 `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 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 `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 UpdatePlatformInfraCommitInput { - clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; +/** 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 DeletePlatformInfraCommitInput { - 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 CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; +/** 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 PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | 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 UpdatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; +/** 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 DeletePlatformInfraGetAllTreeNodesRecordInput { - 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 CreatePlatformInfraObjectInput { - clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: 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; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: string | 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 UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** 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 DeletePlatformInfraObjectInput { - 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 CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; - }; +/** 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 PlatformInfraRefPatch { - 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 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 UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** 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 DeletePlatformInfraRefInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: 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 PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: 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 UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** 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 DeletePlatformInfraStoreInput { - 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 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 `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 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 `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** 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 DeletePlatformNamespaceInput { - clientMutationId?: string; - id: 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 CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; +/** 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; + /** 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 */ + status?: string; } -export interface PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: string | null; +/** 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 UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** 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 DeletePlatformNamespaceEventInput { - 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 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; - }; -} -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 `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 UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** 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 DeletePlatformResourceInput { - 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 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 `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 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 `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 UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** 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[]; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + 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 `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; } -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 `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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 `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 interface UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** 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 interface DeletePlatformResourceDefinitionInput { - 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 CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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 PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: 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 interface UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** 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 DeletePlatformResourceEventInput { - 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 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 `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 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 `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; +} +/** 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 interface UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** 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; + /** 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; + /** 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 interface DeletePlatformResourceInstallationInput { - 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 CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: 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 PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | 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 UpdatePlatformResourceStatusCheckInput { - 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; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeletePlatformResourceStatusCheckInput { - 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 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 `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 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 `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 UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** 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 interface DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** 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; +} +/** An input for mutations affecting `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 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 `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 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 `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 UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +/** 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; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -export interface DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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 `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 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 `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 interface UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** 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 interface DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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; + /** 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; + /** 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 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 `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 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 `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 UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** 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 DeletePlatformResourcesHealthInput { - 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 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; +/** 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 UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** 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 DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: 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; + /** 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 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 `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 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 `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 interface UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** 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 interface DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment */ + 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 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 `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal */ + 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 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 `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 UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** 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 DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** 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; +} +/** 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 DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: 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; + 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 `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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 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 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 UpdateResourceInput { - clientMutationId?: string; - id: string; - resourcePatch: ResourcePatch; +/** 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 interface DeleteResourceInput { - 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 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 `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 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 `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 UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** 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 DeleteResourceDeclaredCapacityInput { - 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 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 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 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 `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment */ + 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 UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal */ + 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 DeleteResourceDefinitionInput { - 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 CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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 ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: 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; } -export interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** 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 DeleteResourceEventInput { - clientMutationId?: string; - id: string; +/** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 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 `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; +} +/** 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 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 `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + 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; + /** 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 UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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 DeleteResourceInstallationInput { - clientMutationId?: string; - id: string; +/** 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 interface CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - 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 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 `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 UpdateResourceStatusCheckInput { - clientMutationId?: string; - id: string; - resourceStatusCheckPatch: ResourceStatusCheckPatch; +/** 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 DeleteResourceStatusCheckInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** 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 DeleteResourceUsageLogInput { - clientMutationId?: string; - id: 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 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 `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 `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 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; +/** 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 `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 interface UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** 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 DeleteResourceUsageSummaryInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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 `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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** 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 DeleteResourcesHealthInput { - 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -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 `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 UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** 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 DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** 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 `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 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 `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 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 `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 UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** 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 DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 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 `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 UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 DeleteWebhookEndpointInput { - 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -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 `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 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 `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 UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** 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 DeleteWebhookEventInput { - clientMutationId?: string; - id: 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; } -// ============ 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 `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 AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: string; - message?: string; - srcNode?: string; - srcPort?: 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 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 `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 AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** 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 CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: 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 ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: 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 ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: 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 InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: 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 InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - 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 InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: 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 InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** 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 InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - 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 PlatformInfraInitEmptyRepoInput { - clientMutationId?: 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 PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - 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 PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: 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; +} +/** 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 PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: 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 PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - 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 PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: 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 PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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 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 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 ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: 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 ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - 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 ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: 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 ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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 SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: 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 SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: 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 `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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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 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 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 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 `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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 `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 `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 `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 `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 `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 `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 `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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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 `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 `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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ -export interface Base64EncodedBinaryFilter { +/** 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 `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 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 CopyGraphPayload { + clientMutationId?: string | null; + result?: 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 CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + 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 DatabaseAddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgeAndSavePayload { + 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 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 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 DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +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; +} +export type DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | null; +} +export type DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | null; +} +export type DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: 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 ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + 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 ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: 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 InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + 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 InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + 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 InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | 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 InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | 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 InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: 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 InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + 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 InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodesAtPathsPayload { + 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 InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInitEmptyRepoPayload { + 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 PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: 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 PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + 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 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; } -/** 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 PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | 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 PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + 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, 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 PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +export type PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + 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; - /** 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 PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + 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 PlatformResourceInstallationsUpgradePayloadSelect = { + 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; } -/** 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 ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: 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 `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 ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + 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 ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + 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 ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: 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 SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: 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 SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: 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 StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | 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 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 `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 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 `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 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; +} +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; +} +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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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; } -/** 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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 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 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 `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 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; } -/** 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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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; +} +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 `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 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 `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 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 `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 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; } -/** 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 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 `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 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; +} +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 `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 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 `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 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 `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 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 `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 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; } -/** 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 DeleteFunctionGraphCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; +}; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | 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 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; +} +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; +} +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; +} +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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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 `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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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 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 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 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 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; +} +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 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 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 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 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 `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 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 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 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; +} +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; +} +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; } -/** 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 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; +} +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; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +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 AddEdgePayloadSelect = { +export type CreateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +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 AddEdgeAndSavePayloadSelect = { +export type UpdateInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodePayload { +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 AddNodePayloadSelect = { +export type DeleteInfraStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateIntegrationProviderPayload { clientMutationId?: string | null; - result?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - result?: 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 DeleteNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +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 InfraInsertNodeAtPathPayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InfraSetDataAtPathPayload { +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 InfraSetDataAtPathPayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InitEmptyRepoPayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +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 InsertNodeAtPathPayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +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 PlatformInfraInsertNodeAtPathPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuild?: { + select: PlatformBuildSelect; + }; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; + }; }; -export interface PlatformInfraSetDataAtPathPayload { +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 PlatformInfraSetDataAtPathPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; + platformBuildStep?: { + select: PlatformBuildStepSelect; + }; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface CreatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; +} +export type CreatePlatformFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; +} +export type UpdatePlatformFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; +}; +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { 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 UpdatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface DeletePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; + }; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type SaveGraphPayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; }; -export interface SetDataAtPathPayload { +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 SetDataAtPathPayloadSelect = { +export type CreatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface StartExecutionPayload { +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 StartExecutionPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; }; -export interface CreateDbPresetPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformInfraRef?: { + select: PlatformInfraRefSelect; + }; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; -}; -export interface CreateNamespacePayload { - clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; +}; +export interface CreatePlatformRegistryGrantPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformResource?: { + select: PlatformResourceSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformResourceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformResourceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformResourceEvent?: { + select: PlatformResourceEventSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceInstallation` that was created by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceInstallation` that was updated by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformResourceInstallationPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformResourceInstallation` that was deleted by this mutation. */ + platformResourceInstallation?: PlatformResourceInstallation | null; + platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformResourceInstallationPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformResourceInstallation?: { + select: PlatformResourceInstallationSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformResourceInstallationEdge?: { + select: PlatformResourceInstallationEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageLog` that was created by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageLog` that was updated by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformResourceUsageLogPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ + platformResourceUsageLog?: PlatformResourceUsageLog | null; + platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformResourceUsageLogPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformResourceUsageLog?: { + select: PlatformResourceUsageLogSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformResourceUsageLogEdge?: { + select: PlatformResourceUsageLogEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformResourceUsageSummary` that was created by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformResourceUsageSummaryPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ + platformResourceUsageSummary?: PlatformResourceUsageSummary | null; + platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformResourceUsageSummaryPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformResourceUsageSummary?: { + select: PlatformResourceUsageSummarySelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformResourceUsageSummaryEdge?: { + select: PlatformResourceUsageSummaryEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEndpoint` that was created by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { +export type CreatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ + platformWebhookEndpoint?: PlatformWebhookEndpoint | null; + platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformWebhookEndpointPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformWebhookEndpoint?: { + select: PlatformWebhookEndpointSelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformWebhookEndpointEdge?: { + select: PlatformWebhookEndpointEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformWebhookEvent` that was created by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdatePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformWebhookEvent` that was updated by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdatePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface DeletePlatformInfraRefPayload { +export interface DeletePlatformWebhookEventPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was deleted by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformWebhookEvent` that was deleted by this mutation. */ + platformWebhookEvent?: PlatformWebhookEvent | null; + platformWebhookEventEdge?: PlatformWebhookEventEdge | null; } -export type DeletePlatformInfraRefPayloadSelect = { +export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdateProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdateProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface DeletePlatformInfraStorePayload { +export interface DeleteProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was deleted by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; } -export type DeletePlatformInfraStorePayloadSelect = { +export type DeleteProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + proposalComment?: { + select: ProposalCommentSelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateProposalPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateProposalPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposal?: { + select: ProposalSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateProposalPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateProposalPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposal?: { + select: ProposalSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteProposalPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteProposalPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + proposal?: { + select: ProposalSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + proposalEdge?: { + select: ProposalEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdateProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdateProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeleteProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeleteProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + proposalFileView?: { + select: ProposalFileViewSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformResourcePayload { +export interface CreateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was created by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type CreatePlatformResourcePayloadSelect = { +export type CreateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformResourcePayload { +export interface UpdateProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was updated by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type UpdatePlatformResourcePayloadSelect = { +export type UpdateProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface DeletePlatformResourcePayload { +export interface DeleteProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformResource` that was deleted by this mutation. */ - platformResource?: PlatformResource | null; - platformResourceEdge?: PlatformResourceEdge | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; } -export type DeletePlatformResourcePayloadSelect = { +export type DeleteProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformResource?: { - select: PlatformResourceSelect; + proposalReaction?: { + select: ProposalReactionSelect; }; - platformResourceEdge?: { - select: PlatformResourceEdgeSelect; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; }; }; -export interface CreatePlatformResourceDefinitionPayload { +export interface CreateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was created by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type CreatePlatformResourceDefinitionPayloadSelect = { +export type CreateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformResourceDefinitionPayload { +export interface UpdateProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was updated by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type UpdatePlatformResourceDefinitionPayloadSelect = { +export type UpdateProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface DeletePlatformResourceDefinitionPayload { +export interface DeleteProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformResourceDefinition` that was deleted by this mutation. */ - platformResourceDefinition?: PlatformResourceDefinition | null; - platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; } -export type DeletePlatformResourceDefinitionPayloadSelect = { +export type DeleteProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformResourceDefinition?: { - select: PlatformResourceDefinitionSelect; + proposalReview?: { + select: ProposalReviewSelect; }; - platformResourceDefinitionEdge?: { - select: PlatformResourceDefinitionEdgeSelect; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; }; }; -export interface CreatePlatformResourceEventPayload { +export interface CreateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was created by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type CreatePlatformResourceEventPayloadSelect = { +export type CreateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformResourceEventPayload { +export interface UpdateProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was updated by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type UpdatePlatformResourceEventPayloadSelect = { +export type UpdateProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformResourceEventPayload { +export interface DeleteProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformResourceEvent` that was deleted by this mutation. */ - platformResourceEvent?: PlatformResourceEvent | null; - platformResourceEventEdge?: PlatformResourceEventEdge | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; } -export type DeletePlatformResourceEventPayloadSelect = { +export type DeleteProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformResourceEvent?: { - select: PlatformResourceEventSelect; + proposalsChunk?: { + select: ProposalsChunkSelect; }; - platformResourceEventEdge?: { - select: PlatformResourceEventEdgeSelect; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformResourceInstallationPayload { +export interface CreateRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was created by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type CreatePlatformResourceInstallationPayloadSelect = { +export type CreateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformResourceInstallationPayload { - clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was updated by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; +export interface UpdateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type UpdatePlatformResourceInstallationPayloadSelect = { +export type UpdateRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface DeletePlatformResourceInstallationPayload { +export interface DeleteRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformResourceInstallation` that was deleted by this mutation. */ - platformResourceInstallation?: PlatformResourceInstallation | null; - platformResourceInstallationEdge?: PlatformResourceInstallationEdge | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; } -export type DeletePlatformResourceInstallationPayloadSelect = { +export type DeleteRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformResourceInstallation?: { - select: PlatformResourceInstallationSelect; + registryBinding?: { + select: RegistryBindingSelect; }; - platformResourceInstallationEdge?: { - select: PlatformResourceInstallationEdgeSelect; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; }; }; -export interface CreatePlatformResourceStatusCheckPayload { +export interface CreateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was created by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type CreatePlatformResourceStatusCheckPayloadSelect = { +export type CreateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registry?: { + select: RegistrySelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface UpdatePlatformResourceStatusCheckPayload { +export interface UpdateRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type UpdatePlatformResourceStatusCheckPayloadSelect = { +export type UpdateRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registry?: { + select: RegistrySelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface DeletePlatformResourceStatusCheckPayload { +export interface DeleteRegistryPayload { clientMutationId?: string | null; - /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ - platformResourceStatusCheck?: PlatformResourceStatusCheck | null; - platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; } -export type DeletePlatformResourceStatusCheckPayloadSelect = { +export type DeleteRegistryPayloadSelect = { clientMutationId?: boolean; - platformResourceStatusCheck?: { - select: PlatformResourceStatusCheckSelect; + registry?: { + select: RegistrySelect; }; - platformResourceStatusCheckEdge?: { - select: PlatformResourceStatusCheckEdgeSelect; + registryEdge?: { + select: RegistryEdgeSelect; }; }; -export interface CreatePlatformResourceUsageLogPayload { +export interface CreateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was created by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type CreatePlatformResourceUsageLogPayloadSelect = { +export type CreateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageLogPayload { +export interface UpdateRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was updated by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type UpdatePlatformResourceUsageLogPayloadSelect = { +export type UpdateRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface DeletePlatformResourceUsageLogPayload { +export interface DeleteRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageLog` that was deleted by this mutation. */ - platformResourceUsageLog?: PlatformResourceUsageLog | null; - platformResourceUsageLogEdge?: PlatformResourceUsageLogEdge | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; } -export type DeletePlatformResourceUsageLogPayloadSelect = { +export type DeleteRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageLog?: { - select: PlatformResourceUsageLogSelect; + registryGrant?: { + select: RegistryGrantSelect; }; - platformResourceUsageLogEdge?: { - select: PlatformResourceUsageLogEdgeSelect; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; }; }; -export interface CreatePlatformResourceUsageSummaryPayload { +export interface CreateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was created by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type CreatePlatformResourceUsageSummaryPayloadSelect = { +export type CreateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface UpdatePlatformResourceUsageSummaryPayload { +export interface UpdateRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was updated by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type UpdatePlatformResourceUsageSummaryPayloadSelect = { +export type UpdateRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface DeletePlatformResourceUsageSummaryPayload { +export interface DeleteRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformResourceUsageSummary` that was deleted by this mutation. */ - platformResourceUsageSummary?: PlatformResourceUsageSummary | null; - platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; } -export type DeletePlatformResourceUsageSummaryPayloadSelect = { +export type DeleteRepositoryPayloadSelect = { clientMutationId?: boolean; - platformResourceUsageSummary?: { - select: PlatformResourceUsageSummarySelect; + repository?: { + select: RepositorySelect; }; - platformResourceUsageSummaryEdge?: { - select: PlatformResourceUsageSummaryEdgeSelect; + repositoryEdge?: { + select: RepositoryEdgeSelect; }; }; -export interface CreatePlatformWebhookEndpointPayload { +export interface CreateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was created by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type CreatePlatformWebhookEndpointPayloadSelect = { +export type CreateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformWebhookEndpointPayload { +export interface UpdateRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type UpdatePlatformWebhookEndpointPayloadSelect = { +export type UpdateRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -export interface DeletePlatformWebhookEndpointPayload { +export interface DeleteRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ - platformWebhookEndpoint?: PlatformWebhookEndpoint | null; - platformWebhookEndpointEdge?: PlatformWebhookEndpointEdge | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; } -export type DeletePlatformWebhookEndpointPayloadSelect = { +export type DeleteRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformWebhookEndpoint?: { - select: PlatformWebhookEndpointSelect; + repositoryEvent?: { + select: RepositoryEventSelect; }; - platformWebhookEndpointEdge?: { - select: PlatformWebhookEndpointEdgeSelect; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; }; }; -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 { @@ -16813,43 +31911,211 @@ export interface CreateWebhookEventPayload { webhookEvent?: WebhookEvent | null; webhookEventEdge?: WebhookEventEdge | null; } -export type CreateWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; +export type CreateWebhookEventPayloadSelect = { + clientMutationId?: boolean; + webhookEvent?: { + select: WebhookEventSelect; + }; + webhookEventEdge?: { + select: WebhookEventEdgeSelect; + }; +}; +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 `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; +} +export type InfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraCommitSelect; + }; +}; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { + cursor?: string | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; +} +export type FunctionGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionGraphCommitSelect; + }; +}; +/** A `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 `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; }; - 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; }; }; -export interface UpdateWebhookEventPayload { - clientMutationId?: string | null; - /** The `WebhookEvent` that was updated by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; +/** 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 UpdateWebhookEventPayloadSelect = { - clientMutationId?: boolean; - webhookEvent?: { - select: WebhookEventSelect; +export type DatabaseFunctionGraphExecutionOutputEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseFunctionGraphExecutionOutputSelect; }; - webhookEventEdge?: { - select: WebhookEventEdgeSelect; +}; +/** 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 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 +32202,6 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { - cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; -} -export type FunctionGraphCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionGraphCommitSelect; - }; -}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -17056,16 +32310,28 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { +/** A `Image` edge in the connection. */ +export interface ImageEdge { cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; } -export type InfraCommitEdgeSelect = { +export type ImageEdgeSelect = { cursor?: boolean; node?: { - select: InfraCommitSelect; + 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. */ @@ -17140,6 +32406,30 @@ 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 `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17236,16 +32526,28 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; } -export type PlatformInfraCommitEdgeSelect = { +export type PlatformImageEdgeSelect = { cursor?: boolean; node?: { - select: PlatformInfraCommitSelect; + 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. */ @@ -17284,6 +32586,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 +32634,150 @@ 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 `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 +32886,150 @@ 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 `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/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..f3400f0040 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -3,6 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; +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 +33,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 +43,8 @@ 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 { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -37,13 +53,29 @@ 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 { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; @@ -58,6 +90,18 @@ 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 { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; 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/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/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/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/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/mutation/index.ts b/sdk/constructive-cli/src/compute/orm/mutation/index.ts index c5bc975047..151e707fad 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -12,16 +12,40 @@ import type { AddNodeInput, AddNodeAndSaveInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, InfraInsertNodeAtPathInput, + InfraInsertNodesAtPathsInput, + InfraSetAndCommitInput, InfraSetDataAtPathInput, + InfraSetManyAndCommitInput, InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, PlatformResourceInstallationsInstallInput, PlatformResourceInstallationsRollbackInput, PlatformResourceInstallationsUninstallInput, @@ -32,7 +56,9 @@ import type { ResourceInstallationsUninstallInput, ResourceInstallationsUpgradeInput, SaveGraphInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, StartExecutionInput, ValidateFunctionGraphInput, AddEdgePayload, @@ -40,16 +66,40 @@ import type { AddNodePayload, AddNodeAndSavePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, InfraInsertNodeAtPathPayload, + InfraInsertNodesAtPathsPayload, + InfraSetAndCommitPayload, InfraSetDataAtPathPayload, + InfraSetManyAndCommitPayload, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, PlatformResourceInstallationsInstallPayload, PlatformResourceInstallationsRollbackPayload, PlatformResourceInstallationsUninstallPayload, @@ -60,7 +110,9 @@ import type { ResourceInstallationsUninstallPayload, ResourceInstallationsUpgradePayload, SaveGraphPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, StartExecutionPayload, ValidateFunctionGraphPayload, AddEdgePayloadSelect, @@ -68,16 +120,40 @@ import type { AddNodePayloadSelect, AddNodeAndSavePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodesAtPathsPayloadSelect, + InfraSetAndCommitPayloadSelect, InfraSetDataAtPathPayloadSelect, + InfraSetManyAndCommitPayloadSelect, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, PlatformResourceInstallationsInstallPayloadSelect, PlatformResourceInstallationsRollbackPayloadSelect, PlatformResourceInstallationsUninstallPayloadSelect, @@ -88,7 +164,9 @@ import type { ResourceInstallationsUninstallPayloadSelect, ResourceInstallationsUpgradePayloadSelect, SaveGraphPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, StartExecutionPayloadSelect, ValidateFunctionGraphPayloadSelect, } from '../input-types'; @@ -108,6 +186,57 @@ export interface AddNodeAndSaveVariables { 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 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 ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -120,24 +249,45 @@ export interface InfraInitEmptyRepoVariables { export interface InfraInsertNodeAtPathVariables { input: InfraInsertNodeAtPathInput; } +export interface InfraInsertNodesAtPathsVariables { + input: InfraInsertNodesAtPathsInput; +} +export interface InfraSetAndCommitVariables { + input: InfraSetAndCommitInput; +} export interface InfraSetDataAtPathVariables { input: InfraSetDataAtPathInput; } +export interface InfraSetManyAndCommitVariables { + input: InfraSetManyAndCommitInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} export interface PlatformResourceInstallationsInstallVariables { input: PlatformResourceInstallationsInstallInput; } @@ -175,9 +325,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 +346,653 @@ 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' + ), + }), + 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' + ), + }), + 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<{ - addEdge: InferSelectResult | null; + databaseGraphSetManyAndCommit: InferSelectResult< + DatabaseGraphSetManyAndCommitPayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'AddEdge', - fieldName: 'addEdge', + operationName: 'DatabaseGraphSetManyAndCommit', + fieldName: 'databaseGraphSetManyAndCommit', ...buildCustomDocument( 'mutation', - 'AddEdge', - 'addEdge', + 'DatabaseGraphSetManyAndCommit', + 'databaseGraphSetManyAndCommit', options.select, args, [ { name: 'input', - type: 'AddEdgeInput!', + type: 'DatabaseGraphSetManyAndCommitInput!', }, ], connectionFieldsMap, - 'AddEdgePayload' + 'DatabaseGraphSetManyAndCommitPayload' ), }), - addEdgeAndSave: ( - args: AddEdgeAndSaveVariables, + databaseImportDefinitions: ( + args: DatabaseImportDefinitionsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addEdgeAndSave: InferSelectResult | null; + databaseImportDefinitions: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddEdgeAndSave', - fieldName: 'addEdgeAndSave', + operationName: 'DatabaseImportDefinitions', + fieldName: 'databaseImportDefinitions', ...buildCustomDocument( 'mutation', - 'AddEdgeAndSave', - 'addEdgeAndSave', + 'DatabaseImportDefinitions', + 'databaseImportDefinitions', options.select, args, [ { name: 'input', - type: 'AddEdgeAndSaveInput!', + type: 'DatabaseImportDefinitionsInput!', }, ], connectionFieldsMap, - 'AddEdgeAndSavePayload' + 'DatabaseImportDefinitionsPayload' ), }), - addNode: ( - args: AddNodeVariables, + databaseImportGraphJson: ( + args: DatabaseImportGraphJsonVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addNode: InferSelectResult | null; + databaseImportGraphJson: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddNode', - fieldName: 'addNode', + operationName: 'DatabaseImportGraphJson', + fieldName: 'databaseImportGraphJson', ...buildCustomDocument( 'mutation', - 'AddNode', - 'addNode', + 'DatabaseImportGraphJson', + 'databaseImportGraphJson', options.select, args, [ { name: 'input', - type: 'AddNodeInput!', + type: 'DatabaseImportGraphJsonInput!', }, ], connectionFieldsMap, - 'AddNodePayload' + 'DatabaseImportGraphJsonPayload' ), }), - addNodeAndSave: ( - args: AddNodeAndSaveVariables, + databaseSaveGraph: ( + args: DatabaseSaveGraphVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - addNodeAndSave: InferSelectResult | null; + databaseSaveGraph: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AddNodeAndSave', - fieldName: 'addNodeAndSave', + operationName: 'DatabaseSaveGraph', + fieldName: 'databaseSaveGraph', ...buildCustomDocument( 'mutation', - 'AddNodeAndSave', - 'addNodeAndSave', + 'DatabaseSaveGraph', + 'databaseSaveGraph', options.select, args, [ { name: 'input', - type: 'AddNodeAndSaveInput!', + type: 'DatabaseSaveGraphInput!', }, ], connectionFieldsMap, - 'AddNodeAndSavePayload' + 'DatabaseSaveGraphPayload' ), }), - copyGraph: ( - args: CopyGraphVariables, + databaseStartExecution: ( + args: DatabaseStartExecutionVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - copyGraph: InferSelectResult | null; + databaseStartExecution: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CopyGraph', - fieldName: 'copyGraph', + operationName: 'DatabaseStartExecution', + fieldName: 'databaseStartExecution', ...buildCustomDocument( 'mutation', - 'CopyGraph', - 'copyGraph', + 'DatabaseStartExecution', + 'databaseStartExecution', options.select, args, [ { name: 'input', - type: 'CopyGraphInput!', + type: 'DatabaseStartExecutionInput!', }, ], connectionFieldsMap, - 'CopyGraphPayload' + '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' ), }), importDefinitions: ( @@ -447,6 +1111,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 +1198,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 +1285,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { @@ -595,6 +1375,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 +1465,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 +1819,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 +1877,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..cd19f41529 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:** 8 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 17 **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..70f25c2c3d 100644 --- a/sdk/constructive-cli/src/config/cli/README.md +++ b/sdk/constructive-cli/src/config/cli/README.md @@ -27,10 +27,17 @@ csdk auth set-token | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | | `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 | @@ -108,6 +115,7 @@ CRUD operations for Config records. |-------|------| | `annotations` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `databaseId` | UUID | | `description` | String | | `expiresAt` | Datetime | @@ -118,11 +126,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 +215,7 @@ CRUD operations for PlatformConfig records. |-------|------| | `annotations` | JSON | | `createdAt` | Datetime | +| `createdByPrincipal` | UUID | | `description` | String | | `expiresAt` | Datetime | | `id` | UUID | @@ -151,9 +225,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 +286,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 +360,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 @@ -329,7 +495,6 @@ platformInternalSecretsDel | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretName` | String | @@ -343,7 +508,6 @@ platformInternalSecretsRemoveArray | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretNames` | String | @@ -358,7 +522,6 @@ platformInternalSecretsRotate |----------|------| | `--input.algo` | String | | `--input.clientMutationId` | String | - | `--input.namespaceId` | UUID | | `--input.realm` | String | | `--input.secretName` | String | | `--input.secretValue` | String | @@ -375,7 +538,6 @@ platformInternalSecretsSet | `--input.algo` | String | | `--input.clientMutationId` | String | | `--input.secretName` | String | - | `--input.secretNamespaceId` | UUID | | `--input.secretRealm` | String | | `--input.secretValue` | String | diff --git a/sdk/constructive-cli/src/config/cli/commands.ts b/sdk/constructive-cli/src/config/cli/commands.ts index 8a9b2cd4fd..f96fd9abcb 100644 --- a/sdk/constructive-cli/src/config/cli/commands.ts +++ b/sdk/constructive-cli/src/config/cli/commands.ts @@ -7,10 +7,17 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; 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'; @@ -35,10 +42,17 @@ const createCommandMap: () => Record< context: contextCmd, auth: authCmd, 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, @@ -54,7 +68,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 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 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'; export const commands = async ( argv: Partial>, prompter: Inquirerer, 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/orm/README.md b/sdk/constructive-cli/src/config/orm/README.md index 90c6f61a0b..77737e6b1d 100644 --- a/sdk/constructive-cli/src/config/orm/README.md +++ b/sdk/constructive-cli/src/config/orm/README.md @@ -22,7 +22,10 @@ const db = createClient({ | Model | Operations | |-------|------------| | `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 | @@ -39,6 +42,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 +53,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 +75,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 +164,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 +174,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 +196,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 +249,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 +258,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 +356,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 @@ -304,7 +488,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 +503,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 +518,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 +533,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` diff --git a/sdk/constructive-cli/src/config/orm/index.ts b/sdk/constructive-cli/src/config/orm/index.ts index bf16135b3c..bdd6acef44 100644 --- a/sdk/constructive-cli/src/config/orm/index.ts +++ b/sdk/constructive-cli/src/config/orm/index.ts @@ -6,7 +6,10 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { ConfigModel } from './models/config'; +import { InternalConfigModel } from './models/internalConfig'; +import { InternalSecretModel } from './models/internalSecret'; import { PlatformConfigModel } from './models/platformConfig'; +import { PlatformInternalConfigModel } from './models/platformInternalConfig'; import { PlatformInternalSecretModel } from './models/platformInternalSecret'; import { PlatformSecretModel } from './models/platformSecret'; import { SecretModel } from './models/secret'; @@ -44,7 +47,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { config: new ConfigModel(client), + internalConfig: new InternalConfigModel(client), + internalSecret: new InternalSecretModel(client), platformConfig: new PlatformConfigModel(client), + platformInternalConfig: new PlatformInternalConfigModel(client), platformInternalSecret: new PlatformInternalSecretModel(client), platformSecret: new PlatformSecretModel(client), secret: new SecretModel(client), diff --git a/sdk/constructive-cli/src/config/orm/input-types.ts b/sdk/constructive-cli/src/config/orm/input-types.ts index dded259245..b1619f849b 100644 --- a/sdk/constructive-cli/src/config/orm/input-types.ts +++ b/sdk/constructive-cli/src/config/orm/input-types.ts @@ -236,6 +236,7 @@ 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 +256,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 +321,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 +355,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -339,13 +403,20 @@ export interface PageInfo { } // ============ Entity Relation Types ============ 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 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; @@ -354,6 +425,7 @@ export type SecretWithRelations = Secret & SecretRelations; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +436,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 +479,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 +502,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -430,6 +544,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 +570,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 +644,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 +668,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 +718,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. */ @@ -591,6 +803,8 @@ export type 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' @@ -614,13 +828,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 +912,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 +953,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -727,6 +1023,7 @@ export interface CreateConfigInput { clientMutationId?: string; config: { annotations?: Record; + createdByPrincipal?: string; databaseId: string; description?: string; expiresAt?: string; @@ -735,11 +1032,13 @@ export interface CreateConfigInput { 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; @@ -748,6 +1047,7 @@ export interface ConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdateConfigInput { @@ -759,10 +1059,77 @@ 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; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface InternalConfigPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdateInternalConfigInput { + clientMutationId?: string; + id: string; + internalConfigPatch: InternalConfigPatch; +} +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; +} export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1137,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 +1151,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1163,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 +1202,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1212,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 +1298,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; @@ -933,20 +1361,17 @@ export interface _SecretsSetInput { } 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 +1380,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1426,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 +1446,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 +1480,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 +1498,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; } @@ -1201,6 +1705,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 +1795,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 +1852,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 +1876,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/index.ts b/sdk/constructive-cli/src/config/orm/models/index.ts index 0823cce0ad..05b2d25428 100644 --- a/sdk/constructive-cli/src/config/orm/models/index.ts +++ b/sdk/constructive-cli/src/config/orm/models/index.ts @@ -4,7 +4,10 @@ * DO NOT EDIT - changes will be overwritten */ 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..03f9c370c9 100644 --- a/sdk/constructive-cli/src/config/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/config/orm/mutation/index.ts @@ -7,6 +7,10 @@ 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, @@ -20,6 +24,10 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, @@ -33,6 +41,10 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, @@ -48,6 +60,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; } @@ -96,6 +120,125 @@ export interface ProvisionBucketVariables { } 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: { 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..6828fa1dcb 100644 --- a/sdk/constructive-cli/src/infra/cli/README.md +++ b/sdk/constructive-cli/src/infra/cli/README.md @@ -26,6 +26,7 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `content-preset` | contentPreset CRUD operations | | `db-preset` | dbPreset CRUD operations | | `namespace` | namespace CRUD operations | | `namespace-event` | namespaceEvent CRUD operations | @@ -38,7 +39,10 @@ csdk auth set-token | `platform-namespace-event` | platformNamespaceEvent CRUD operations | | `platform-infra-init-empty-repo` | platformInfraInitEmptyRepo | | `platform-infra-insert-node-at-path` | platformInfraInsertNodeAtPath | +| `platform-infra-insert-nodes-at-paths` | platformInfraInsertNodesAtPaths | +| `platform-infra-set-and-commit` | platformInfraSetAndCommit | | `platform-infra-set-data-at-path` | platformInfraSetDataAtPath | +| `platform-infra-set-many-and-commit` | platformInfraSetManyAndCommit | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -85,6 +89,38 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `content-preset` + +CRUD operations for ContentPreset records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all contentPreset records | +| `find-first` | Find first matching contentPreset record | +| `get` | Get a contentPreset by id | +| `create` | Create a new contentPreset | +| `update` | Update an existing contentPreset | +| `delete` | Delete a contentPreset | + +**Fields:** + +| Field | Type | +|-------|------| +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | +| `id` | UUID | +| `kind` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `definition`, `kind`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` + ### `db-preset` CRUD operations for DbPreset records. @@ -404,6 +440,42 @@ platformInfraInsertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-insert-nodes-at-paths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + +### `platform-infra-set-and-commit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `platform-infra-set-data-at-path` platformInfraSetDataAtPath @@ -419,6 +491,22 @@ platformInfraSetDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-set-many-and-commit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/infra/cli/commands.ts b/sdk/constructive-cli/src/infra/cli/commands.ts index 9b61cfeec5..a40b01b781 100644 --- a/sdk/constructive-cli/src/infra/cli/commands.ts +++ b/sdk/constructive-cli/src/infra/cli/commands.ts @@ -6,6 +6,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import contentPresetCmd from './commands/content-preset'; import dbPresetCmd from './commands/db-preset'; import namespaceCmd from './commands/namespace'; import namespaceEventCmd from './commands/namespace-event'; @@ -18,7 +19,10 @@ import platformNamespaceCmd from './commands/platform-namespace'; import platformNamespaceEventCmd from './commands/platform-namespace-event'; import platformInfraInitEmptyRepoCmd from './commands/platform-infra-init-empty-repo'; import platformInfraInsertNodeAtPathCmd from './commands/platform-infra-insert-node-at-path'; +import platformInfraInsertNodesAtPathsCmd from './commands/platform-infra-insert-nodes-at-paths'; +import platformInfraSetAndCommitCmd from './commands/platform-infra-set-and-commit'; import platformInfraSetDataAtPathCmd from './commands/platform-infra-set-data-at-path'; +import platformInfraSetManyAndCommitCmd from './commands/platform-infra-set-many-and-commit'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -30,6 +34,7 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'content-preset': contentPresetCmd, 'db-preset': dbPresetCmd, namespace: namespaceCmd, 'namespace-event': namespaceEventCmd, @@ -42,11 +47,14 @@ const createCommandMap: () => Record< 'platform-namespace-event': platformNamespaceEventCmd, 'platform-infra-init-empty-repo': platformInfraInitEmptyRepoCmd, 'platform-infra-insert-node-at-path': platformInfraInsertNodeAtPathCmd, + 'platform-infra-insert-nodes-at-paths': platformInfraInsertNodesAtPathsCmd, + 'platform-infra-set-and-commit': platformInfraSetAndCommitCmd, 'platform-infra-set-data-at-path': platformInfraSetDataAtPathCmd, + 'platform-infra-set-many-and-commit': platformInfraSetManyAndCommitCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n content-preset contentPreset CRUD operations\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/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/platform-infra-insert-nodes-at-paths.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-insert-nodes-at-paths.ts new file mode 100644 index 0000000000..c2c3323919 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraInsertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { PlatformInfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-insert-nodes-at-paths - platformInfraInsertNodesAtPaths\n\nUsage: platform-infra-insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraInsertNodesAtPaths( + parsedAnswers as unknown as PlatformInfraInsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraInsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraInsertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts new file mode 100644 index 0000000000..444f633f00 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraSetAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-set-and-commit - platformInfraSetAndCommit\n\nUsage: platform-infra-set-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraSetAndCommit( + parsedAnswers as unknown as PlatformInfraSetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraSetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraSetAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts new file mode 100644 index 0000000000..1dadf0ef4f --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-set-many-and-commit - platformInfraSetManyAndCommit\n\nUsage: platform-infra-set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraSetManyAndCommit( + parsedAnswers as unknown as PlatformInfraSetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraSetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraSetManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md index 34848edfdb..860f38ead6 100644 --- a/sdk/constructive-cli/src/infra/orm/README.md +++ b/sdk/constructive-cli/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/infra/orm/index.ts b/sdk/constructive-cli/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-cli/src/infra/orm/index.ts +++ b/sdk/constructive-cli/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-cli/src/infra/orm/input-types.ts b/sdk/constructive-cli/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-cli/src/infra/orm/input-types.ts +++ b/sdk/constructive-cli/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-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..04353e5b5c 100644 --- a/sdk/constructive-cli/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/modules/README.md b/sdk/constructive-cli/src/modules/README.md index a9eae47fc8..2cfb97db57 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:** 87 +- **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..f0b052f739 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 | @@ -84,9 +92,11 @@ csdk auth set-token | `rate-limits-module` | rateLimitsModule CRUD operations | | `realtime-module` | realtimeModule 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 +107,18 @@ csdk auth set-token | `user-auth-module` | userAuthModule CRUD operations | | `user-credentials-module` | userCredentialsModule CRUD operations | | `user-settings-module` | userSettingsModule CRUD operations | +| `user-settings-security-module` | userSettingsSecurityModule CRUD operations | | `user-state-module` | userStateModule CRUD operations | | `users-module` | usersModule CRUD operations | | `webauthn-auth-module` | webauthnAuthModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `webhook-module` | webhookModule CRUD operations | -| `resolve-blueprint-field` | Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. | -| `resolve-blueprint-table` | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | -| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | +| `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. | ## Infrastructure Commands @@ -180,12 +182,17 @@ 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 | | `hasResources` | Boolean | +| `hasRuns` | Boolean | | `id` | UUID | | `messageTableId` | UUID | | `messageTableName` | String | @@ -205,16 +212,19 @@ CRUD operations for AgentModule records. | `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`, `hasResources`, `hasRuns`, `messageTableId`, `messageTableName`, `personaTableId`, `personaTableName`, `planTableId`, `planTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `promptsTableId`, `promptsTableName`, `provisions`, `publicSchemaName`, `resourceTableId`, `resourceTableName`, `resources`, `runTableId`, `runTableName`, `schemaId`, `taskTableId`, `taskTableName`, `threadTableId`, `threadTableName`, `workspaceTableId`, `workspaceTableName` ### `api-surface-module` @@ -244,7 +254,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | | `corsSettingsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -257,7 +267,7 @@ CRUD operations for ApiSurfaceModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `apiSchemasTableId`, `apiSchemasTableName`, `apiSettingsTableId`, `apiSettingsTableName`, `apisTableId`, `apisTableName`, `catalogModuleId`, `corsSettingsTableId`, `corsSettingsTableName`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `apiSchemasTableId`, `apiSchemasTableName`, `apiSettingsTableId`, `apiSettingsTableName`, `apisTableId`, `apisTableName`, `catalogModuleId`, `corsSettingsTableId`, `corsSettingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `publicSchemaName`, `schemaId` ### `app-module` @@ -283,7 +293,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -298,7 +308,7 @@ CRUD operations for AppModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `appComponentsTableId`, `appComponentsTableName`, `appsTableId`, `appsTableName`, `catalogModuleId`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `appComponentsTableId`, `appComponentsTableName`, `appsTableId`, `appsTableName`, `catalogModuleId`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `billing-module` @@ -321,8 +331,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 +357,7 @@ CRUD operations for BillingModule records. | `sweepExpiredSubscriptionsFunction` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `balancesTableId`, `balancesTableName`, `defaultMeterCatalog`, `defaultPermissions`, `ledgerTableId`, `ledgerTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordUsageFunction`, `rollupUsageSummaryFunction`, `schemaId`, `sweepExpiredSubscriptionsFunction` +**Optional create fields (backend defaults):** `apiName`, `balancesTableId`, `balancesTableName`, `defaultCapabilities`, `defaultMeterCatalog`, `ledgerTableId`, `ledgerTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordUsageFunction`, `rollupUsageSummaryFunction`, `schemaId`, `sweepExpiredSubscriptionsFunction` ### `billing-provider-module` @@ -369,16 +379,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | | `billingCustomersTableId` | UUID | | `billingCustomersTableName` | String | +| `billingInvoicesTableId` | UUID | +| `billingInvoicesTableName` | String | | `billingPricesTableId` | UUID | | `billingPricesTableName` | String | | `billingProductsTableId` | UUID | | `billingProductsTableName` | String | +| `billingRefundsTableId` | UUID | +| `billingRefundsTableName` | String | | `billingSubscriptionsTableId` | UUID | | `billingSubscriptionsTableName` | String | | `billingWebhookEventsTableId` | UUID | | `billingWebhookEventsTableName` | String | | `databaseId` | UUID | | `id` | UUID | +| `listPendingUsageSyncFunction` | String | +| `markUsageSyncedFunction` | String | | `prefix` | String | | `pricesTableId` | UUID | | `privateApiName` | String | @@ -386,11 +402,13 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | | `productsTableId` | UUID | | `provider` | String | +| `recordRefundFunction` | String | | `schemaId` | UUID | | `subscriptionsTableId` | UUID | +| `upsertInvoiceFunction` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `prefix`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `schemaId`, `subscriptionsTableId` +**Optional create fields (backend defaults):** `apiName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingInvoicesTableId`, `billingInvoicesTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingRefundsTableId`, `billingRefundsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `listPendingUsageSyncFunction`, `markUsageSyncedFunction`, `prefix`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `recordRefundFunction`, `schemaId`, `subscriptionsTableId`, `upsertInvoiceFunction` ### `blueprint` @@ -498,6 +516,49 @@ CRUD operations for BlueprintTemplate records. **Required create fields:** `definition`, `displayName`, `name`, `ownerId` **Optional create fields (backend defaults):** `categories`, `complexity`, `copyCount`, `definitionHash`, `definitionSchemaVersion`, `description`, `forkCount`, `forkedFromId`, `source`, `tableHashes`, `tags`, `version`, `visibility` +### `capabilities-module` + +CRUD operations for CapabilitiesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all capabilitiesModule records | +| `find-first` | Find first matching capabilitiesModule record | +| `get` | Get a capabilitiesModule by id | +| `create` | Create a new capabilitiesModule | +| `update` | Update an existing capabilitiesModule | +| `delete` | Delete a capabilitiesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorTableId` | UUID | +| `apiName` | String | +| `bitlen` | Int | +| `databaseId` | UUID | +| `defaultTableId` | UUID | +| `defaultTableName` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `getByMask` | String | +| `getMask` | String | +| `getMaskByName` | String | +| `getPaddedMask` | String | +| `id` | UUID | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `publicSchemaName` | String | +| `schemaId` | UUID | +| `scope` | String | +| `tableId` | UUID | +| `tableName` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `bitlen`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `getByMask`, `getMask`, `getMaskByName`, `getPaddedMask`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` + ### `catalog-module` CRUD operations for CatalogModule records. @@ -520,22 +581,28 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | | `appsTableId` | UUID | | `appsTableName` | String | +| `bindingsTableId` | UUID | +| `bindingsTableName` | String | | `bucketsTableId` | UUID | | `bucketsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `domainsTableId` | UUID | | `domainsTableName` | String | | `entityTableId` | UUID | | `functionsTableId` | UUID | | `functionsTableName` | String | | `id` | UUID | +| `imagesTableId` | UUID | +| `imagesTableName` | 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 +623,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`, `appsTableId`, `appsTableName`, `bindingsTableId`, `bindingsTableName`, `bucketsTableId`, `bucketsTableName`, `defaultCapabilities`, `domainsTableId`, `domainsTableName`, `entityTableId`, `functionsTableId`, `functionsTableName`, `imagesTableId`, `imagesTableName`, `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 +690,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 +704,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 +732,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 +847,38 @@ CRUD operations for CryptoAuthModule records. **Required create fields:** `databaseId`, `userField` **Optional create fields (backend defaults):** `addressesTableId`, `cryptoNetwork`, `schemaId`, `secretsTableId`, `sessionCredentialsTableId`, `sessionsTableId`, `signInRecordFailure`, `signInRequestChallenge`, `signInWithChallenge`, `signUpWithKey`, `usersTableId` +### `data-capabilities-field` + +CRUD operations for DataCapabilitiesField records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dataCapabilitiesField records | +| `find-first` | Find first matching dataCapabilitiesField record | +| `get` | Get a dataCapabilitiesField by id | +| `create` | Create a new dataCapabilitiesField | +| `update` | Update an existing dataCapabilitiesField | +| `delete` | Delete a dataCapabilitiesField | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilitiesModuleId` | UUID | +| `databaseId` | UUID | +| `fieldId` | UUID | +| `fromFieldId` | UUID | +| `id` | UUID | +| `mappingFieldId` | UUID | +| `mappingKeyFieldId` | UUID | +| `mappingTableId` | UUID | +| `mode` | String | +| `subsetGuard` | Boolean | +| `tableId` | UUID | + +**Required create fields:** `capabilitiesModuleId`, `databaseId`, `fieldId`, `tableId` +**Optional create fields (backend defaults):** `fromFieldId`, `mappingFieldId`, `mappingKeyFieldId`, `mappingTableId`, `mode`, `subsetGuard` + ### `database-provision-module` CRUD operations for DatabaseProvisionModule records. @@ -785,7 +940,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | | `databaseSettingsTableId` | UUID | | `databaseSettingsTableName` | String | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -804,7 +959,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 +1085,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | | `collectDbTableStatsFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `id` | UUID | | `interval` | String | @@ -955,7 +1110,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 +1215,7 @@ CRUD operations for DomainModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `domainEventsTableId` | UUID | | `domainEventsTableName` | String | | `domainVerificationsTableId` | UUID | @@ -1083,7 +1238,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 +1393,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `eventAggregatesTableId` | UUID | @@ -1206,6 +1402,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | | `eventsTableId` | UUID | | `eventsTableName` | String | +| `expireGrants` | String | | `grantAchievement` | String | | `id` | UUID | | `interval` | String | @@ -1222,9 +1419,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 +1433,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 +1490,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deploymentEventsTableId` | UUID | | `deploymentEventsTableName` | String | | `deploymentsTableId` | UUID | @@ -1280,7 +1511,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 +1534,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | | `attemptsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionLogsTableId` | UUID | @@ -1322,7 +1553,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 +1577,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | | `capabilityBindingsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `definitionsTableId` | UUID | | `definitionsTableName` | String | | `entityField` | String | @@ -1365,7 +1596,7 @@ CRUD operations for FunctionModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `bindingsTableId`, `bindingsTableName`, `capabilityBindingsTableId`, `defaultPermissions`, `definitionsTableId`, `definitionsTableName`, `entityField`, `entityTableId`, `hasCron`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schedulesTableId`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `bindingsTableId`, `bindingsTableName`, `capabilityBindingsTableId`, `defaultCapabilities`, `definitionsTableId`, `definitionsTableName`, `entityField`, `entityTableId`, `hasCron`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schedulesTableId`, `schemaId` ### `graph-execution-module` @@ -1387,7 +1618,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionsTableId` | UUID | @@ -1409,7 +1640,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 +1662,7 @@ CRUD operations for GraphModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `graphsTableId` | UUID | @@ -1448,7 +1679,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 +1704,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `getManagersFunction` | String | @@ -1492,49 +1723,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 +1788,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 +1849,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 +1863,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 +1981,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 +2095,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 +2173,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | | `limitDecrementFunction` | String | | `limitDecrementTrigger` | String | +| `limitDefaults` | JSON | | `limitIncrementFunction` | String | | `limitIncrementTrigger` | String | | `limitUpdateTrigger` | String | @@ -1882,7 +2191,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 +2287,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 +2315,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 +2325,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 +2345,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 +2365,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 +2386,7 @@ CRUD operations for NamespaceModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2050,7 +2405,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 +2427,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | | `channelsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deliveryLogTableId` | UUID | | `entityField` | String | | `hasChannels` | Boolean | @@ -2095,7 +2450,40 @@ CRUD operations for NotificationsModule records. | `userSettingsTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `channelsTableId`, `defaultPermissions`, `deliveryLogTableId`, `entityField`, `hasChannels`, `hasDigestMetadata`, `hasPreferences`, `hasSettingsExtension`, `hasSubscriptions`, `notificationsTableId`, `organizationSettingsTableId`, `ownerTableId`, `preferencesTableId`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStateTableId`, `schemaId`, `suppressionsTableId`, `userSettingsTableId` +**Optional create fields (backend defaults):** `apiName`, `channelsTableId`, `defaultCapabilities`, `deliveryLogTableId`, `entityField`, `hasChannels`, `hasDigestMetadata`, `hasPreferences`, `hasSettingsExtension`, `hasSubscriptions`, `notificationsTableId`, `organizationSettingsTableId`, `ownerTableId`, `preferencesTableId`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStateTableId`, `schemaId`, `suppressionsTableId`, `userSettingsTableId` + +### `oauth-requests-module` + +CRUD operations for OauthRequestsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all oauthRequestsModule records | +| `find-first` | Find first matching oauthRequestsModule record | +| `get` | Get a oauthRequestsModule by id | +| `create` | Create a new oauthRequestsModule | +| `update` | Update an existing oauthRequestsModule | +| `delete` | Delete a oauthRequestsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `oauthAuthorizationRequestsTableId` | UUID | +| `oauthAuthorizationRequestsTableName` | String | +| `pendingIdentityLinksTableId` | UUID | +| `pendingIdentityLinksTableName` | String | +| `prefix` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `scope` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `entityField`, `entityTableId`, `oauthAuthorizationRequestsTableId`, `oauthAuthorizationRequestsTableName`, `pendingIdentityLinksTableId`, `pendingIdentityLinksTableName`, `prefix`, `privateSchemaId`, `privateSchemaName` ### `pages-module` @@ -2137,49 +2525,6 @@ CRUD operations for PagesModule records. **Required create fields:** `databaseId`, `merkleStoreModuleId`, `prefix`, `scope` **Optional create fields (backend defaults):** `apiName`, `entityTableId`, `pagesTableId`, `policies`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName`, `siteSurfaceModuleId`, `sitesTableId`, `storeNamePrefix` -### `permissions-module` - -CRUD operations for PermissionsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all permissionsModule records | -| `find-first` | Find first matching permissionsModule record | -| `get` | Get a permissionsModule by id | -| `create` | Create a new permissionsModule | -| `update` | Update an existing permissionsModule | -| `delete` | Delete a permissionsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `actorTableId` | UUID | -| `apiName` | String | -| `bitlen` | Int | -| `databaseId` | UUID | -| `defaultTableId` | UUID | -| `defaultTableName` | String | -| `entityField` | String | -| `entityTableId` | UUID | -| `getByMask` | String | -| `getMask` | String | -| `getMaskByName` | String | -| `getPaddedMask` | String | -| `id` | UUID | -| `prefix` | String | -| `privateApiName` | String | -| `privateSchemaId` | UUID | -| `privateSchemaName` | String | -| `publicSchemaName` | String | -| `schemaId` | UUID | -| `scope` | String | -| `tableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `bitlen`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `getByMask`, `getMask`, `getMaskByName`, `getPaddedMask`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` - ### `phone-numbers-module` CRUD operations for PhoneNumbersModule records. @@ -2310,22 +2655,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 +2682,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 +2704,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | | `checkRateLimitFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `id` | UUID | | `prefix` | String | | `privateApiName` | String | @@ -2373,7 +2720,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` @@ -2485,6 +2832,65 @@ 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 | +| `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`, `schemaId`, `search`, `workflowsTableId`, `workflowsTableName` + ### `resource-module` CRUD operations for ResourceModule records. @@ -2504,7 +2910,7 @@ CRUD operations for ResourceModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2518,6 +2924,8 @@ CRUD operations for ResourceModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `registryBindingsTableId` | UUID | +| `registryBindingsTableName` | String | | `requirementsStateViewName` | String | | `resolvedRequirementsViewName` | String | | `resourceBillingRollupFunction` | String | @@ -2540,7 +2948,7 @@ CRUD operations for ResourceModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `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 +3002,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 +3020,8 @@ CRUD operations for RouteModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `redirectsTableId` | UUID | +| `redirectsTableName` | String | | `resolverFunctionName` | String | | `routeBindingsTableId` | UUID | | `routeBindingsTableName` | String | @@ -2619,7 +3031,33 @@ CRUD operations for RouteModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultPermissions`, `domainModuleId`, `entityField`, `entityTableId`, `hostnameBindingsTableId`, `hostnameBindingsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `resolverFunctionName`, `routeBindingsTableId`, `routeBindingsTableName`, `routesTableId`, `routesTableName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `appLinksFunctionName`, `catalogModuleId`, `deepLinkFunctionName`, `defaultCapabilities`, `domainModuleId`, `entityField`, `entityTableId`, `hostnameBindingsTableId`, `hostnameBindingsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `redirectsTableId`, `redirectsTableName`, `resolverFunctionName`, `routeBindingsTableId`, `routeBindingsTableName`, `routesTableId`, `routesTableName`, `schemaId` + +### `scope-types-module` + +CRUD operations for ScopeTypesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all scopeTypesModule records | +| `find-first` | Find first matching scopeTypesModule record | +| `get` | Get a scopeTypesModule by id | +| `create` | Create a new scopeTypesModule | +| `update` | Update an existing scopeTypesModule | +| `delete` | Delete a scopeTypesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `id` | UUID | +| `privateSchemaName` | String | +| `schemaId` | UUID | +| `scopeTypesTableId` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `privateSchemaName`, `schemaId`, `scopeTypesTableId` ### `secure-table-provision` @@ -2642,8 +3080,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 +3091,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 +3172,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2763,7 +3203,7 @@ CRUD operations for SiteSurfaceModule records. | `sitesTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `siteAppLinksTableId`, `siteAppLinksTableName`, `siteDeepLinksTableId`, `siteDeepLinksTableName`, `siteErrorPagesTableId`, `siteErrorPagesTableName`, `siteMetadataTableId`, `siteMetadataTableName`, `siteModulesTableId`, `siteModulesTableName`, `siteThemesTableId`, `siteThemesTableName`, `siteWebConfigTableId`, `siteWebConfigTableName`, `sitesTableId`, `sitesTableName` +**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `siteAppLinksTableId`, `siteAppLinksTableName`, `siteDeepLinksTableId`, `siteDeepLinksTableName`, `siteErrorPagesTableId`, `siteErrorPagesTableName`, `siteMetadataTableId`, `siteMetadataTableName`, `siteModulesTableId`, `siteModulesTableName`, `siteThemesTableId`, `siteThemesTableName`, `siteWebConfigTableId`, `siteWebConfigTableName`, `sitesTableId`, `sitesTableName` ### `storage-log-module` @@ -2782,11 +3222,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 +3234,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `storageLogTableId` | UUID | @@ -2804,7 +3243,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 +3270,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | | `confirmUploadDelay` | Interval | | `databaseId` | UUID | +| `defaultCapabilities` | String | | `defaultMaxFileSize` | BigInt | -| `defaultPermissions` | String | | `downloadUrlExpirySeconds` | Int | | `endpoint` | String | | `entityField` | String | @@ -2866,7 +3305,7 @@ CRUD operations for StorageModule records. | `uploadUrlExpirySeconds` | Int | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultMaxFileSize`, `defaultPermissions`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` +**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` @@ -2885,11 +3324,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 +3336,7 @@ CRUD operations for TransferLogModule records. | `privateSchemaName` | String | | `publicSchemaName` | String | | `retention` | String | +| `rollupFunctionName` | String | | `schemaId` | UUID | | `scope` | String | | `transferLogTableId` | UUID | @@ -2907,7 +3345,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` @@ -3014,6 +3452,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 +3623,7 @@ CRUD operations for WebhookModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `functionInvocationModuleId` | UUID | @@ -3180,41 +3646,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:** @@ -3256,135 +3694,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..1b2bf9956f 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'; @@ -64,9 +72,11 @@ import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import rateLimitsModuleCmd from './commands/rate-limits-module'; import realtimeModuleCmd from './commands/realtime-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 +87,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 +114,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 +133,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, @@ -162,9 +172,11 @@ const createCommandMap: () => Record< 'rate-limits-module': rateLimitsModuleCmd, 'realtime-module': realtimeModuleCmd, '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 +187,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 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 Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts index e3dbf7f498..40c8d7d9d0 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,17 @@ 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', hasResources: 'boolean', + hasRuns: 'boolean', id: 'uuid', messageTableId: 'uuid', messageTableName: 'string', @@ -45,13 +50,16 @@ const fieldSchema: FieldSchema = { 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 +116,17 @@ 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, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -133,13 +146,16 @@ async function handleList(argv: Partial>, _prompter: Inq 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 +180,17 @@ 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, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -189,13 +210,16 @@ async function handleFindFirst(argv: Partial>, _prompter 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 +256,17 @@ 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, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -257,13 +286,16 @@ async function handleGet(argv: Partial>, prompter: Inqui 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 +340,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 +366,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 +387,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', @@ -348,6 +408,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', @@ -474,6 +541,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 +568,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 +596,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 +624,17 @@ 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, hasResources: cleanedData.hasResources, + hasRuns: cleanedData.hasRuns, messageTableId: cleanedData.messageTableId, messageTableName: cleanedData.messageTableName, personaTableId: cleanedData.personaTableId, @@ -560,25 +653,33 @@ async function handleCreate(argv: Partial>, prompter: In 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, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -598,13 +699,16 @@ async function handleCreate(argv: Partial>, prompter: In 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 +759,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 +785,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 +806,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', @@ -695,6 +827,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', @@ -823,24 +962,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 +1015,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 +1043,17 @@ 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, hasResources: cleanedData.hasResources, + hasRuns: cleanedData.hasRuns, messageTableId: cleanedData.messageTableId, messageTableName: cleanedData.messageTableName, personaTableId: cleanedData.personaTableId, @@ -907,25 +1072,33 @@ async function handleUpdate(argv: Partial>, prompter: In 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, hasResources: true, + hasRuns: true, id: true, messageTableId: true, messageTableName: true, @@ -945,13 +1118,16 @@ async function handleUpdate(argv: Partial>, prompter: In 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..5f42f57b5f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/app-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/app-module.ts @@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = { appsTableName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -135,7 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -187,7 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -265,8 +265,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -360,7 +360,7 @@ async function handleCreate(argv: Partial>, prompter: In appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -381,7 +381,7 @@ async function handleCreate(argv: Partial>, prompter: In appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -465,8 +465,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -563,7 +563,7 @@ async function handleUpdate(argv: Partial>, prompter: In appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -584,7 +584,7 @@ async function handleUpdate(argv: Partial>, prompter: In appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts index 8a83093f5c..817b921796 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts @@ -20,8 +20,8 @@ const fieldSchema: FieldSchema = { balancesTableId: 'uuid', balancesTableName: 'string', databaseId: 'uuid', + defaultCapabilities: 'string', defaultMeterCatalog: 'json', - defaultPermissions: 'string', id: 'uuid', ledgerTableId: 'uuid', ledgerTableName: 'string', @@ -100,8 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -148,8 +148,8 @@ async function handleFindFirst(argv: Partial>, _prompter balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -208,8 +208,8 @@ async function handleGet(argv: Partial>, prompter: Inqui balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -275,16 +275,16 @@ async function handleCreate(argv: Partial>, prompter: In required: true, }, { - type: 'json', - name: 'defaultMeterCatalog', - message: 'defaultMeterCatalog', + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { - type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + type: 'json', + name: 'defaultMeterCatalog', + message: 'defaultMeterCatalog', required: false, skipPrompt: true, }, @@ -449,8 +449,8 @@ async function handleCreate(argv: Partial>, prompter: In balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMeterCatalog: cleanedData.defaultMeterCatalog, - defaultPermissions: cleanedData.defaultPermissions, ledgerTableId: cleanedData.ledgerTableId, ledgerTableName: cleanedData.ledgerTableName, meterCreditsTableId: cleanedData.meterCreditsTableId, @@ -478,8 +478,8 @@ async function handleCreate(argv: Partial>, prompter: In balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -551,16 +551,16 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, }, { - type: 'json', - name: 'defaultMeterCatalog', - message: 'defaultMeterCatalog', + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { - type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + type: 'json', + name: 'defaultMeterCatalog', + message: 'defaultMeterCatalog', required: false, skipPrompt: true, }, @@ -725,8 +725,8 @@ async function handleUpdate(argv: Partial>, prompter: In balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMeterCatalog: cleanedData.defaultMeterCatalog, - defaultPermissions: cleanedData.defaultPermissions, ledgerTableId: cleanedData.ledgerTableId, ledgerTableName: cleanedData.ledgerTableName, meterCreditsTableId: cleanedData.meterCreditsTableId, @@ -754,8 +754,8 @@ async function handleUpdate(argv: Partial>, prompter: In balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts index 74e9a0d3f1..4a0a7c67c6 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts @@ -19,16 +19,22 @@ const fieldSchema: FieldSchema = { apiName: 'string', billingCustomersTableId: 'uuid', billingCustomersTableName: 'string', + billingInvoicesTableId: 'uuid', + billingInvoicesTableName: 'string', billingPricesTableId: 'uuid', billingPricesTableName: 'string', billingProductsTableId: 'uuid', billingProductsTableName: 'string', + billingRefundsTableId: 'uuid', + billingRefundsTableName: 'string', billingSubscriptionsTableId: 'uuid', billingSubscriptionsTableName: 'string', billingWebhookEventsTableId: 'uuid', billingWebhookEventsTableName: 'string', databaseId: 'uuid', id: 'uuid', + listPendingUsageSyncFunction: 'string', + markUsageSyncedFunction: 'string', prefix: 'string', pricesTableId: 'uuid', privateApiName: 'string', @@ -36,8 +42,10 @@ const fieldSchema: FieldSchema = { processBillingEventFunction: 'string', productsTableId: 'uuid', provider: 'string', + recordRefundFunction: 'string', schemaId: 'uuid', subscriptionsTableId: 'uuid', + upsertInvoiceFunction: 'string', }; const usage = '\nbilling-provider-module \n\nCommands:\n list List billingProviderModule records\n find-first Find first matching billingProviderModule record\n get Get a billingProviderModule by ID\n create Create a new billingProviderModule\n update Update an existing billingProviderModule\n delete Delete a billingProviderModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -93,16 +101,22 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -110,8 +124,10 @@ async function handleList(argv: Partial>, _prompter: Inq processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -139,16 +155,22 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -156,8 +178,10 @@ async function handleFindFirst(argv: Partial>, _prompter processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -197,16 +221,22 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -214,8 +244,10 @@ async function handleGet(argv: Partial>, prompter: Inqui processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -252,6 +284,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingInvoicesTableId', + message: 'billingInvoicesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingInvoicesTableName', + message: 'billingInvoicesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingPricesTableId', @@ -280,6 +326,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingRefundsTableId', + message: 'billingRefundsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingRefundsTableName', + message: 'billingRefundsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingSubscriptionsTableId', @@ -314,6 +374,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'listPendingUsageSyncFunction', + message: 'listPendingUsageSyncFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'markUsageSyncedFunction', + message: 'markUsageSyncedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -363,6 +437,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -377,6 +458,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'upsertInvoiceFunction', + message: 'upsertInvoiceFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -390,15 +478,21 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingInvoicesTableId: cleanedData.billingInvoicesTableId, + billingInvoicesTableName: cleanedData.billingInvoicesTableName, billingPricesTableId: cleanedData.billingPricesTableId, billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingRefundsTableId: cleanedData.billingRefundsTableId, + billingRefundsTableName: cleanedData.billingRefundsTableName, billingSubscriptionsTableId: cleanedData.billingSubscriptionsTableId, billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName, billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId, billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, databaseId: cleanedData.databaseId, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -406,23 +500,31 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -430,8 +532,10 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -474,6 +578,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingInvoicesTableId', + message: 'billingInvoicesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingInvoicesTableName', + message: 'billingInvoicesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingPricesTableId', @@ -502,6 +620,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingRefundsTableId', + message: 'billingRefundsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingRefundsTableName', + message: 'billingRefundsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingSubscriptionsTableId', @@ -536,6 +668,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'listPendingUsageSyncFunction', + message: 'listPendingUsageSyncFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'markUsageSyncedFunction', + message: 'markUsageSyncedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -585,6 +731,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -599,6 +752,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'upsertInvoiceFunction', + message: 'upsertInvoiceFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as BillingProviderModulePatch; @@ -612,15 +772,21 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingInvoicesTableId: cleanedData.billingInvoicesTableId, + billingInvoicesTableName: cleanedData.billingInvoicesTableName, billingPricesTableId: cleanedData.billingPricesTableId, billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingRefundsTableId: cleanedData.billingRefundsTableId, + billingRefundsTableName: cleanedData.billingRefundsTableName, billingSubscriptionsTableId: cleanedData.billingSubscriptionsTableId, billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName, billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId, billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, databaseId: cleanedData.databaseId, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -628,23 +794,31 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -652,8 +826,10 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/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..096084f20d 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts @@ -21,22 +21,28 @@ const fieldSchema: FieldSchema = { apisTableName: 'string', appsTableId: 'uuid', appsTableName: 'string', + bindingsTableId: 'uuid', + bindingsTableName: 'string', bucketsTableId: 'uuid', bucketsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', domainsTableId: 'uuid', domainsTableName: 'string', entityTableId: 'uuid', functionsTableId: 'uuid', functionsTableName: 'string', id: 'uuid', + imagesTableId: 'uuid', + imagesTableName: 'string', namespacesTableId: 'uuid', namespacesTableName: 'string', policies: 'json', privateApiName: 'string', provisions: 'json', publicSchemaName: 'string', + redirectsTableId: 'uuid', + redirectsTableName: 'string', resourceDefinitionsTableId: 'uuid', resourceDefinitionsTableName: 'string', resourceInstallationsTableId: 'uuid', @@ -112,22 +118,28 @@ async function handleList(argv: Partial>, _prompter: Inq apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -171,22 +183,28 @@ async function handleFindFirst(argv: Partial>, _prompter apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -242,22 +260,28 @@ async function handleGet(argv: Partial>, prompter: Inqui apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -326,6 +350,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 +386,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -388,6 +426,20 @@ 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: 'namespacesTableId', @@ -430,6 +482,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', @@ -570,21 +636,27 @@ async function handleCreate(argv: Partial>, prompter: In apisTableName: cleanedData.apisTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, + bindingsTableId: cleanedData.bindingsTableId, + bindingsTableName: cleanedData.bindingsTableName, bucketsTableId: cleanedData.bucketsTableId, bucketsTableName: cleanedData.bucketsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainsTableId: cleanedData.domainsTableId, domainsTableName: cleanedData.domainsTableName, entityTableId: cleanedData.entityTableId, functionsTableId: cleanedData.functionsTableId, functionsTableName: cleanedData.functionsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, 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, @@ -610,22 +682,28 @@ async function handleCreate(argv: Partial>, prompter: In apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, @@ -700,6 +778,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 +814,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -762,6 +854,20 @@ 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: 'namespacesTableId', @@ -804,6 +910,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', @@ -944,21 +1064,27 @@ async function handleUpdate(argv: Partial>, prompter: In apisTableName: cleanedData.apisTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, + bindingsTableId: cleanedData.bindingsTableId, + bindingsTableName: cleanedData.bindingsTableName, bucketsTableId: cleanedData.bucketsTableId, bucketsTableName: cleanedData.bucketsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainsTableId: cleanedData.domainsTableId, domainsTableName: cleanedData.domainsTableName, entityTableId: cleanedData.entityTableId, functionsTableId: cleanedData.functionsTableId, functionsTableName: cleanedData.functionsTableName, + imagesTableId: cleanedData.imagesTableId, + imagesTableName: cleanedData.imagesTableName, 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, @@ -984,22 +1110,28 @@ async function handleUpdate(argv: Partial>, prompter: In apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, + imagesTableId: true, + imagesTableName: 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-settings-module.ts b/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts index 0474b85a67..74f7396187 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', databaseSettingsTableId: 'uuid', databaseSettingsTableName: 'string', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -93,7 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -138,7 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -256,8 +256,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -379,7 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, databaseSettingsTableId: cleanedData.databaseSettingsTableId, databaseSettingsTableName: cleanedData.databaseSettingsTableName, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -401,7 +401,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -468,8 +468,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -591,7 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, databaseSettingsTableId: cleanedData.databaseSettingsTableId, databaseSettingsTableName: cleanedData.databaseSettingsTableName, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -613,7 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index 365c5a96c3..491f743647 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { collectDbQueryStatsFunction: 'string', collectDbTableStatsFunction: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', id: 'uuid', interval: 'string', @@ -99,7 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -146,7 +146,7 @@ async function handleFindFirst(argv: Partial>, _prompter collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -205,7 +205,7 @@ async function handleGet(argv: Partial>, prompter: Inqui collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -272,8 +272,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -437,7 +437,7 @@ async function handleCreate(argv: Partial>, prompter: In collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, interval: cleanedData.interval, prefix: cleanedData.prefix, @@ -467,7 +467,7 @@ async function handleCreate(argv: Partial>, prompter: In collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -540,8 +540,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -705,7 +705,7 @@ async function handleUpdate(argv: Partial>, prompter: In collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, interval: cleanedData.interval, prefix: cleanedData.prefix, @@ -735,7 +735,7 @@ async function handleUpdate(argv: Partial>, prompter: In collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts index 7022a32c40..5b7d9e2ed3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', domainEventsTableId: 'uuid', domainEventsTableName: 'string', domainVerificationsTableId: 'uuid', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -139,7 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -253,8 +253,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -403,7 +403,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -428,7 +428,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -492,8 +492,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -642,7 +642,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -667,7 +667,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts b/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts new file mode 100644 index 0000000000..30d6fb5950 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts @@ -0,0 +1,645 @@ +/** + * CLI commands for EmailSenderModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateEmailSenderModuleInput, + EmailSenderModulePatch, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + defaultCapabilities: 'string', + emailIdentitiesTableId: 'uuid', + emailIdentitiesTableName: 'string', + emailProviderAccountsTableId: 'uuid', + emailProviderAccountsTableName: 'string', + emailSiteIdentitiesTableId: 'uuid', + emailSiteIdentitiesTableName: 'string', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + provisions: 'json', + publicSchemaName: 'string', + schemaId: 'uuid', + scope: 'string', + siteSurfaceModuleId: 'uuid', +}; +const usage = + '\nemail-sender-module \n\nCommands:\n list List emailSenderModule records\n find-first Find first matching emailSenderModule record\n get Get a emailSenderModule by ID\n create Create a new emailSenderModule\n update Update an existing emailSenderModule\n delete Delete a emailSenderModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: EmailSenderModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSenderModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: EmailSenderModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSenderModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.emailSenderModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableId', + message: 'emailIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableName', + message: 'emailIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableId', + message: 'emailProviderAccountsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableName', + message: 'emailProviderAccountsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableId', + message: 'emailSiteIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableName', + message: 'emailSiteIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + { + type: 'text', + name: 'siteSurfaceModuleId', + message: 'siteSurfaceModuleId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateEmailSenderModuleInput['emailSenderModule']; + const client = getClient(); + const result = await client.emailSenderModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + emailIdentitiesTableId: cleanedData.emailIdentitiesTableId, + emailIdentitiesTableName: cleanedData.emailIdentitiesTableName, + emailProviderAccountsTableId: cleanedData.emailProviderAccountsTableId, + emailProviderAccountsTableName: cleanedData.emailProviderAccountsTableName, + emailSiteIdentitiesTableId: cleanedData.emailSiteIdentitiesTableId, + emailSiteIdentitiesTableName: cleanedData.emailSiteIdentitiesTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableId', + message: 'emailIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableName', + message: 'emailIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableId', + message: 'emailProviderAccountsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableName', + message: 'emailProviderAccountsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableId', + message: 'emailSiteIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableName', + message: 'emailSiteIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + { + type: 'text', + name: 'siteSurfaceModuleId', + message: 'siteSurfaceModuleId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as EmailSenderModulePatch; + const client = getClient(); + const result = await client.emailSenderModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + emailIdentitiesTableId: cleanedData.emailIdentitiesTableId, + emailIdentitiesTableName: cleanedData.emailIdentitiesTableName, + emailProviderAccountsTableId: cleanedData.emailProviderAccountsTableId, + emailProviderAccountsTableName: cleanedData.emailProviderAccountsTableName, + emailSiteIdentitiesTableId: cleanedData.emailSiteIdentitiesTableId, + emailSiteIdentitiesTableName: cleanedData.emailSiteIdentitiesTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.emailSenderModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts index 0cb0a64829..4ec73788aa 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts @@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = { actorTableId: 'uuid', apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', eventAggregatesTableId: 'uuid', @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { eventTypesTableName: 'string', eventsTableId: 'uuid', eventsTableName: 'string', + expireGrants: 'string', grantAchievement: 'string', id: 'uuid', interval: 'string', @@ -46,9 +47,11 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', privateSchemaName: 'string', publicSchemaName: 'string', + recomputeCapabilities: 'string', recordEvent: 'string', removeEvent: 'string', retention: 'string', + revokeAchievement: 'string', schemaId: 'uuid', scope: 'string', stepsRequired: 'string', @@ -58,7 +61,9 @@ const fieldSchema: FieldSchema = { tgEventBool: 'string', tgEventToggle: 'string', tgEventToggleBool: 'string', + tgLevelGrantSync: 'string', tgUpdateAggregates: 'string', + trustLadder: 'json', upsertAggregate: 'string', }; const usage = @@ -117,7 +122,7 @@ async function handleList(argv: Partial>, _prompter: Inq actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -126,6 +131,7 @@ async function handleList(argv: Partial>, _prompter: Inq eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -142,9 +148,11 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -154,7 +162,9 @@ async function handleList(argv: Partial>, _prompter: Inq tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }; const findManyArgs = parseFindManyArgs< @@ -181,7 +191,7 @@ async function handleFindFirst(argv: Partial>, _prompter actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -190,6 +200,7 @@ async function handleFindFirst(argv: Partial>, _prompter eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -206,9 +217,11 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -218,7 +231,9 @@ async function handleFindFirst(argv: Partial>, _prompter tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }; const findFirstArgs = parseFindFirstArgs< @@ -257,7 +272,7 @@ async function handleGet(argv: Partial>, prompter: Inqui actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -266,6 +281,7 @@ async function handleGet(argv: Partial>, prompter: Inqui eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -282,9 +298,11 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -294,7 +312,9 @@ async function handleGet(argv: Partial>, prompter: Inqui tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) @@ -347,8 +367,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -408,6 +428,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'expireGrants', + message: 'expireGrants', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantAchievement', @@ -513,6 +540,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recomputeCapabilities', + message: 'recomputeCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordEvent', @@ -534,6 +568,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeAchievement', + message: 'revokeAchievement', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -596,6 +637,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'tgLevelGrantSync', + message: 'tgLevelGrantSync', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tgUpdateAggregates', @@ -603,6 +651,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'trustLadder', + message: 'trustLadder', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'upsertAggregate', @@ -625,7 +680,7 @@ async function handleCreate(argv: Partial>, prompter: In actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -634,6 +689,7 @@ async function handleCreate(argv: Partial>, prompter: In eventTypesTableName: cleanedData.eventTypesTableName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, + expireGrants: cleanedData.expireGrants, grantAchievement: cleanedData.grantAchievement, interval: cleanedData.interval, levelAchieved: cleanedData.levelAchieved, @@ -649,9 +705,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + recomputeCapabilities: cleanedData.recomputeCapabilities, recordEvent: cleanedData.recordEvent, removeEvent: cleanedData.removeEvent, retention: cleanedData.retention, + revokeAchievement: cleanedData.revokeAchievement, schemaId: cleanedData.schemaId, scope: cleanedData.scope, stepsRequired: cleanedData.stepsRequired, @@ -661,7 +719,9 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, tgEventToggle: cleanedData.tgEventToggle, tgEventToggleBool: cleanedData.tgEventToggleBool, + tgLevelGrantSync: cleanedData.tgLevelGrantSync, tgUpdateAggregates: cleanedData.tgUpdateAggregates, + trustLadder: cleanedData.trustLadder, upsertAggregate: cleanedData.upsertAggregate, }, select: { @@ -670,7 +730,7 @@ async function handleCreate(argv: Partial>, prompter: In actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -679,6 +739,7 @@ async function handleCreate(argv: Partial>, prompter: In eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -695,9 +756,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -707,7 +770,9 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) @@ -766,8 +831,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -827,6 +892,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'expireGrants', + message: 'expireGrants', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantAchievement', @@ -932,6 +1004,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recomputeCapabilities', + message: 'recomputeCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordEvent', @@ -953,6 +1032,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeAchievement', + message: 'revokeAchievement', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -1015,6 +1101,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'tgLevelGrantSync', + message: 'tgLevelGrantSync', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tgUpdateAggregates', @@ -1022,6 +1115,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'trustLadder', + message: 'trustLadder', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'upsertAggregate', @@ -1044,7 +1144,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -1053,6 +1153,7 @@ async function handleUpdate(argv: Partial>, prompter: In eventTypesTableName: cleanedData.eventTypesTableName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, + expireGrants: cleanedData.expireGrants, grantAchievement: cleanedData.grantAchievement, interval: cleanedData.interval, levelAchieved: cleanedData.levelAchieved, @@ -1068,9 +1169,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + recomputeCapabilities: cleanedData.recomputeCapabilities, recordEvent: cleanedData.recordEvent, removeEvent: cleanedData.removeEvent, retention: cleanedData.retention, + revokeAchievement: cleanedData.revokeAchievement, schemaId: cleanedData.schemaId, scope: cleanedData.scope, stepsRequired: cleanedData.stepsRequired, @@ -1080,7 +1183,9 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, tgEventToggle: cleanedData.tgEventToggle, tgEventToggleBool: cleanedData.tgEventToggleBool, + tgLevelGrantSync: cleanedData.tgLevelGrantSync, tgUpdateAggregates: cleanedData.tgUpdateAggregates, + trustLadder: cleanedData.trustLadder, upsertAggregate: cleanedData.upsertAggregate, }, select: { @@ -1089,7 +1194,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -1098,6 +1203,7 @@ async function handleUpdate(argv: Partial>, prompter: In eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -1114,9 +1220,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -1126,7 +1234,9 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts b/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts new file mode 100644 index 0000000000..9abf16bffd --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts @@ -0,0 +1,399 @@ +/** + * CLI commands for FileRefField + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateFileRefFieldInput, + FileRefFieldPatch, + FileRefFieldSelect, + FileRefFieldFilter, + FileRefFieldOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + bucketKey: 'string', + bucketTags: 'string', + databaseId: 'uuid', + enforceFk: 'boolean', + fieldId: 'uuid', + id: 'uuid', + isPublic: 'boolean', + storageModuleId: 'uuid', + tableId: 'uuid', +}; +const usage = + '\nfile-ref-field \n\nCommands:\n list List fileRefField records\n find-first Find first matching fileRefField record\n get Get a fileRefField by ID\n create Create a new fileRefField\n update Update an existing fileRefField\n delete Delete a fileRefField\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: FileRefFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.fileRefField.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: FileRefFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.fileRefField.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.fileRefField + .findOne({ + id: answers.id as string, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'bucketKey', + message: 'bucketKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bucketTags', + message: 'bucketTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'boolean', + name: 'enforceFk', + message: 'enforceFk', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageModuleId', + message: 'storageModuleId', + required: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateFileRefFieldInput['fileRefField']; + const client = getClient(); + const result = await client.fileRefField + .create({ + data: { + bucketKey: cleanedData.bucketKey, + bucketTags: cleanedData.bucketTags, + databaseId: cleanedData.databaseId, + enforceFk: cleanedData.enforceFk, + fieldId: cleanedData.fieldId, + isPublic: cleanedData.isPublic, + storageModuleId: cleanedData.storageModuleId, + tableId: cleanedData.tableId, + }, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'bucketKey', + message: 'bucketKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bucketTags', + message: 'bucketTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'boolean', + name: 'enforceFk', + message: 'enforceFk', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: false, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageModuleId', + message: 'storageModuleId', + required: false, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as FileRefFieldPatch; + const client = getClient(); + const result = await client.fileRefField + .update({ + where: { + id: answers.id as string, + }, + data: { + bucketKey: cleanedData.bucketKey, + bucketTags: cleanedData.bucketTags, + databaseId: cleanedData.databaseId, + enforceFk: cleanedData.enforceFk, + fieldId: cleanedData.fieldId, + isPublic: cleanedData.isPublic, + storageModuleId: cleanedData.storageModuleId, + tableId: cleanedData.tableId, + }, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.fileRefField + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts index e2a42ee2b9..cff327f944 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', deploymentEventsTableId: 'uuid', deploymentEventsTableName: 'string', deploymentsTableId: 'uuid', @@ -91,7 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -136,7 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -193,7 +193,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -242,8 +242,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -377,7 +377,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deploymentEventsTableId: cleanedData.deploymentEventsTableId, deploymentEventsTableName: cleanedData.deploymentEventsTableName, deploymentsTableId: cleanedData.deploymentsTableId, @@ -399,7 +399,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -454,8 +454,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -589,7 +589,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deploymentEventsTableId: cleanedData.deploymentEventsTableId, deploymentEventsTableName: cleanedData.deploymentEventsTableName, deploymentsTableId: cleanedData.deploymentsTableId, @@ -611,7 +611,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts index 7d71fd56c0..0b3f43d3e3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { attemptsTableId: 'uuid', attemptsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', executionLogsTableId: 'uuid', @@ -93,7 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -138,7 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -256,8 +256,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -379,7 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In attemptsTableId: cleanedData.attemptsTableId, attemptsTableName: cleanedData.attemptsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionLogsTableId: cleanedData.executionLogsTableId, @@ -401,7 +401,7 @@ async function handleCreate(argv: Partial>, prompter: In attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -468,8 +468,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -591,7 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In attemptsTableId: cleanedData.attemptsTableId, attemptsTableName: cleanedData.attemptsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionLogsTableId: cleanedData.executionLogsTableId, @@ -613,7 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts index e5ea54b41c..5a41348a02 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts @@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = { bindingsTableName: 'string', capabilityBindingsTableId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', definitionsTableId: 'uuid', definitionsTableName: 'string', entityField: 'string', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -137,7 +137,7 @@ async function handleFindFirst(argv: Partial>, _prompter bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -191,7 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -259,8 +259,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -383,7 +383,7 @@ async function handleCreate(argv: Partial>, prompter: In bindingsTableName: cleanedData.bindingsTableName, capabilityBindingsTableId: cleanedData.capabilityBindingsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, definitionsTableId: cleanedData.definitionsTableId, definitionsTableName: cleanedData.definitionsTableName, entityField: cleanedData.entityField, @@ -406,7 +406,7 @@ async function handleCreate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -480,8 +480,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -604,7 +604,7 @@ async function handleUpdate(argv: Partial>, prompter: In bindingsTableName: cleanedData.bindingsTableName, capabilityBindingsTableId: cleanedData.capabilityBindingsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, definitionsTableId: cleanedData.definitionsTableId, definitionsTableName: cleanedData.definitionsTableName, entityField: cleanedData.entityField, @@ -627,7 +627,7 @@ async function handleUpdate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts index 5083085daf..15fdee52f8 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', executionsTableId: 'uuid', @@ -94,7 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -141,7 +141,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -200,7 +200,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -250,8 +250,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -391,7 +391,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionsTableId: cleanedData.executionsTableId, @@ -415,7 +415,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -471,8 +471,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -612,7 +612,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionsTableId: cleanedData.executionsTableId, @@ -636,7 +636,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts index 765adb9418..bb540c1838 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', graphsTableId: 'uuid', @@ -89,7 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -127,7 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -177,7 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -222,8 +222,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -328,7 +328,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, graphsTableId: cleanedData.graphsTableId, @@ -347,7 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -398,8 +398,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -504,7 +504,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, graphsTableId: cleanedData.graphsTableId, @@ -523,7 +523,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts index 5691c74a13..e1aa6f4027 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts @@ -22,7 +22,7 @@ const fieldSchema: FieldSchema = { chartEdgesTableName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', getManagersFunction: 'string', @@ -97,7 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -140,7 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -263,8 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -385,7 +385,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgesTableId: cleanedData.chartEdgesTableId, chartEdgesTableName: cleanedData.chartEdgesTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, getManagersFunction: cleanedData.getManagersFunction, @@ -409,7 +409,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -483,8 +483,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -605,7 +605,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgesTableId: cleanedData.chartEdgesTableId, chartEdgesTableName: cleanedData.chartEdgesTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, getManagersFunction: cleanedData.getManagersFunction, @@ -629,7 +629,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts b/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts 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/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/profiles-module.ts b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts index c575773b25..84f9070160 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts @@ -18,22 +18,24 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorTableId: 'uuid', apiName: 'string', + capabilitiesTableId: 'uuid', databaseId: 'uuid', entityField: 'string', entityTableId: 'uuid', id: 'uuid', + membershipProfilesTableId: 'uuid', + membershipProfilesTableName: 'string', membershipsTableId: 'uuid', - permissionsTableId: 'uuid', prefix: 'string', privateApiName: 'string', privateSchemaId: 'uuid', privateSchemaName: 'string', + profileCapabilitiesTableId: 'uuid', + profileCapabilitiesTableName: 'string', profileDefinitionGrantsTableId: 'uuid', profileDefinitionGrantsTableName: 'string', profileGrantsTableId: 'uuid', profileGrantsTableName: 'string', - profilePermissionsTableId: 'uuid', - profilePermissionsTableName: 'string', profileTemplatesTableId: 'uuid', profileTemplatesTableName: 'string', publicSchemaName: 'string', @@ -95,22 +97,24 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -140,22 +144,24 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -197,22 +203,24 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -249,6 +257,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -271,15 +286,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipsTableId', - message: 'membershipsTableId', + name: 'membershipProfilesTableId', + message: 'membershipProfilesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', + name: 'membershipProfilesTableName', + message: 'membershipProfilesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'membershipsTableId', + message: 'membershipsTableId', required: false, skipPrompt: true, }, @@ -313,43 +335,43 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'profileDefinitionGrantsTableId', - message: 'profileDefinitionGrantsTableId', + name: 'profileCapabilitiesTableId', + message: 'profileCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileDefinitionGrantsTableName', - message: 'profileDefinitionGrantsTableName', + name: 'profileCapabilitiesTableName', + message: 'profileCapabilitiesTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableId', - message: 'profileGrantsTableId', + name: 'profileDefinitionGrantsTableId', + message: 'profileDefinitionGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableName', - message: 'profileGrantsTableName', + name: 'profileDefinitionGrantsTableName', + message: 'profileDefinitionGrantsTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableId', - message: 'profilePermissionsTableId', + name: 'profileGrantsTableId', + message: 'profileGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableName', - message: 'profilePermissionsTableName', + name: 'profileGrantsTableName', + message: 'profileGrantsTableName', required: false, skipPrompt: true, }, @@ -413,21 +435,23 @@ async function handleCreate(argv: Partial>, prompter: In data: { actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + membershipProfilesTableId: cleanedData.membershipProfilesTableId, + membershipProfilesTableName: cleanedData.membershipProfilesTableName, membershipsTableId: cleanedData.membershipsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, + profileCapabilitiesTableId: cleanedData.profileCapabilitiesTableId, + profileCapabilitiesTableName: cleanedData.profileCapabilitiesTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileGrantsTableId: cleanedData.profileGrantsTableId, profileGrantsTableName: cleanedData.profileGrantsTableName, - profilePermissionsTableId: cleanedData.profilePermissionsTableId, - profilePermissionsTableName: cleanedData.profilePermissionsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, publicSchemaName: cleanedData.publicSchemaName, @@ -439,22 +463,24 @@ async function handleCreate(argv: Partial>, prompter: In select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -497,6 +523,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -519,15 +552,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipsTableId', - message: 'membershipsTableId', + name: 'membershipProfilesTableId', + message: 'membershipProfilesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', + name: 'membershipProfilesTableName', + message: 'membershipProfilesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'membershipsTableId', + message: 'membershipsTableId', required: false, skipPrompt: true, }, @@ -561,43 +601,43 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'profileDefinitionGrantsTableId', - message: 'profileDefinitionGrantsTableId', + name: 'profileCapabilitiesTableId', + message: 'profileCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileDefinitionGrantsTableName', - message: 'profileDefinitionGrantsTableName', + name: 'profileCapabilitiesTableName', + message: 'profileCapabilitiesTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableId', - message: 'profileGrantsTableId', + name: 'profileDefinitionGrantsTableId', + message: 'profileDefinitionGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableName', - message: 'profileGrantsTableName', + name: 'profileDefinitionGrantsTableName', + message: 'profileDefinitionGrantsTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableId', - message: 'profilePermissionsTableId', + name: 'profileGrantsTableId', + message: 'profileGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableName', - message: 'profilePermissionsTableName', + name: 'profileGrantsTableName', + message: 'profileGrantsTableName', required: false, skipPrompt: true, }, @@ -661,21 +701,23 @@ async function handleUpdate(argv: Partial>, prompter: In data: { actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + membershipProfilesTableId: cleanedData.membershipProfilesTableId, + membershipProfilesTableName: cleanedData.membershipProfilesTableName, membershipsTableId: cleanedData.membershipsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, + profileCapabilitiesTableId: cleanedData.profileCapabilitiesTableId, + profileCapabilitiesTableName: cleanedData.profileCapabilitiesTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileGrantsTableId: cleanedData.profileGrantsTableId, profileGrantsTableName: cleanedData.profileGrantsTableName, - profilePermissionsTableId: cleanedData.profilePermissionsTableId, - profilePermissionsTableName: cleanedData.profilePermissionsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, publicSchemaName: cleanedData.publicSchemaName, @@ -687,22 +729,24 @@ async function handleUpdate(argv: Partial>, prompter: In select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts deleted file mode 100644 index 9139f8dfb1..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionCheckConstraint - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionCheckConstraintVariables } from '../../orm/mutation'; -import type { ProvisionCheckConstraintPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'provision-check-constraint - Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n\nUsage: provision-check-constraint [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .provisionCheckConstraint( - parsedAnswers as unknown as ProvisionCheckConstraintVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionCheckConstraintPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionCheckConstraint'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-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/repository-module.ts b/sdk/constructive-cli/src/modules/cli/commands/repository-module.ts new file mode 100644 index 0000000000..a2fe55032a --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/repository-module.ts @@ -0,0 +1,1041 @@ +/** + * 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', + 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, + 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, + 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, + 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: '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, + 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, + 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: '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, + 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, + 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..297cbde01f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -32,6 +32,8 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', provisions: 'json', publicSchemaName: 'string', + registryBindingsTableId: 'uuid', + registryBindingsTableName: 'string', requirementsStateViewName: 'string', resolvedRequirementsViewName: 'string', resourceBillingRollupFunction: 'string', @@ -106,7 +108,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -120,6 +122,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -162,7 +166,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -176,6 +180,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -230,7 +236,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -244,6 +250,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -294,8 +302,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -383,6 +391,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', @@ -534,7 +556,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -547,6 +569,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, @@ -571,7 +595,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -585,6 +609,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + registryBindingsTableId: true, + registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, @@ -641,8 +667,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -730,6 +756,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', @@ -881,7 +921,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -894,6 +934,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, @@ -918,7 +960,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -932,6 +974,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..7c452b5ccf 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', @@ -93,9 +97,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 +115,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -137,9 +145,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 +163,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -193,9 +205,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 +223,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -238,6 +254,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 +276,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 +372,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', @@ -401,9 +445,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 +462,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, @@ -426,9 +474,11 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -442,6 +492,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, @@ -477,6 +529,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 +551,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 +647,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', @@ -640,9 +720,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 +737,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, @@ -665,9 +749,11 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -681,6 +767,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + redirectsTableId: true, + redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts b/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts new file mode 100644 index 0000000000..bb64174ac0 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts @@ -0,0 +1,317 @@ +/** + * CLI commands for ScopeTypesModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateScopeTypesModuleInput, + ScopeTypesModulePatch, + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + databaseId: 'uuid', + id: 'uuid', + privateSchemaName: 'string', + schemaId: 'uuid', + scopeTypesTableId: 'uuid', +}; +const usage = + '\nscope-types-module \n\nCommands:\n list List scopeTypesModule records\n find-first Find first matching scopeTypesModule record\n get Get a scopeTypesModule by ID\n create Create a new scopeTypesModule\n update Update an existing scopeTypesModule\n delete Delete a scopeTypesModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ScopeTypesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.scopeTypesModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ScopeTypesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.scopeTypesModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.scopeTypesModule + .findOne({ + id: answers.id as string, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeTypesTableId', + message: 'scopeTypesTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateScopeTypesModuleInput['scopeTypesModule']; + const client = getClient(); + const result = await client.scopeTypesModule + .create({ + data: { + databaseId: cleanedData.databaseId, + privateSchemaName: cleanedData.privateSchemaName, + schemaId: cleanedData.schemaId, + scopeTypesTableId: cleanedData.scopeTypesTableId, + }, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeTypesTableId', + message: 'scopeTypesTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ScopeTypesModulePatch; + const client = getClient(); + const result = await client.scopeTypesModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + privateSchemaName: cleanedData.privateSchemaName, + schemaId: cleanedData.schemaId, + scopeTypesTableId: cleanedData.scopeTypesTableId, + }, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.scopeTypesModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/modules/cli/commands/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..0580e48726 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/site-surface-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/site-surface-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -103,7 +103,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -155,7 +155,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -219,7 +219,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -285,8 +285,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -491,7 +491,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -524,7 +524,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -596,8 +596,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -802,7 +802,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -835,7 +835,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-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..6e1b597870 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -24,8 +24,8 @@ const fieldSchema: FieldSchema = { catalogModuleId: 'uuid', confirmUploadDelay: 'string', databaseId: 'uuid', + defaultCapabilities: 'string', defaultMaxFileSize: 'int', - defaultPermissions: 'string', downloadUrlExpirySeconds: 'int', endpoint: 'string', entityField: 'string', @@ -117,8 +117,8 @@ async function handleList(argv: Partial>, _prompter: Inq catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -178,8 +178,8 @@ async function handleFindFirst(argv: Partial>, _prompter catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -251,8 +251,8 @@ async function handleGet(argv: Partial>, prompter: Inqui catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -356,15 +356,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultMaxFileSize', - message: 'defaultMaxFileSize', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultMaxFileSize', + message: 'defaultMaxFileSize', required: false, skipPrompt: true, }, @@ -595,8 +595,8 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, confirmUploadDelay: cleanedData.confirmUploadDelay, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMaxFileSize: cleanedData.defaultMaxFileSize, - defaultPermissions: cleanedData.defaultPermissions, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, endpoint: cleanedData.endpoint, entityField: cleanedData.entityField, @@ -637,8 +637,8 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -748,15 +748,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultMaxFileSize', - message: 'defaultMaxFileSize', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultMaxFileSize', + message: 'defaultMaxFileSize', required: false, skipPrompt: true, }, @@ -987,8 +987,8 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, confirmUploadDelay: cleanedData.confirmUploadDelay, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMaxFileSize: cleanedData.defaultMaxFileSize, - defaultPermissions: cleanedData.defaultPermissions, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, endpoint: cleanedData.endpoint, entityField: cleanedData.entityField, @@ -1029,8 +1029,8 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/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-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..c349e346c9 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 | @@ -79,9 +87,11 @@ const db = createClient({ | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | 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 +102,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 +123,17 @@ 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 | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -137,25 +153,28 @@ CRUD operations for AgentModule records. | `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, 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, 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, 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, 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', 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 +202,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 +218,13 @@ CRUD operations for ApiSurfaceModule records. ```typescript // List all apiSurfaceModule records -const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -229,7 +248,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -247,13 +266,13 @@ CRUD operations for AppModule records. ```typescript // List all appModule records -const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.appModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -274,8 +293,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 +322,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -329,16 +348,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingInvoicesTableId` | UUID | Yes | +| `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingRefundsTableId` | UUID | Yes | +| `billingRefundsTableName` | String | Yes | | `billingSubscriptionsTableId` | UUID | Yes | | `billingSubscriptionsTableName` | String | Yes | | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `listPendingUsageSyncFunction` | String | Yes | +| `markUsageSyncedFunction` | String | Yes | | `prefix` | String | Yes | | `pricesTableId` | UUID | Yes | | `privateApiName` | String | Yes | @@ -346,20 +371,22 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -495,6 +522,56 @@ const updated = await db.blueprintTemplate.update({ where: { id: '' }, dat const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` +### `db.capabilitiesModule` + +CRUD operations for CapabilitiesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `bitlen` | Int | Yes | +| `databaseId` | UUID | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `getByMask` | String | Yes | +| `getMask` | String | Yes | +| `getMaskByName` | String | Yes | +| `getPaddedMask` | String | Yes | +| `id` | UUID | No | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all capabilitiesModule records +const items = await db.capabilitiesModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.capabilitiesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.capabilitiesModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.capabilitiesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.capabilitiesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.catalogModule` CRUD operations for CatalogModule records. @@ -508,22 +585,28 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | +| `bindingsTableId` | UUID | Yes | +| `bindingsTableName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainsTableId` | UUID | Yes | | `domainsTableName` | String | Yes | | `entityTableId` | UUID | Yes | | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | 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 +630,13 @@ CRUD operations for CatalogModule records. ```typescript // List all catalogModule records -const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, imagesTableId: true, imagesTableName: 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, 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, 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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 +645,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 +784,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 +909,45 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dataCapabilitiesField` + +CRUD operations for DataCapabilitiesField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilitiesModuleId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fromFieldId` | UUID | Yes | +| `id` | UUID | No | +| `mappingFieldId` | UUID | Yes | +| `mappingKeyFieldId` | UUID | Yes | +| `mappingTableId` | UUID | Yes | +| `mode` | String | Yes | +| `subsetGuard` | Boolean | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all dataCapabilitiesField records +const items = await db.dataCapabilitiesField.findMany({ select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.dataCapabilitiesField.findOne({ id: '', select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Create +const created = await db.dataCapabilitiesField.create({ data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dataCapabilitiesField.update({ where: { id: '' }, data: { capabilitiesModuleId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dataCapabilitiesField.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -822,7 +1007,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 +1029,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 +1180,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 +1208,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 +1339,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 +1365,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 +1380,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 +1545,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 +1554,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 +1571,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 +1585,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 +1609,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 +1656,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 +1680,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 +1707,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 +1729,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 +1757,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | Yes | | `capabilityBindingsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `definitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | | `entityField` | String | Yes | @@ -1504,13 +1779,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1530,7 +1805,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 +1830,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 +1856,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 +1876,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 +1905,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 +1927,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 +1942,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 +1952,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 +1987,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 +2029,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 +2078,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 +2092,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 +2102,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,6 +2247,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. @@ -2062,6 +2382,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. @@ -2084,47 +2450,100 @@ CRUD operations for LimitsModule records. | `entityTableId` | UUID | Yes | | `eventsTableId` | UUID | Yes | | `id` | UUID | No | -| `limitAggregateCheckSoftFunction` | String | Yes | -| `limitCapsDefaultsTableId` | UUID | Yes | -| `limitCapsTableId` | UUID | Yes | -| `limitCheckFunction` | String | Yes | -| `limitCheckSoftFunction` | String | Yes | -| `limitCreditsTableId` | UUID | Yes | -| `limitDecrementFunction` | String | Yes | -| `limitDecrementTrigger` | String | Yes | -| `limitIncrementFunction` | String | Yes | -| `limitIncrementTrigger` | String | Yes | -| `limitUpdateTrigger` | String | Yes | -| `limitWarningStateTableId` | UUID | Yes | -| `limitWarningsTableId` | UUID | Yes | +| `limitAggregateCheckSoftFunction` | String | Yes | +| `limitCapsDefaultsTableId` | UUID | Yes | +| `limitCapsTableId` | UUID | Yes | +| `limitCheckFunction` | String | Yes | +| `limitCheckSoftFunction` | String | Yes | +| `limitCreditsTableId` | UUID | Yes | +| `limitDecrementFunction` | String | Yes | +| `limitDecrementTrigger` | String | Yes | +| `limitDefaults` | JSON | Yes | +| `limitIncrementFunction` | String | Yes | +| `limitIncrementTrigger` | String | Yes | +| `limitUpdateTrigger` | String | Yes | +| `limitWarningStateTableId` | UUID | Yes | +| `limitWarningsTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `resolveCapFunction` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```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, 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, 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: '', 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(); + +// Delete +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 | -| `resolveCapFunction` | String | Yes | +| `retention` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | **Operations:** ```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(); +// 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.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.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.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.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.limitsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); +const updated = await db.machineModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.machineModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipTypesModule` @@ -2174,9 +2593,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 +2621,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 +2634,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 +2658,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 +2681,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 +2706,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 +2728,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 +2754,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 +2780,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 +2795,91 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.pagesModule` +### `db.oauthRequestsModule` -CRUD operations for PagesModule records. +CRUD operations for OauthRequestsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `apiName` | String | Yes | -| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | -| `merkleStoreModuleId` | UUID | Yes | -| `pagesTableId` | UUID | Yes | -| `policies` | JSON | Yes | +| `oauthAuthorizationRequestsTableId` | UUID | Yes | +| `oauthAuthorizationRequestsTableName` | String | Yes | +| `pendingIdentityLinksTableId` | UUID | Yes | +| `pendingIdentityLinksTableName` | String | Yes | | `prefix` | String | Yes | -| `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | | `scope` | String | Yes | -| `siteSurfaceModuleId` | UUID | Yes | -| `sitesTableId` | UUID | Yes | -| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all pagesModule records -const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +// List all oauthRequestsModule records +const items = await db.oauthRequestsModule.findMany({ select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +const item = await db.oauthRequestsModule.findOne({ id: '', select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Create -const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); +const created = await db.oauthRequestsModule.create({ data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.oauthRequestsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.oauthRequestsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.pagesModule` -CRUD operations for PermissionsModule records. +CRUD operations for PagesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorTableId` | UUID | Yes | | `apiName` | String | Yes | -| `bitlen` | Int | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | -| `getByMask` | String | Yes | -| `getMask` | String | Yes | -| `getMaskByName` | String | Yes | -| `getPaddedMask` | String | Yes | | `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `pagesTableId` | UUID | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | -| `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | +| `sitesTableId` | UUID | Yes | +| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all pagesModule records +const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); +const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2614,22 +3024,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 +3054,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 +3080,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 +3099,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(); @@ -2833,6 +3245,72 @@ 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 | +| `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, 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, 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: '', 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. @@ -2843,7 +3321,7 @@ CRUD operations for ResourceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2857,6 +3335,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 +3362,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, 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, 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: '', 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 +3427,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 +3445,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 | @@ -2975,13 +3459,13 @@ CRUD operations for RouteModule records. ```typescript // List all routeModule records -const items = await db.routeModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const items = await db.routeModule.findMany({ select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.routeModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const item = await db.routeModule.findOne({ id: '', select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, redirectsTableId: true, redirectsTableName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.routeModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.routeModule.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', redirectsTableId: '', redirectsTableName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2990,6 +3474,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 +3519,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 +3533,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 +3632,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -3147,13 +3666,13 @@ CRUD operations for SiteSurfaceModule records. ```typescript // List all siteSurfaceModule records -const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Get one by id -const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Create -const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); +const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3170,11 +3689,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 +3701,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 +3713,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 +3744,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | Yes | | `confirmUploadDelay` | Interval | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMaxFileSize` | BigInt | Yes | -| `defaultPermissions` | String | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `endpoint` | String | Yes | | `entityField` | String | Yes | @@ -3264,13 +3782,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -3287,11 +3805,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 +3817,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 +3829,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(); @@ -3453,6 +3970,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 +4167,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 +4193,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 +4210,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:** @@ -3741,108 +4257,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..43dbf49ab3 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'; @@ -63,9 +71,11 @@ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; 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 +86,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 +133,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 +152,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), @@ -174,9 +191,11 @@ export function createClient(config: OrmClientConfig) { rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(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 +206,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..190922c5a8 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -236,12 +236,17 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -261,13 +266,16 @@ export interface AgentModule { 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 +289,7 @@ export interface ApiSurfaceModule { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -301,7 +309,7 @@ export interface AppModule { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -320,8 +328,8 @@ export interface BillingModule { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; id: string; ledgerTableId?: string | null; ledgerTableName?: string | null; @@ -349,16 +357,22 @@ export interface BillingProviderModule { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; id: string; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -366,8 +380,10 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } /** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ export interface Blueprint { @@ -464,28 +480,58 @@ export interface BlueprintTemplate { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string | null; } +export interface CapabilitiesModule { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + id: string; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: 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 +551,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 +595,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,6 +659,19 @@ export interface CryptoAuthModule { userField?: string | null; usersTableId?: string | null; } +export interface DataCapabilitiesField { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + id: string; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: string | null; +} /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -598,7 +694,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -617,7 +713,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 +797,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 +852,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 +874,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 +909,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 +931,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 +941,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 +983,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 +1014,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 +1036,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 +1080,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 +1094,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 +1114,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 +1140,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 +1177,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 +1186,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 +1203,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 +1217,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 +1261,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 +1285,7 @@ export interface FunctionModule { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -1170,7 +1307,7 @@ export interface GraphExecutionModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -1195,7 +1332,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 +1355,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 +1373,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 +1410,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 +1450,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 +1517,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 +1576,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 +1620,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 +1637,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 +1677,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 +1705,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 +1716,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 +1738,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 +1760,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 +1782,28 @@ export interface NotificationsModule { suppressionsTableId?: string | null; userSettingsTableId?: string | null; } +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + * sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + * pending identity links table (a verified identity parked under a single-use ticket), + * both private, plus the five SECURITY DEFINER procedures that are their only surface. + * Sibling of identity_providers_module (durable provider configuration) rather than part + * of it: this is ephemeral, purged flow state with its own retention. + */ +export interface OauthRequestsModule { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} export interface PagesModule { apiName?: string | null; createdAt?: string | null; @@ -1597,30 +1825,6 @@ export interface PagesModule { sitesTableId?: string | null; storeNamePrefix?: string | null; } -export interface PermissionsModule { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - id: string; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} export interface PhoneNumbersModule { apiName?: string | null; databaseId?: string | null; @@ -1679,22 +1883,24 @@ export interface PrincipalAuthModule { export interface ProfilesModule { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; id: string; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -1707,7 +1913,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; @@ -1882,10 +2088,50 @@ 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; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1899,6 +2145,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 +2185,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 +2203,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; @@ -1961,7 +2213,14 @@ export interface RouteModule { schemaId?: string | null; scope?: string | null; } -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface 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. 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 +2230,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 +2276,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; @@ -2044,11 +2307,9 @@ export interface SiteSurfaceModule { sitesTableName?: 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 +2319,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 +2336,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; @@ -2109,11 +2371,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 +2383,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; @@ -2183,6 +2444,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 +2506,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 +2562,9 @@ export interface BlueprintTemplateRelations { blueprintTemplatesByForkedFromId?: ConnectionResult; blueprintsByTemplateId?: ConnectionResult; } +export interface CapabilitiesModuleRelations { + dataCapabilitiesFields?: ConnectionResult; +} export interface CatalogModuleRelations { apiSurfaceModules?: ConnectionResult; appModules?: ConnectionResult; @@ -2299,11 +2572,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 +2598,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 +2616,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2342,27 +2626,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 +2659,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 {} @@ -2385,31 +2672,34 @@ export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} 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 +2721,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 +2746,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 +2760,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; @@ -2495,9 +2794,11 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; 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 +2812,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 +2826,17 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2548,13 +2856,16 @@ export type AgentModuleSelect = { 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 +2879,7 @@ export type ApiSurfaceModuleSelect = { corsSettingsTableId?: boolean; corsSettingsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2591,7 +2902,7 @@ export type AppModuleSelect = { appsTableName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2613,8 +2924,8 @@ export type BillingModuleSelect = { balancesTableId?: boolean; balancesTableName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMeterCatalog?: boolean; - defaultPermissions?: boolean; id?: boolean; ledgerTableId?: boolean; ledgerTableName?: boolean; @@ -2642,16 +2953,22 @@ export type BillingProviderModuleSelect = { apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingInvoicesTableId?: boolean; + billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingRefundsTableId?: boolean; + billingRefundsTableName?: boolean; billingSubscriptionsTableId?: boolean; billingSubscriptionsTableName?: boolean; billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; id?: boolean; + listPendingUsageSyncFunction?: boolean; + markUsageSyncedFunction?: boolean; prefix?: boolean; pricesTableId?: boolean; privateApiName?: boolean; @@ -2659,8 +2976,10 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { createdAt?: boolean; @@ -2738,28 +3057,64 @@ export type BlueprintTemplateSelect = { orderBy?: BlueprintOrderBy[]; }; }; -export type CatalogModuleSelect = { +export type CapabilitiesModuleSelect = { + actorTableId?: boolean; apiName?: boolean; - apisTableId?: boolean; - apisTableName?: boolean; - appsTableId?: boolean; - appsTableName?: boolean; - bucketsTableId?: boolean; - bucketsTableName?: boolean; + bitlen?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; - domainsTableId?: boolean; - domainsTableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + getByMask?: boolean; + getMask?: boolean; + getMaskByName?: boolean; + getPaddedMask?: boolean; + id?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; + dataCapabilitiesFields?: { + select: DataCapabilitiesFieldSelect; + first?: number; + filter?: DataCapabilitiesFieldFilter; + orderBy?: DataCapabilitiesFieldOrderBy[]; + }; +}; +export type CatalogModuleSelect = { + apiName?: boolean; + apisTableId?: boolean; + apisTableName?: boolean; + appsTableId?: boolean; + appsTableName?: boolean; + bindingsTableId?: boolean; + bindingsTableName?: boolean; + bucketsTableId?: boolean; + bucketsTableName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + domainsTableId?: boolean; + domainsTableName?: boolean; entityTableId?: boolean; functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: 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 +3164,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 +3208,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,6 +3275,22 @@ export type CryptoAuthModuleSelect = { userField?: boolean; usersTableId?: boolean; }; +export type DataCapabilitiesFieldSelect = { + capabilitiesModuleId?: boolean; + databaseId?: boolean; + fieldId?: boolean; + fromFieldId?: boolean; + id?: boolean; + mappingFieldId?: boolean; + mappingKeyFieldId?: boolean; + mappingTableId?: boolean; + mode?: boolean; + subsetGuard?: boolean; + tableId?: boolean; + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; +}; export type DatabaseProvisionModuleSelect = { async?: boolean; bootstrapError?: boolean; @@ -2906,7 +3317,7 @@ export type DatabaseSettingsModuleSelect = { databaseId?: boolean; databaseSettingsTableId?: boolean; databaseSettingsTableName?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2978,7 +3389,7 @@ export type DbUsageModuleSelect = { collectDbQueryStatsFunction?: boolean; collectDbTableStatsFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; id?: boolean; interval?: boolean; @@ -3033,7 +3444,7 @@ export type DomainModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3064,6 +3475,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 +3558,7 @@ export type EventsModuleSelect = { actorTableId?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; eventAggregatesTableId?: boolean; @@ -3131,6 +3567,7 @@ export type EventsModuleSelect = { eventTypesTableName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; + expireGrants?: boolean; grantAchievement?: boolean; id?: boolean; interval?: boolean; @@ -3147,9 +3584,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 +3598,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 +3651,7 @@ export type FunctionInvocationModuleSelect = { attemptsTableId?: boolean; attemptsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionLogsTableId?: boolean; @@ -3226,7 +3681,7 @@ export type FunctionModuleSelect = { bindingsTableName?: boolean; capabilityBindingsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; definitionsTableId?: boolean; definitionsTableName?: boolean; entityField?: boolean; @@ -3249,12 +3704,6 @@ export type FunctionModuleSelect = { filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3266,7 +3715,7 @@ export type GraphExecutionModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionsTableId?: boolean; @@ -3294,7 +3743,7 @@ export type GraphModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; graphsTableId?: boolean; @@ -3326,7 +3775,7 @@ export type HierarchyModuleSelect = { chartEdgesTableName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; getManagersFunction?: boolean; @@ -3344,69 +3793,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 +3858,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3481,6 +3922,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 +3979,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 +4025,7 @@ export type LimitsModuleSelect = { limitCreditsTableId?: boolean; limitDecrementFunction?: boolean; limitDecrementTrigger?: boolean; + limitDefaults?: boolean; limitIncrementFunction?: boolean; limitIncrementTrigger?: boolean; limitUpdateTrigger?: boolean; @@ -3559,6 +4042,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 +4082,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 +4110,6 @@ export type MembershipsModuleSelect = { membershipsTableName?: boolean; ownerGrantsTableId?: boolean; ownerGrantsTableName?: boolean; - permissionDefaultGrantsTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3612,14 +4121,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 +4139,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 +4157,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -3657,7 +4179,7 @@ export type MerkleStoreModuleSelect = { export type NamespaceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3697,7 +4219,7 @@ export type NotificationsModuleSelect = { apiName?: boolean; channelsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deliveryLogTableId?: boolean; entityField?: boolean; hasChannels?: boolean; @@ -3719,6 +4241,20 @@ export type NotificationsModuleSelect = { suppressionsTableId?: boolean; userSettingsTableId?: boolean; }; +export type OauthRequestsModuleSelect = { + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + oauthAuthorizationRequestsTableId?: boolean; + oauthAuthorizationRequestsTableName?: boolean; + pendingIdentityLinksTableId?: boolean; + pendingIdentityLinksTableName?: boolean; + prefix?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + scope?: boolean; +}; export type PagesModuleSelect = { apiName?: boolean; createdAt?: boolean; @@ -3746,30 +4282,6 @@ export type PagesModuleSelect = { select: SiteSurfaceModuleSelect; }; }; -export type PermissionsModuleSelect = { - actorTableId?: boolean; - apiName?: boolean; - bitlen?: boolean; - databaseId?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - entityField?: boolean; - entityTableId?: boolean; - getByMask?: boolean; - getMask?: boolean; - getMaskByName?: boolean; - getPaddedMask?: boolean; - id?: boolean; - prefix?: boolean; - privateApiName?: boolean; - privateSchemaId?: boolean; - privateSchemaName?: boolean; - publicSchemaName?: boolean; - schemaId?: boolean; - scope?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type PhoneNumbersModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3827,22 +4339,24 @@ export type PrincipalAuthModuleSelect = { export type ProfilesModuleSelect = { actorTableId?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; databaseId?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + membershipProfilesTableId?: boolean; + membershipProfilesTableName?: boolean; membershipsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + profileCapabilitiesTableId?: boolean; + profileCapabilitiesTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; profileGrantsTableId?: boolean; profileGrantsTableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; profileTemplatesTableId?: boolean; profileTemplatesTableName?: boolean; publicSchemaName?: boolean; @@ -3855,7 +4369,7 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; checkRateLimitFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; id?: boolean; prefix?: boolean; privateApiName?: boolean; @@ -3923,10 +4437,50 @@ 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; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; export type ResourceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3940,6 +4494,8 @@ export type ResourceModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; requirementsStateViewName?: boolean; resolvedRequirementsViewName?: boolean; resourceBillingRollupFunction?: boolean; @@ -3966,12 +4522,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -3990,9 +4540,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 +4558,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4020,13 +4574,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 +4621,7 @@ export type SiteSurfaceModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -4090,6 +4653,12 @@ export type SiteSurfaceModuleSelect = { catalogModule?: { select: CatalogModuleSelect; }; + emailSenderModules?: { + select: EmailSenderModuleSelect; + first?: number; + filter?: EmailSenderModuleFilter; + orderBy?: EmailSenderModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4098,11 +4667,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 +4679,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4128,8 +4696,8 @@ export type StorageModuleSelect = { catalogModuleId?: boolean; confirmUploadDelay?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMaxFileSize?: boolean; - defaultPermissions?: boolean; downloadUrlExpirySeconds?: boolean; endpoint?: boolean; entityField?: boolean; @@ -4161,19 +4729,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 +4749,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4238,6 +4805,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 +4865,7 @@ export type WebauthnCredentialsModuleSelect = { export type WebhookModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionInvocationModuleId?: boolean; @@ -4335,18 +4911,28 @@ 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 `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. */ @@ -4389,12 +4975,14 @@ export interface AgentModuleFilter { 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 +4991,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 +5025,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4481,8 +5073,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 +5115,10 @@ export interface BillingModuleFilter { balancesTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMeterCatalog` field. */ defaultMeterCatalog?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ledgerTableId` field. */ @@ -4585,6 +5177,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingInvoicesTableId` field. */ + billingInvoicesTableId?: UUIDFilter; + /** Filter by the object’s `billingInvoicesTableName` field. */ + billingInvoicesTableName?: StringFilter; /** Filter by the object’s `billingPricesTableId` field. */ billingPricesTableId?: UUIDFilter; /** Filter by the object’s `billingPricesTableName` field. */ @@ -4593,6 +5189,10 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingRefundsTableId` field. */ + billingRefundsTableId?: UUIDFilter; + /** Filter by the object’s `billingRefundsTableName` field. */ + billingRefundsTableName?: StringFilter; /** Filter by the object’s `billingSubscriptionsTableId` field. */ billingSubscriptionsTableId?: UUIDFilter; /** Filter by the object’s `billingSubscriptionsTableName` field. */ @@ -4605,6 +5205,10 @@ export interface BillingProviderModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `listPendingUsageSyncFunction` field. */ + listPendingUsageSyncFunction?: StringFilter; + /** Filter by the object’s `markUsageSyncedFunction` field. */ + markUsageSyncedFunction?: StringFilter; /** Negates the expression. */ not?: BillingProviderModuleFilter; /** Checks for any expressions in this list. */ @@ -4623,10 +5227,14 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordRefundFunction` field. */ + recordRefundFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `subscriptionsTableId` field. */ subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } export interface BlueprintFilter { /** Checks for all expressions in this list. */ @@ -4760,6 +5368,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[]; @@ -4781,14 +5445,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4805,6 +5473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -4821,6 +5493,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 +5542,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 +5617,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 +5639,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 +5650,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 +5676,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,6 +5784,38 @@ export interface CryptoAuthModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface DatabaseProvisionModuleFilter { /** Checks for all expressions in this list. */ and?: DatabaseProvisionModuleFilter[]; @@ -5085,8 +5873,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 +6029,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 +6159,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 +6210,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 +6387,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 +6405,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 +6443,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 +6471,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 +6515,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 +6577,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 +6633,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 +6649,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. */ @@ -5815,8 +6689,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 +6745,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 +6801,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,68 +6840,6 @@ export interface HierarchyModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } -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 `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; - /** 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; -} export interface I18NModuleFilter { /** Checks for all expressions in this list. */ and?: I18NModuleFilter[]; @@ -6086,25 +6898,75 @@ export interface IdentityProvidersModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } -export interface InferenceLogModuleFilter { - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; +export interface ImageModuleFilter { /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; + 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 `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; + /** 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; +} +export interface InferenceLogModuleFilter { + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; /** Filter by the object’s `interval` field. */ interval?: StringFilter; /** Negates the expression. */ @@ -6125,6 +6987,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 +7118,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 +7244,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 +7337,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 +7374,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 +7463,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 +7523,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 +7545,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 +7563,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 +7573,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 +7587,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 +7617,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 +7677,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 +7724,38 @@ export interface NotificationsModuleFilter { /** Filter by the object’s `userSettingsTableId` field. */ userSettingsTableId?: UUIDFilter; } +export interface OauthRequestsModuleFilter { + /** Checks for all expressions in this list. */ + and?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OauthRequestsModuleFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableId` field. */ + oauthAuthorizationRequestsTableId?: UUIDFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableName` field. */ + oauthAuthorizationRequestsTableName?: StringFilter; + /** Checks for any expressions in this list. */ + or?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `pendingIdentityLinksTableId` field. */ + pendingIdentityLinksTableId?: UUIDFilter; + /** Filter by the object’s `pendingIdentityLinksTableName` field. */ + pendingIdentityLinksTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface PagesModuleFilter { /** Checks for all expressions in this list. */ and?: PagesModuleFilter[]; @@ -6758,58 +7808,6 @@ export interface PagesModuleFilter { /** Filter by the object’s `storeNamePrefix` field. */ storeNamePrefix?: StringFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; -} export interface PhoneNumbersModuleFilter { /** Checks for all expressions in this list. */ and?: PhoneNumbersModuleFilter[]; @@ -6937,6 +7935,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 +7945,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 +7963,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 +7975,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 +7999,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. */ @@ -7148,6 +8150,90 @@ 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 `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[]; @@ -7155,16 +8241,12 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ 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 +8281,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 +8365,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 +8375,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 +8413,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. */ @@ -7338,6 +8432,24 @@ export interface RouteModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface ScopeTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ScopeTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scopeTypesTableId` field. */ + scopeTypesTableId?: UUIDFilter; +} export interface SecureTableProvisionFilter { /** Checks for all expressions in this list. */ and?: SecureTableProvisionFilter[]; @@ -7349,6 +8461,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 +8471,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 +8547,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. */ @@ -7499,8 +8619,6 @@ export interface SiteSurfaceModuleFilter { sitesTableName?: 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 +8627,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 +8649,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 +8683,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 +8697,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,10 +8717,6 @@ 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 `maxBulkFiles` field. */ @@ -7641,8 +8759,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 +8767,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 +8789,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. */ @@ -7796,6 +8912,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 +9053,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 +9126,28 @@ 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_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8041,12 +9189,14 @@ export type AgentModuleOrderBy = | '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 +9204,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 +9232,8 @@ export type ApiSurfaceModuleOrderBy = | 'CORS_SETTINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8118,8 +9272,8 @@ export type AppModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8156,10 +9310,10 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_METER_CATALOG_ASC' | 'DEFAULT_METER_CATALOG_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LEDGER_TABLE_ID_ASC' @@ -8214,6 +9368,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_INVOICES_TABLE_ID_ASC' + | 'BILLING_INVOICES_TABLE_ID_DESC' + | 'BILLING_INVOICES_TABLE_NAME_ASC' + | 'BILLING_INVOICES_TABLE_NAME_DESC' | 'BILLING_PRICES_TABLE_ID_ASC' | 'BILLING_PRICES_TABLE_ID_DESC' | 'BILLING_PRICES_TABLE_NAME_ASC' @@ -8222,6 +9380,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_REFUNDS_TABLE_ID_ASC' + | 'BILLING_REFUNDS_TABLE_ID_DESC' + | 'BILLING_REFUNDS_TABLE_NAME_ASC' + | 'BILLING_REFUNDS_TABLE_NAME_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' @@ -8234,6 +9396,10 @@ export type BillingProviderModuleOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_DESC' + | 'MARK_USAGE_SYNCED_FUNCTION_ASC' + | 'MARK_USAGE_SYNCED_FUNCTION_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' @@ -8251,10 +9417,14 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_REFUND_FUNCTION_ASC' + | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC'; + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8353,6 +9523,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 +9582,18 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'BINDINGS_TABLE_ID_ASC' + | 'BINDINGS_TABLE_ID_DESC' + | 'BINDINGS_TABLE_NAME_ASC' + | 'BINDINGS_TABLE_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8384,6 +9606,10 @@ 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' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -8399,6 +9625,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 +9665,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 +9734,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 +9755,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 +9765,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,6 +9881,32 @@ export type CryptoAuthModuleOrderBy = | 'USERS_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type DataCapabilitiesFieldOrderBy = + | 'CAPABILITIES_MODULE_ID_ASC' + | 'CAPABILITIES_MODULE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FROM_FIELD_ID_ASC' + | 'FROM_FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAPPING_FIELD_ID_ASC' + | 'MAPPING_FIELD_ID_DESC' + | 'MAPPING_KEY_FIELD_ID_ASC' + | 'MAPPING_KEY_FIELD_ID_DESC' + | 'MAPPING_TABLE_ID_ASC' + | 'MAPPING_TABLE_ID_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SUBSET_GUARD_ASC' + | 'SUBSET_GUARD_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' @@ -8628,8 +9958,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 +10096,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 +10206,8 @@ export type DomainModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8921,6 +10251,50 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type EmailSenderModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'EMAIL_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_IDENTITIES_TABLE_NAME_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SITE_SURFACE_MODULE_ID_ASC' + | 'SITE_SURFACE_MODULE_ID_DESC'; export type EmailsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9036,8 +10410,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 +10428,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 +10465,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 +10493,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 +10578,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 +10626,8 @@ export type FunctionModuleOrderBy = | 'CAPABILITY_BINDINGS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' @@ -9264,8 +10670,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 +10720,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 +10766,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 +10803,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 +10887,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 +10935,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,7 +11049,7 @@ export type IntegrationProvidersModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type InternalSecretsModuleOrderBy = +export type InternalConfigModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' @@ -9652,10 +11060,10 @@ export type InternalSecretsModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INTERNAL_SECRETS_TABLE_ID_ASC' - | 'INTERNAL_SECRETS_TABLE_ID_DESC' - | 'INTERNAL_SECRETS_TABLE_NAME_ASC' - | 'INTERNAL_SECRETS_TABLE_NAME_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' @@ -9677,16 +11085,52 @@ export type InternalSecretsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; -export type InvitesModuleOrderBy = +export type InternalSecretsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INTERNAL_SECRETS_TABLE_ID_ASC' + | 'INTERNAL_SECRETS_TABLE_ID_DESC' + | 'INTERNAL_SECRETS_TABLE_NAME_ASC' + | 'INTERNAL_SECRETS_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 InvitesModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMAILS_TABLE_ID_ASC' | 'EMAILS_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' @@ -9719,6 +11163,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 +11248,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 +11283,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 +11362,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 +11419,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 +11440,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 +11450,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 +11459,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 +11484,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 +11528,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 +11573,34 @@ export type NotificationsModuleOrderBy = | 'SUPPRESSIONS_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC'; +export type OauthRequestsModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type PagesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10075,54 +11643,6 @@ export type PagesModuleOrderBy = | 'SITE_SURFACE_MODULE_ID_DESC' | 'STORE_NAME_PREFIX_ASC' | 'STORE_NAME_PREFIX_DESC'; -export type PermissionsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'GET_MASK_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type PhoneNumbersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10236,6 +11756,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 +11768,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 +11783,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 +11795,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 +11816,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' @@ -10429,13 +11953,93 @@ 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' + | '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' | '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 +12069,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 +12146,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 +12185,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' @@ -10587,6 +12203,20 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type ScopeTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_TYPES_TABLE_ID_ASC' + | 'SCOPE_TYPES_TABLE_ID_DESC'; export type SecureTableProvisionOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10596,11 +12226,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 +12296,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' @@ -10724,16 +12358,12 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' | 'SITE_WEB_CONFIG_TABLE_NAME_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 +12385,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 +12416,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' @@ -10854,16 +12486,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 +12513,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' @@ -10993,6 +12623,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 +12742,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 +12795,17 @@ 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; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11171,13 +12824,16 @@ export interface CreateAgentModuleInput { 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 +12841,17 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -11209,13 +12870,16 @@ export interface AgentModulePatch { 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 +12904,7 @@ export interface CreateApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11264,7 +12928,7 @@ export interface ApiSurfaceModulePatch { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11294,7 +12958,7 @@ export interface CreateAppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11316,7 +12980,7 @@ export interface AppModulePatch { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11345,8 +13009,8 @@ export interface CreateBillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; ledgerTableId?: string; ledgerTableName?: string; meterCreditsTableId?: string; @@ -11375,8 +13039,8 @@ export interface BillingModulePatch { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; ledgerTableId?: string | null; ledgerTableName?: string | null; meterCreditsTableId?: string | null; @@ -11414,15 +13078,21 @@ export interface CreateBillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -11430,23 +13100,31 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -11454,8 +13132,10 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -11582,29 +13262,93 @@ export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } -export interface CreateCatalogModuleInput { +export interface CreateCapabilitiesModuleInput { clientMutationId?: string; - catalogModule: { + capabilitiesModule: { + actorTableId?: string; apiName?: string; - apisTableId?: string; - apisTableName?: string; - appsTableId?: string; - appsTableName?: string; - bucketsTableId?: string; - bucketsTableName?: string; + bitlen?: number; databaseId: string; - defaultPermissions?: string[]; - domainsTableId?: string; - domainsTableName?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; entityTableId?: string; - functionsTableId?: string; - functionsTableName?: string; - namespacesTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; + }; +} +export interface CapabilitiesModulePatch { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateCapabilitiesModuleInput { + clientMutationId?: string; + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; +} +export interface DeleteCapabilitiesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCatalogModuleInput { + clientMutationId?: string; + catalogModule: { + apiName?: string; + apisTableId?: string; + apisTableName?: string; + appsTableId?: string; + appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; + bucketsTableId?: string; + bucketsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + domainsTableId?: string; + domainsTableName?: string; + entityTableId?: string; + functionsTableId?: string; + functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; + namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -11631,21 +13375,27 @@ export interface CatalogModulePatch { apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: 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 +13424,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 +13508,7 @@ export interface CreateComputeLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -11699,13 +13516,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 +13529,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 +13544,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,6 +13698,42 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } +export interface CreateDataCapabilitiesFieldInput { + clientMutationId?: string; + dataCapabilitiesField: { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; + }; +} +export interface DataCapabilitiesFieldPatch { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: string | null; +} +export interface UpdateDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; +} +export interface DeleteDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -11921,7 +13789,7 @@ export interface CreateDatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11944,7 +13812,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 +13957,7 @@ export interface CreateDbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; interval?: string; prefix?: string; @@ -12118,7 +13986,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 +14108,7 @@ export interface CreateDomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -12266,7 +14134,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 +14164,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 +14350,7 @@ export interface CreateEventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -12437,6 +14359,7 @@ export interface CreateEventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; interval?: string; levelAchieved?: string; @@ -12452,9 +14375,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 +14389,9 @@ export interface CreateEventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; }; } @@ -12474,7 +14401,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 +14410,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 +14426,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 +14440,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 +14454,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 +14514,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 +14549,7 @@ export interface CreateFunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -12608,7 +14572,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 +14606,7 @@ export interface CreateFunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -12666,7 +14630,7 @@ export interface FunctionModulePatch { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -12697,7 +14661,7 @@ export interface CreateGraphExecutionModuleInput { graphExecutionModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -12721,7 +14685,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 +14719,7 @@ export interface CreateGraphModuleInput { graphModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -12774,7 +14738,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 +14770,7 @@ export interface CreateHierarchyModuleInput { chartEdgesTableId?: string; chartEdgesTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -12830,7 +14794,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 +14820,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 +14966,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -13007,11 +14974,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 +14987,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 +15136,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 +15280,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 +15352,7 @@ export interface CreateLimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -13331,6 +15392,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,6 +15418,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: { @@ -13389,9 +15513,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 +15540,6 @@ export interface CreateMembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13433,9 +15557,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 +15584,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 +15606,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 +15626,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 +15657,7 @@ export interface CreateNamespaceModuleInput { namespaceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; namespaceEventsTableId?: string; @@ -13552,7 +15678,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 +15710,7 @@ export interface CreateNotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -13610,7 +15736,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 +15766,44 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateOauthRequestsModuleInput { + clientMutationId?: string; + oauthRequestsModule: { + databaseId: string; + entityField?: string; + entityTableId?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; + }; +} +export interface OauthRequestsModulePatch { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} +export interface UpdateOauthRequestsModuleInput { + clientMutationId?: string; + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; +} +export interface DeleteOauthRequestsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreatePagesModuleInput { clientMutationId?: string; pagesModule: { @@ -13690,64 +15854,6 @@ export interface DeletePagesModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; - }; -} -export interface PermissionsModulePatch { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreatePhoneNumbersModuleInput { clientMutationId?: string; phoneNumbersModule: { @@ -13891,21 +15997,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 +16026,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 +16066,7 @@ export interface CreateRateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13975,7 +16085,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; @@ -14134,64 +16244,158 @@ export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } -export interface CreateResourceModuleInput { +export interface CreateRepositoryModuleInput { clientMutationId?: string; - resourceModule: { + repositoryModule: { apiName?: string; + buildStepsTableId?: string; + buildStepsTableName?: string; + buildsTableId?: string; + buildsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; - installationStoreName?: string; - merkleStoreModuleId?: string; - namespaceModuleId?: 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; - requirementsStateViewName?: string; - resolvedRequirementsViewName?: string; - resourceBillingRollupFunction?: string; - resourceDefinitionsTableId?: string; - resourceDefinitionsTableName?: string; - resourceEventsTableId?: string; - resourceEventsTableName?: string; - resourceInstallationsTableId?: string; - resourceInstallationsTableName?: string; - resourceStatusChecksTableId?: string; - resourceStatusChecksTableName?: string; - resourceUsageLogTableId?: string; - resourceUsageLogTableName?: string; - resourceUsageSummaryTableId?: string; - resourceUsageSummaryTableName?: string; - resourcesTableId?: string; - resourcesTableName?: string; - rollupResourceUsageSummaryFunction?: string; + repositoriesTableId?: string; + repositoriesTableName?: string; + repositoryEventsTableId?: string; + repositoryEventsTableName?: string; schemaId?: string; scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; }; } -export interface ResourceModulePatch { +export interface RepositoryModulePatch { apiName?: string | null; + buildStepsTableId?: string | null; + buildStepsTableName?: string | null; + buildsTableId?: string | null; + buildsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; - installationStoreName?: string | null; - merkleStoreModuleId?: string | null; - namespaceModuleId?: 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; - requirementsStateViewName?: string | null; - resolvedRequirementsViewName?: string | null; + repositoriesTableId?: string | null; + repositoriesTableName?: string | null; + repositoryEventsTableId?: string | null; + repositoryEventsTableName?: 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; + databaseId: string; + defaultCapabilities?: string[]; + entityField?: string; + entityTableId?: string; + installationStoreName?: string; + merkleStoreModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; + requirementsStateViewName?: string; + resolvedRequirementsViewName?: string; + resourceBillingRollupFunction?: string; + resourceDefinitionsTableId?: string; + resourceDefinitionsTableName?: string; + resourceEventsTableId?: string; + resourceEventsTableName?: string; + resourceInstallationsTableId?: string; + resourceInstallationsTableName?: string; + resourceStatusChecksTableId?: string; + resourceStatusChecksTableName?: string; + resourceUsageLogTableId?: string; + resourceUsageLogTableName?: string; + resourceUsageSummaryTableId?: string; + resourceUsageSummaryTableName?: string; + resourcesTableId?: string; + resourcesTableName?: string; + rollupResourceUsageSummaryFunction?: string; + schemaId?: string; + scope: string; + }; +} +export interface ResourceModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + entityField?: string | null; + entityTableId?: string | null; + installationStoreName?: string | null; + merkleStoreModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + registryBindingsTableId?: string | null; + registryBindingsTableName?: string | null; + requirementsStateViewName?: string | null; + resolvedRequirementsViewName?: string | null; resourceBillingRollupFunction?: string | null; resourceDefinitionsTableId?: string | null; resourceDefinitionsTableName?: string | null; @@ -14264,9 +16468,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 +16485,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -14290,9 +16498,11 @@ export interface CreateRouteModuleInput { } export interface RouteModulePatch { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -14305,6 +16515,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; @@ -14322,14 +16534,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 +16579,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 +16666,7 @@ export interface CreateSiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -14460,7 +16700,7 @@ export interface SiteSurfaceModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -14501,11 +16741,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 +16752,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -14523,11 +16762,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 +16773,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 +16801,8 @@ export interface CreateStorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -14606,8 +16844,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; @@ -14651,11 +16889,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 +16900,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -14673,11 +16910,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 +16921,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; @@ -14828,6 +17064,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 +17233,7 @@ export interface CreateWebhookModuleInput { webhookModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -14994,7 +17258,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 +17297,9 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + CapabilitiesModule: { + dataCapabilitiesFields: 'DataCapabilitiesField', + }, CatalogModule: { apiSurfaceModules: 'ApiSurfaceModule', appModules: 'AppModule', @@ -15048,7 +17315,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -15058,8 +17324,10 @@ export const connectionFieldsMap = { webhookModules: 'WebhookModule', }, MerkleStoreModule: { + contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -15068,14 +17336,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,79 +17367,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionRelationInput { - apiRequired?: boolean; - clientMutationId?: string; - createIndex?: boolean; - databaseId?: string; - deleteAction?: string; - exposeInApi?: boolean; - fieldName?: string; - grants?: Record; - isRequired?: boolean; - junctionSchemaId?: string; - junctionTableId?: string; - junctionTableName?: string; - nodes?: Record; - policies?: Record; - relationType?: string; - sourceFieldName?: string; - sourceTableId?: string; - targetFieldName?: string; - targetTableId?: string; - useCompositeKey?: boolean; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - operator?: string; - paramName?: string; - sourceFieldId?: string; - sourceTableId?: string; - targetFieldId?: string; - targetTableId?: string; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - description?: string; - fields?: Record; - fullTextSearches?: Record; - grants?: Record; - indexes?: Record; - nodes?: Record; - policies?: Record; - schemaId?: string; - tableId?: string; - tableName?: string; - uniqueConstraints?: Record; - useRls?: boolean; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} /** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ export interface BlueprintToManyBlueprintConstructionFilter { /** Filters to entities where every related entity matches. */ @@ -15201,6 +17394,15 @@ export interface BlueprintTemplateToManyBlueprintFilter { /** Filters to entities where at least one related entity matches. */ some?: BlueprintFilter; } +/** A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: DataCapabilitiesFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: DataCapabilitiesFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DataCapabilitiesFieldFilter; +} /** A filter to be used against many `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleToManyApiSurfaceModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15298,15 +17500,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 +17527,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 +17554,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 +17608,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 +17647,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 +17665,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 +17680,17 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -15494,13 +17710,16 @@ export interface AgentModuleInput { 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 +17734,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15536,7 +17755,7 @@ export interface AppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15556,8 +17775,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -15586,16 +17805,22 @@ export interface BillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -15603,8 +17828,10 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ export interface BlueprintInput { @@ -15701,6 +17928,31 @@ export interface BlueprintTemplateInput { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string; } +/** An input for mutations affecting `CapabilitiesModule` */ +export interface CapabilitiesModuleInput { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `CatalogModule` */ export interface CatalogModuleInput { apiName?: string; @@ -15708,22 +17960,28 @@ export interface CatalogModuleInput { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: 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 +18001,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 +18047,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,6 +18115,20 @@ export interface CryptoAuthModuleInput { userField: string; usersTableId?: string; } +/** An input for mutations affecting `DataCapabilitiesField` */ +export interface DataCapabilitiesFieldInput { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; +} /** An input for mutations affecting `DatabaseProvisionModule` */ export interface DatabaseProvisionModuleInput { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -15841,7 +18151,7 @@ export interface DatabaseProvisionModuleInput { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record; /** Additional configuration options for provisioning */ options?: Record; @@ -15861,7 +18171,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15966,7 +18276,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -16025,7 +18335,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -16047,14 +18357,37 @@ export interface DomainModuleInput { schemaId?: string; scope: string; } -/** An input for mutations affecting `EmailsModule` */ -export interface EmailsModuleInput { +/** 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; - ownerTableId?: string; + policies?: Record; + prefix?: string; privateApiName?: string; - privateSchemaId?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + apiName?: string; + databaseId: string; + id?: string; + ownerTableId?: string; + privateApiName?: string; + privateSchemaId?: string; schemaId?: string; tableId?: string; tableName: string; @@ -16074,7 +18407,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 +18417,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 +18459,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 +18490,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 +18512,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 +18556,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 +18570,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 +18590,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 +18616,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 +18654,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -16327,6 +18663,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -16343,9 +18680,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 +18694,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 +18741,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -16413,7 +18766,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -16436,7 +18789,7 @@ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -16462,7 +18815,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -16486,7 +18839,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -16504,30 +18857,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 +18885,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 +18927,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -16634,6 +18988,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 +19048,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 +19093,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -16715,6 +19110,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 +19153,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 +19181,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16771,14 +19193,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 +19216,7 @@ export interface MerkleStoreModuleInput { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -16816,7 +19239,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -16838,6 +19261,21 @@ export interface NotificationsModuleInput { suppressionsTableId?: string; userSettingsTableId?: string; } +/** An input for mutations affecting `OauthRequestsModule` */ +export interface OauthRequestsModuleInput { + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; +} /** An input for mutations affecting `PagesModule` */ export interface PagesModuleInput { apiName?: string; @@ -16860,31 +19298,6 @@ export interface PagesModuleInput { sitesTableId?: string; storeNamePrefix?: string; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `PhoneNumbersModule` */ export interface PhoneNumbersModuleInput { apiName?: string; @@ -16946,22 +19359,24 @@ export interface PrincipalAuthModuleInput { export interface ProfilesModuleInput { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; id?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -16975,7 +19390,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -17143,11 +19558,52 @@ 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; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17161,6 +19617,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -17201,9 +19659,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 +19677,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -17225,6 +19687,14 @@ export interface RouteModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `ScopeTypesModule` */ +export interface ScopeTypesModuleInput { + databaseId: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} /** An input for mutations affecting `SecureTableProvision` */ export interface SecureTableProvisionInput { /** The database this provision belongs to. Required. */ @@ -17235,10 +19705,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 +19753,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17311,11 +19785,9 @@ export interface SiteSurfaceModuleInput { } /** 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 +19797,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -17342,8 +19815,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -17378,11 +19851,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 +19863,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -17450,6 +19922,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 +19989,7 @@ export interface WebauthnCredentialsModuleInput { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -17664,6 +20146,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 +20209,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17743,8 +20258,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 +20303,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 +20360,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 +20370,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 +20408,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. */ @@ -17918,8 +20441,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17993,8 +20520,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 +20591,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 +20642,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 +20694,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 +20735,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 +20799,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,10 +20840,10 @@ export interface GraphModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } -/** A filter to be used against `PagesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PagesModuleFilter { +/** 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?: PagesModuleFilter[]; + and?: K8sAdmissionModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `createdAt` field. */ @@ -18345,16 +20854,18 @@ export interface PagesModuleFilter { 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?: PagesModuleFilter; + not?: K8sAdmissionModuleFilter; /** Checks for any expressions in this list. */ - or?: PagesModuleFilter[]; - /** Filter by the object’s `pagesTableId` field. */ - pagesTableId?: UUIDFilter; + or?: K8sAdmissionModuleFilter[]; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `prefix` field. */ @@ -18373,16 +20884,61 @@ export interface PagesModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `siteSurfaceModule` relation. */ - siteSurfaceModule?: SiteSurfaceModuleFilter; - /** A related `siteSurfaceModule` exists. */ - siteSurfaceModuleExists?: boolean; - /** Filter by the object’s `siteSurfaceModuleId` field. */ - siteSurfaceModuleId?: UUIDFilter; - /** Filter by the object’s `sitesTableId` field. */ - sitesTableId?: UUIDFilter; - /** Filter by the object’s `storeNamePrefix` field. */ - storeNamePrefix?: StringFilter; + /** 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. */ + and?: PagesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: PagesModuleFilter; + /** Checks for any expressions in this list. */ + or?: PagesModuleFilter[]; + /** Filter by the object’s `pagesTableId` field. */ + pagesTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; + /** Filter by the object’s `sitesTableId` field. */ + sitesTableId?: UUIDFilter; + /** Filter by the object’s `storeNamePrefix` field. */ + storeNamePrefix?: StringFilter; } /** A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceModuleFilter { @@ -18392,16 +20948,12 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ 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 +20988,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 +21033,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 +21341,88 @@ export interface IntFilter { /** Not included in the specified list. */ notIn?: number[]; } +/** A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not included in the specified list. */ + notIn?: boolean[]; +} /** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleFilter { /** Checks for all expressions in this list. */ @@ -18725,14 +21445,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -18749,6 +21473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -18765,6 +21493,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 +21554,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 +21611,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 +21627,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. */ @@ -18983,8 +21711,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 +21762,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 +21853,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 +21867,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,10 +21887,6 @@ 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 `maxBulkFiles` field. */ @@ -19102,118 +21901,32 @@ export interface StorageModuleFilter { 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 `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 `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 BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { @@ -19279,62 +21992,6 @@ export type ProvisionBucketPayloadSelect = { 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; -}; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ agentModule?: AgentModule | null; @@ -19695,6 +22352,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 +22442,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 +22532,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 +22577,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 +22712,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 +23207,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 +23387,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 +23702,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 +23792,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. */ @@ -21111,28 +23993,73 @@ export interface UpdateIntegrationProvidersModulePayload { integrationProvidersModule?: IntegrationProvidersModule | null; integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type UpdateIntegrationProvidersModulePayloadSelect = { +export type UpdateIntegrationProvidersModulePayloadSelect = { + clientMutationId?: boolean; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; + }; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIntegrationProvidersModulePayload { + clientMutationId?: string | null; + /** The `IntegrationProvidersModule` that was deleted by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; +} +export type DeleteIntegrationProvidersModulePayloadSelect = { + clientMutationId?: boolean; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; + }; + integrationProvidersModuleEdge?: { + 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; - integrationProvidersModule?: { - select: IntegrationProvidersModuleSelect; + internalConfigModule?: { + select: InternalConfigModuleSelect; }; - integrationProvidersModuleEdge?: { - select: IntegrationProvidersModuleEdgeSelect; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; }; }; -export interface DeleteIntegrationProvidersModulePayload { +export interface DeleteInternalConfigModulePayload { clientMutationId?: string | null; - /** The `IntegrationProvidersModule` that was deleted by this mutation. */ - integrationProvidersModule?: IntegrationProvidersModule | null; - integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; + /** The `InternalConfigModule` that was deleted by this mutation. */ + internalConfigModule?: InternalConfigModule | null; + internalConfigModuleEdge?: InternalConfigModuleEdge | null; } -export type DeleteIntegrationProvidersModulePayloadSelect = { +export type DeleteInternalConfigModulePayloadSelect = { clientMutationId?: boolean; - integrationProvidersModule?: { - select: IntegrationProvidersModuleSelect; + internalConfigModule?: { + select: InternalConfigModuleSelect; }; - integrationProvidersModuleEdge?: { - select: IntegrationProvidersModuleEdgeSelect; + internalConfigModuleEdge?: { + select: InternalConfigModuleEdgeSelect; }; }; export interface CreateInternalSecretsModulePayload { @@ -21225,6 +24152,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. */ @@ -21270,6 +24242,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 +24512,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 +24602,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. */ @@ -21945,6 +24962,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 +25142,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 +25637,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 +25907,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 +26003,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 +26027,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 +26063,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 +26099,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 +26231,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 +26279,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 +26363,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 +26387,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 +26447,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 +26483,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 +26507,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 +26579,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. */ @@ -23471,6 +26699,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 +26747,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 +26879,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..9f631eee88 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'; @@ -61,9 +69,11 @@ export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; 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 +84,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/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..f2236fd4e4 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; @@ -63,55 +42,6 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -/** - * Variables for provisionCheckConstraint - * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for provisionRelation - * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -/** - * Variables for provisionSpatialRelation - * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -/** - * Variables for provisionTable - * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -/** - * Variables for provisionUniqueConstraint - * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} export function createMutationOperations(client: OrmClient) { return { constructBlueprint: ( @@ -201,208 +131,5 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), }; } diff --git a/sdk/constructive-cli/src/modules/orm/query/index.ts b/sdk/constructive-cli/src/modules/orm/query/index.ts deleted file mode 100644 index 70496d57ba..0000000000 --- a/sdk/constructive-cli/src/modules/orm/query/index.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import { connectionFieldsMap } from '../input-types'; -/** - * Variables for resolveBlueprintField - * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - fieldName?: string; - tableId?: string; -} -/** - * Variables for resolveBlueprintTable - * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - defaultSchemaId?: string; - schemaName?: string; - tableMap?: unknown; - tableName?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - { - name: 'tableId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'tableName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - }; -} diff --git a/sdk/constructive-cli/src/objects/README.md b/sdk/constructive-cli/src/objects/README.md index 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..c7b2ebad16 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -33,11 +33,14 @@ csdk auth set-token | `store` | store CRUD operations | | `init-empty-repo` | initEmptyRepo | | `insert-node-at-path` | insertNodeAtPath | +| `insert-nodes-at-paths` | insertNodesAtPaths | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, and lifecycle settings. | +| `set-and-commit` | setAndCommit | | `set-data-at-path` | setDataAtPath | +| `set-many-and-commit` | setManyAndCommit | ## Infrastructure Commands @@ -243,6 +246,23 @@ insertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `insert-nodes-at-paths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. @@ -258,6 +278,25 @@ and lifecycle settings. | `--input.bucketKey` | String (required) | | `--input.ownerId` | UUID | +### `set-and-commit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `set-data-at-path` setDataAtPath @@ -273,6 +312,22 @@ setDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `set-many-and-commit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ## Output All commands output JSON to stdout. Pipe to `jq` for formatting: diff --git a/sdk/constructive-cli/src/objects/cli/commands.ts b/sdk/constructive-cli/src/objects/cli/commands.ts index e04db329a7..601e2e2f66 100644 --- a/sdk/constructive-cli/src/objects/cli/commands.ts +++ b/sdk/constructive-cli/src/objects/cli/commands.ts @@ -13,8 +13,11 @@ import refCmd from './commands/ref'; import storeCmd from './commands/store'; import initEmptyRepoCmd from './commands/init-empty-repo'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; +import insertNodesAtPathsCmd from './commands/insert-nodes-at-paths'; import provisionBucketCmd from './commands/provision-bucket'; +import setAndCommitCmd from './commands/set-and-commit'; import setDataAtPathCmd from './commands/set-data-at-path'; +import setManyAndCommitCmd from './commands/set-many-and-commit'; const createCommandMap: () => Record< string, ( @@ -32,11 +35,14 @@ const createCommandMap: () => Record< store: storeCmd, 'init-empty-repo': initEmptyRepoCmd, 'insert-node-at-path': insertNodeAtPathCmd, + 'insert-nodes-at-paths': insertNodesAtPathsCmd, 'provision-bucket': provisionBucketCmd, + 'set-and-commit': setAndCommitCmd, 'set-data-at-path': setDataAtPathCmd, + 'set-many-and-commit': setManyAndCommitCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n commit commit CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n set-data-at-path setDataAtPath\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n commit commit CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/objects/cli/commands/insert-nodes-at-paths.ts b/sdk/constructive-cli/src/objects/cli/commands/insert-nodes-at-paths.ts new file mode 100644 index 0000000000..30d2c129a1 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation insertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { InsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'insert-nodes-at-paths - insertNodesAtPaths\n\nUsage: insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .insertNodesAtPaths( + parsedAnswers as unknown as InsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: InsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: insertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts new file mode 100644 index 0000000000..cb702ff301 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation setAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('set-and-commit - setAndCommit\n\nUsage: set-and-commit [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setAndCommit( + parsedAnswers as unknown as SetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts new file mode 100644 index 0000000000..8b1d8dba43 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation setManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetManyAndCommitVariables } from '../../orm/mutation'; +import type { SetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'set-many-and-commit - setManyAndCommit\n\nUsage: set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setManyAndCommit( + parsedAnswers as unknown as SetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 7e649ee1f0..0f19488376 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -228,6 +228,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. @@ -246,6 +261,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -260,3 +290,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..1ca44bc9d7 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -665,6 +665,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -674,6 +683,17 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -681,6 +701,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** An input for mutations affecting `Commit` */ export interface CommitInput { /** User who authored the changes */ @@ -758,6 +786,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -780,6 +816,20 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -788,6 +838,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ diff --git a/sdk/constructive-cli/src/objects/orm/mutation/index.ts b/sdk/constructive-cli/src/objects/orm/mutation/index.ts index a0c21cb2bd..7d08bdc42e 100644 --- a/sdk/constructive-cli/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/objects/orm/mutation/index.ts @@ -9,16 +9,25 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, ProvisionBucketInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, ProvisionBucketPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, ProvisionBucketPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface InitEmptyRepoVariables { @@ -27,6 +36,9 @@ export interface InitEmptyRepoVariables { export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -37,9 +49,15 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export function createMutationOperations(client: OrmClient) { return { initEmptyRepo: ( @@ -100,6 +118,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -129,6 +176,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -158,5 +234,34 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), }; } diff --git a/sdk/constructive-cli/src/remote/README.md b/sdk/constructive-cli/src/remote/README.md new file mode 100644 index 0000000000..6e5a655487 --- /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:** 1 + +**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..63b26d60b3 --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/README.md @@ -0,0 +1,228 @@ +# 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 | +| `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. | + +## 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 + +### `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. + +- **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..ba6190e36b --- /dev/null +++ b/sdk/constructive-cli/src/remote/cli/commands.ts @@ -0,0 +1,61 @@ +/** + * 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 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, + '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 provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; +export const commands = async ( + argv: Partial>, + prompter: Inquirerer, + 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/provision-bucket.ts b/sdk/constructive-cli/src/remote/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..ecd2e539d5 --- /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 - 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' + ); + 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..b71ca52e1b --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/README.md @@ -0,0 +1,187 @@ +# 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.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. + +- **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..622e69f23f --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/input-types.ts @@ -0,0 +1,1621 @@ +/** + * 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 (NULL until enrollment completes) */ + 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 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 (NULL until enrollment completes) */ + 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 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 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..989afbcbd6 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * 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 { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + 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..de61312502 --- /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:** 5 + +**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..95e5958fea --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/README.md @@ -0,0 +1,327 @@ +# 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` | 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. | +| `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` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String (required) | + | `--input.ownerId` | UUID | + +### `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..ed9bf6d5dd --- /dev/null +++ b/sdk/constructive-cli/src/storage/cli/commands.ts @@ -0,0 +1,71 @@ +/** + * 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 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-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 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 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..ecd2e539d5 --- /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 - 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' + ); + 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-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..c01b7b9f7c --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/README.md @@ -0,0 +1,293 @@ +# 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` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).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..8f092228bf --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/input-types.ts @@ -0,0 +1,2175 @@ +/** + * 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 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 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 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 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 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..d7ef722242 --- /dev/null +++ b/sdk/constructive-cli/src/storage/orm/mutation/index.ts @@ -0,0 +1,205 @@ +/** + * 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, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * 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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * 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' + ), + }), + 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..257a5a53e7 100644 --- a/sdk/constructive-cli/src/usage/cli/README.md +++ b/sdk/constructive-cli/src/usage/cli/README.md @@ -44,6 +44,8 @@ csdk auth set-token | `org-limit-default` | orgLimitDefault CRUD operations | | `org-limit-event` | orgLimitEvent CRUD operations | | `org-limit-warning` | orgLimitWarning CRUD operations | +| `capture-app-limit-defaults` | captureAppLimitDefaults | +| `capture-org-limit-defaults` | captureOrgLimitDefaults | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -601,6 +603,20 @@ CRUD operations for OrgLimitWarning records. ## Custom Operations +### `capture-app-limit-defaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +### `capture-org-limit-defaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/usage/cli/commands.ts b/sdk/constructive-cli/src/usage/cli/commands.ts index 42ca3d0cfd..f1a0b81f4c 100644 --- a/sdk/constructive-cli/src/usage/cli/commands.ts +++ b/sdk/constructive-cli/src/usage/cli/commands.ts @@ -24,6 +24,8 @@ import orgLimitCreditCmd from './commands/org-limit-credit'; import orgLimitDefaultCmd from './commands/org-limit-default'; import orgLimitEventCmd from './commands/org-limit-event'; import orgLimitWarningCmd from './commands/org-limit-warning'; +import captureAppLimitDefaultsCmd from './commands/capture-app-limit-defaults'; +import captureOrgLimitDefaultsCmd from './commands/capture-org-limit-defaults'; import provisionBucketCmd from './commands/provision-bucket'; import seedAppLimitCapsDefaultsCmd from './commands/seed-app-limit-caps-defaults'; import seedAppLimitDefaultsCmd from './commands/seed-app-limit-defaults'; @@ -57,6 +59,8 @@ const createCommandMap: () => Record< 'org-limit-default': orgLimitDefaultCmd, 'org-limit-event': orgLimitEventCmd, 'org-limit-warning': orgLimitWarningCmd, + 'capture-app-limit-defaults': captureAppLimitDefaultsCmd, + 'capture-org-limit-defaults': captureOrgLimitDefaultsCmd, 'provision-bucket': provisionBucketCmd, 'seed-app-limit-caps-defaults': seedAppLimitCapsDefaultsCmd, 'seed-app-limit-defaults': seedAppLimitDefaultsCmd, @@ -64,7 +68,7 @@ const createCommandMap: () => Record< 'seed-org-limit-defaults': seedOrgLimitDefaultsCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-limit-cap appLimitCap CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-default appLimitDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n seed-app-limit-caps-defaults seedAppLimitCapsDefaults\n seed-app-limit-defaults seedAppLimitDefaults\n seed-org-limit-caps-defaults seedOrgLimitCapsDefaults\n seed-org-limit-defaults seedOrgLimitDefaults\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-limit-cap appLimitCap CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-default appLimitDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n capture-app-limit-defaults captureAppLimitDefaults\n capture-org-limit-defaults captureOrgLimitDefaults\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n seed-app-limit-caps-defaults seedAppLimitCapsDefaults\n seed-app-limit-defaults seedAppLimitDefaults\n seed-org-limit-caps-defaults seedOrgLimitCapsDefaults\n seed-org-limit-defaults seedOrgLimitDefaults\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/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/orm/README.md b/sdk/constructive-cli/src/usage/orm/README.md index c6ce7b9d31..c0c63ccafe 100644 --- a/sdk/constructive-cli/src/usage/orm/README.md +++ b/sdk/constructive-cli/src/usage/orm/README.md @@ -678,6 +678,28 @@ const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).exe ## Custom Operations +### `db.query.captureAppLimitDefaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureAppLimitDefaults().execute(); +``` + +### `db.query.captureOrgLimitDefaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureOrgLimitDefaults().execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/usage/orm/index.ts b/sdk/constructive-cli/src/usage/orm/index.ts index 7d48027d3b..04e02a468b 100644 --- a/sdk/constructive-cli/src/usage/orm/index.ts +++ b/sdk/constructive-cli/src/usage/orm/index.ts @@ -23,12 +23,14 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -74,6 +76,7 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/usage/orm/input-types.ts b/sdk/constructive-cli/src/usage/orm/input-types.ts index f8df1c43d8..330559a4a4 100644 --- a/sdk/constructive-cli/src/usage/orm/input-types.ts +++ b/sdk/constructive-cli/src/usage/orm/input-types.ts @@ -266,7 +266,7 @@ export interface AppLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -277,7 +277,7 @@ export interface AppLimit { /** Start of the current metering window; NULL means no time window */ windowStart?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ +/** Redeemable credit codes managed by admins with the add_credits capability */ export interface AppLimitCreditCode { /** Human-readable credit code (case-insensitive, unique) */ code?: string | null; @@ -394,7 +394,7 @@ export interface OrgLimitAggregate { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -443,7 +443,7 @@ export interface OrgLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -2229,7 +2229,7 @@ export interface AppLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2376,7 +2376,7 @@ export interface OrgLimitAggregateInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2425,7 +2425,7 @@ export interface OrgLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; diff --git a/sdk/constructive-cli/src/usage/orm/query/index.ts b/sdk/constructive-cli/src/usage/orm/query/index.ts new file mode 100644 index 0000000000..4972b387c7 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/query/index.ts @@ -0,0 +1,51 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + captureAppLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureAppLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureAppLimitDefaults', + fieldName: 'captureAppLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureAppLimitDefaults', + 'captureAppLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + captureOrgLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureOrgLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureOrgLimitDefaults', + fieldName: 'captureOrgLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureOrgLimitDefaults', + 'captureOrgLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/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..d60b64d525 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:** 1 - **Custom mutations:** 3 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index b7fcd31f1c..b809695cc6 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,39 +156,6 @@ 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 | | `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 @@ -275,27 +187,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 +208,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 +297,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 +318,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 +355,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 +397,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 +418,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 +621,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 +642,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 +663,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, 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, 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: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', createChildCascadeOwners: '', createdBy: '', createdByPrincipal: '', deleteMemberCascadeChildren: '', entityId: '', inviteProfileAssignmentMode: '', limitAllocationMode: '', populateMemberEmail: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### OrgOwnerGrant @@ -1019,207 +700,8 @@ 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` - -orgCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - ### `useOrgIsManagerOfQuery` orgIsManagerOf 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..424dc47521 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,8 @@ 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 './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/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..eeb0a529ca 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,12 @@ 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 orgIsManagerOf */ orgIsManagerOf: (variables?: object) => ['orgIsManagerOf', variables] as const, } as const; @@ -456,27 +292,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 +315,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..5380fbc13b 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. @@ -1317,6 +936,7 @@ CRUD operations for OrgMembershipSetting records. | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -1325,18 +945,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, 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, 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: '', 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,312 +1001,8 @@ 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` - -orgCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf 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..0018f066fb 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,18 +612,7 @@ 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 { @@ -754,6 +626,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 +640,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 +655,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 +669,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 +710,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 +731,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 +743,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 +756,6 @@ export type AppCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; }; export type AppClaimedInviteSelect = { createdAt?: boolean; @@ -1136,15 +790,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 +809,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 +830,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 +847,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 +862,6 @@ export type OrgCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; }; export type OrgChartEdgeSelect = { childId?: boolean; @@ -1447,9 +930,6 @@ export type OrgInviteSelect = { receiverId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: OrgProfileSelect; - }; }; export type OrgMemberSelect = { actorId?: boolean; @@ -1478,6 +958,7 @@ export type OrgMembershipSelect = { capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; granted?: boolean; id?: boolean; @@ -1492,47 +973,21 @@ 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; @@ -1541,6 +996,7 @@ export type OrgMembershipSettingSelect = { createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1549,6 +1005,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1559,108 +1016,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 +1037,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 +1053,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 +1142,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 +1154,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 +1184,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 +1200,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 +1216,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 +1239,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 +1281,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 +1299,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 +1462,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 +1530,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 +1562,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 +1578,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,30 +1594,8 @@ 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. */ @@ -2583,6 +1612,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 +1634,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 +1659,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 +1676,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 +1688,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 +1781,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 +1809,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 +1831,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 +1850,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 +1884,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 +1898,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 +2099,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 +2131,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,23 +2153,9 @@ 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' @@ -3448,6 +2163,8 @@ export type OrgMembershipSettingOrderBy = | '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 +2189,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 +2210,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 +2233,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 +2251,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 +2365,7 @@ export interface CreateAppMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -3796,12 +2376,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 +2394,7 @@ export interface AppMembershipPatch { isVerified?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -3826,16 +2409,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 +2433,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 +2455,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 +2505,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 +2525,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 +2802,7 @@ export interface CreateOrgMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -4417,12 +2815,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 +2835,7 @@ export interface OrgMembershipPatch { isReadOnly?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -4449,16 +2850,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,28 +2874,6 @@ 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: { @@ -4499,12 +2882,14 @@ export interface CreateOrgMembershipSettingInput { 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 { @@ -4513,12 +2898,14 @@ export interface OrgMembershipSettingPatch { 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 +2940,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 +2960,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 +3037,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 +3072,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 +3083,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 +3091,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 +3165,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 +3186,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 +3200,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 +3213,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 +3241,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 +3251,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 */ @@ -5503,1134 +3401,91 @@ export interface OrgMembershipInput { actorId: string; /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ capabilities?: string; - createdAt?: string; - createdBy?: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Bitmask of 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; + 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) */ + 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; + /** 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; @@ -6714,51 +3569,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 +3614,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 +3884,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 +3914,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 +4019,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 +4064,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 +4514,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 +4604,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 +4628,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 +4700,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 +4712,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 +4748,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 +4868,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 +4892,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/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts index cb4b15d057..0e78db2c2c 100644 --- a/sdk/constructive-react/src/admin/orm/query/index.ts +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -6,50 +6,7 @@ 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 OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; @@ -58,262 +15,6 @@ 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, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetByMask', - fieldName: 'orgCapabilitiesGetByMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetByMask', - 'orgCapabilitiesGetByMask', - 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]', - }, - ], - 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', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index d92e3aacc8..be3659fefa 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,24 +550,9 @@ 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' @@ -746,6 +561,8 @@ export type OrgMembershipSettingOrderBy = | '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 +587,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 +609,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 +656,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 +685,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 +728,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 +850,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 +925,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 +941,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 +956,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 +970,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 +978,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 +1008,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 +1025,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 +1046,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 +1056,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 +1077,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 +1122,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 +1249,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 +1274,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 +1299,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 +1344,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 +1354,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 +1366,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 +1386,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 +1407,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; @@ -2364,59 +1419,35 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -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 { +export interface DeleteOrgGrantInput { 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 +1555,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 +1590,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 +1639,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 +1899,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 +2102,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 +2118,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 +2133,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 +2147,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 +2161,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 +2193,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 +2210,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 +2235,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 +2245,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,55 +2270,7 @@ 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 { @@ -3442,6 +2288,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,6 +2310,8 @@ 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 { @@ -3475,6 +2325,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,6 +2339,7 @@ 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 { @@ -3501,6 +2353,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 +2367,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 { @@ -3544,411 +2380,44 @@ export interface OrgOwnerGrantFilter { /** 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?: 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; + 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` */ -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 +2453,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 +2483,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 +2514,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 +2568,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 +2580,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 +2591,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 +2605,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 +2633,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 +2647,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 +2661,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 +2675,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 +2745,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 +2766,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 +2814,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 +2832,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 +2898,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 +2910,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 +2958,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 +2976,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 +3042,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,36 +3054,6 @@ 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; @@ -5013,18 +3082,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 +3124,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 +3142,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 +3208,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 +3220,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 +3264,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 +3276,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 +3300,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 +3312,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 +3324,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 +3336,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 +3396,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 +3414,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[]; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 5c993570ed..c415a15be6 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,23 +240,18 @@ 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; @@ -339,6 +260,7 @@ export interface OrgMembershipSetting { createChildCascadeOwners: boolean | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; deleteMemberCascadeChildren: boolean | null; entityId: string | null; id: string | null; @@ -347,6 +269,7 @@ export interface OrgMembershipSetting { populateMemberEmail: boolean | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface OrgOwnerGrant { actorId: string | null; @@ -357,54 +280,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..7dd79d36ea 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -77,6 +77,66 @@ 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 | +| `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 | 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, @@ -110,20 +170,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 +191,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 +212,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 +233,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 +254,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 +275,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 +296,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,20 +317,272 @@ 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 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..adb10e51fc 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,6 +441,534 @@ 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` 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..e2ce4c5687 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; - ownerId?: string; - parentId?: string; - personaId?: string; - status?: string; - systemPrompt?: 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; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +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; +} +/** 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 `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; +} +/** 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 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; +/** 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 UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** 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 DeleteAgentInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** 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 DeleteAgentMessageInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** 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 DeleteAgentPersonaInput { - 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 CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: 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 AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** 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; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** 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; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: 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; +} +/** 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; +} +/** 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 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 `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 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 `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 UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** 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 DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** 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 CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** 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 AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** 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 UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** 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 DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** 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 DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** 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; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: 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; } -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 `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 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 `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 UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** 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; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: 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; } -// ============ 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 `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 `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 `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 `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 `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 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 `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 `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 `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 `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 `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; } -/** 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 `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; } -/** 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 `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; +/** 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 `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 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 `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 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[]; } -/** 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 `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; } -/** 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 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?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + 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 `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?: AgentMessageFilter; + not?: AgentPersonaFilter; /** 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?: 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; +} +/** 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 `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; +/** 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?: AgentThreadFilter[]; + 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 `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** 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?: AgentThreadFilter; + not?: AgentResourceFilter; /** 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; + 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?: 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 `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 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?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; + 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 `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: PlatformAgentPersonaFilter; /** 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; + 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; } -/** 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 `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** 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?: PlatformAgentPromptFilter[]; + /** 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 `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; - /** 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; -} -/** 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 `embedding` field. */ - embedding?: VectorFilter; /** 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,992 @@ 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 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 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; +} +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 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 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 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 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; } -/** 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 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; +} +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 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 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 `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 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 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 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; } -/** 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 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; } -/** 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 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 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 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; } -// ============ 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 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; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type CreateAgentThreadPayloadSelect = { + 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 UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type UpdateAgentThreadPayloadSelect = { + 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 DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted 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 DeleteAgentPayloadSelect = { - 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 DeletePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type DeletePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface UpdatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type UpdatePlatformAgentEventPayloadSelect = { 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 DeletePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface CreatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type CreatePlatformAgentMessagePayloadSelect = { 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 UpdatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface DeletePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type DeletePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; +}; +export interface UpdatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; + 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 +7384,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/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index e9eda96232..161f3675df 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,205 +3193,135 @@ 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; /** 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 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; + 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 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,6 +3890,78 @@ 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; @@ -1738,6 +4030,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 +4194,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[]; 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..6283334d89 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 86 -- **Custom queries:** 6 +- **Custom queries:** 5 - **Custom mutations:** 11 **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..15a3e41d96 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 | @@ -182,11 +177,6 @@ function App() { | `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 | | `useIndicesQuery` | Query | List all indices | | `useIndexQuery` | Query | Get one index | | `useCreateIndexMutation` | Mutation | Create a index | @@ -327,6 +317,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 | @@ -397,6 +392,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 | @@ -465,13 +465,11 @@ function App() { | `useApiSchemaNamesQuery` | Query | apiSchemaNames | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | | `useResolveDeepLinkQuery` | Query | resolveDeepLink | -| `useResolveHttpRouteQuery` | Query | resolveHttpRoute | | `useResolveRouteQuery` | Query | resolveRoute | | `useResolveSiteAppLinksQuery` | Query | resolveSiteAppLinks | +| `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | | `useApplyRlsMutation` | Mutation | applyRls | -| `useAppsInstallAppMutation` | Mutation | appsInstallApp | -| `useAppsUninstallAppMutation` | Mutation | appsUninstallApp | -| `useAppsUpgradeAppMutation` | Mutation | appsUpgradeApp | +| `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | | `useDomainsAssignSubdomainMutation` | Mutation | domainsAssignSubdomain | | `usePlatformDomainsAssignSubdomainMutation` | Mutation | platformDomainsAssignSubdomain | | `usePlatformSitesProvisionStaticSiteMutation` | Mutation | platformSitesProvisionStaticSite | @@ -479,6 +477,7 @@ function App() { Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, and lifecycle settings. | +| `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. @@ -554,46 +553,25 @@ const { mutate: create } = useCreateApiSettingMutation({ create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); ``` -### AppComponent +### AstMigration ```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 } }, +// 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 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: '' }); -``` - -### App - -```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 } }, -}); - -// 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 @@ -748,20 +726,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 +747,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 @@ -1121,27 +1099,6 @@ const { mutate: create } = useCreateHostnameBindingMutation({ create({ domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }); ``` -### HttpRoute - -```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 } }, -}); - -// 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 } }, -}); - -// Create a httpRoute -const { mutate: create } = useCreateHttpRouteMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }); -``` - ### Index ```typescript @@ -1168,20 +1125,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 @@ -1336,20 +1293,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 @@ -1462,20 +1419,20 @@ create({ emailIdentityId: '', siteId: '' }); ```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 @@ -1525,20 +1482,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 @@ -1672,20 +1629,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 +1687,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 +1734,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, 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, 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: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` ### Route @@ -1777,20 +1755,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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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({ config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); ``` ### Schema @@ -1861,20 +1839,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 @@ -2024,6 +2002,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 @@ -2334,19 +2333,6 @@ resolveDeepLink | `linkSlug` | String | | `targetSiteId` | UUID | -### `useResolveHttpRouteQuery` - -resolveHttpRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - ### `useResolveRouteQuery` resolveRoute @@ -2371,49 +2357,38 @@ resolveSiteAppLinks |----------|------| | `targetSiteId` | UUID | -### `useApplyRlsMutation` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ApplyRlsInput (required) | - -### `useAppsInstallAppMutation` +### `useAcceptDatabaseTransferMutation` -appsInstallApp +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsInstallAppInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | -### `useAppsUninstallAppMutation` +### `useApplyRlsMutation` -appsUninstallApp +applyRls - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `input` | ApplyRlsInput (required) | -### `useAppsUpgradeAppMutation` +### `useCancelDatabaseTransferMutation` -appsUpgradeApp +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ### `useDomainsAssignSubdomainMutation` @@ -2462,6 +2437,17 @@ and lifecycle settings. |----------|------| | `input` | ProvisionBucketInput (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. diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index c76aeb1015..9ced89a760 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, HostnameBinding, 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, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index 059fe0663f..0fddca7167 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, @@ -45,7 +44,6 @@ import { fullTextSearchKeys, functionKeys, hostnameBindingKeys, - httpRouteKeys, indexKeys, managedDomainKeys, nodeTypeRegistryKeys, @@ -74,6 +72,7 @@ import { policyKeys, primaryKeyConstraintKeys, pubkeySettingKeys, + redirectKeys, rlsSettingKeys, routeBindingKeys, routeKeys, @@ -88,6 +87,7 @@ import { siteThemeKeys, siteWebConfigKeys, spatialRelationKeys, + sqlActionKeys, tableBehaviorKeys, tableKeys, tableGrantKeys, @@ -170,35 +170,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: { @@ -608,23 +594,6 @@ export const invalidate = { queryKey: hostnameBindingKeys.detail(id), }), }, - /** Invalidate httpRoute queries */ httpRoute: { - /** Invalidate all httpRoute queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.all, - }), - /** Invalidate httpRoute list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.lists(), - }), - /** Invalidate a specific httpRoute */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: httpRouteKeys.detail(id), - }), - }, /** Invalidate index queries */ index: { /** Invalidate all index queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1092,6 +1061,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({ @@ -1321,6 +1304,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 +1561,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: ( @@ -1756,11 +1751,6 @@ export const remove = { queryKey: hostnameBindingKeys.detail(id), }); }, - /** Remove httpRoute from cache */ httpRoute: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: httpRouteKeys.detail(id), - }); - }, /** Remove index from cache */ index: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: indexKeys.detail(id), @@ -1973,6 +1963,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 @@ -2073,6 +2068,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..3c62b5d8f2 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, @@ -280,14 +272,6 @@ 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, -} as const; export const indexMutationKeys = { /** All index mutation keys */ all: ['mutation', 'index'] as const, /** Create index mutation key */ create: () => ['mutation', 'index', 'create'] as const, @@ -560,6 +544,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, @@ -680,6 +672,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,22 +799,18 @@ 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) => + /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier?: string) => identifier - ? (['mutation', 'appsInstallApp', identifier] as const) - : (['mutation', 'appsInstallApp'] as const), - /** Mutation key for appsUninstallApp */ appsUninstallApp: (identifier?: string) => - identifier - ? (['mutation', 'appsUninstallApp', identifier] as const) - : (['mutation', 'appsUninstallApp'] as const), - /** Mutation key for appsUpgradeApp */ appsUpgradeApp: (identifier?: string) => - identifier - ? (['mutation', 'appsUpgradeApp', identifier] as const) - : (['mutation', 'appsUpgradeApp'] as const), + ? (['mutation', 'cancelDatabaseTransfer', identifier] as const) + : (['mutation', 'cancelDatabaseTransfer'] as const), /** Mutation key for domainsAssignSubdomain */ domainsAssignSubdomain: (identifier?: string) => identifier ? (['mutation', 'domainsAssignSubdomain', identifier] as const) @@ -835,6 +831,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionBucket', identifier] as const) : (['mutation', 'provisionBucket'] 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) @@ -876,8 +876,7 @@ export const mutationKeys = { api: apiMutationKeys, apiSchema: apiSchemaMutationKeys, apiSetting: apiSettingMutationKeys, - appComponent: appComponentMutationKeys, - app: appMutationKeys, + astMigration: astMigrationMutationKeys, checkConstraint: checkConstraintMutationKeys, compositeType: compositeTypeMutationKeys, corsSetting: corsSettingMutationKeys, @@ -903,7 +902,6 @@ export const mutationKeys = { fullTextSearch: fullTextSearchMutationKeys, function: functionMutationKeys, hostnameBinding: hostnameBindingMutationKeys, - httpRoute: httpRouteMutationKeys, index: indexMutationKeys, managedDomain: managedDomainMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, @@ -932,6 +930,7 @@ export const mutationKeys = { policy: policyMutationKeys, primaryKeyConstraint: primaryKeyConstraintMutationKeys, pubkeySetting: pubkeySettingMutationKeys, + redirect: redirectMutationKeys, rlsSetting: rlsSettingMutationKeys, routeBinding: routeBindingMutationKeys, route: routeMutationKeys, @@ -946,6 +945,7 @@ export const mutationKeys = { 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..05372a42f7 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'; @@ -93,9 +88,6 @@ export * from './useDeleteFunctionMutation'; export * from './useCreateHostnameBindingMutation'; export * from './useUpdateHostnameBindingMutation'; export * from './useDeleteHostnameBindingMutation'; -export * from './useCreateHttpRouteMutation'; -export * from './useUpdateHttpRouteMutation'; -export * from './useDeleteHttpRouteMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; @@ -180,6 +172,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'; @@ -222,6 +217,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 +257,14 @@ 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 './useDomainsAssignSubdomainMutation'; export * from './usePlatformDomainsAssignSubdomainMutation'; export * from './usePlatformSitesProvisionStaticSiteMutation'; export * from './useProvisionBucketMutation'; +export * from './useRejectDatabaseTransferMutation'; export * from './useRequestDatabaseMutation'; export * from './useSetFieldOrderMutation'; 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/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/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/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/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/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/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/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/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index 50c728a5f9..dc561c766e 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'; @@ -63,8 +61,6 @@ export * from './useFunctionsQuery'; export * from './useFunctionQuery'; export * from './useHostnameBindingsQuery'; export * from './useHostnameBindingQuery'; -export * from './useHttpRoutesQuery'; -export * from './useHttpRouteQuery'; export * from './useIndicesQuery'; export * from './useIndexQuery'; export * from './useManagedDomainsQuery'; @@ -121,6 +117,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'; @@ -149,6 +147,8 @@ 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'; @@ -178,6 +178,5 @@ export * from './useWebauthnSettingQuery'; export * from './useApiSchemaNamesQuery'; export * from './useApplyRegistryDefaultsQuery'; export * from './useResolveDeepLinkQuery'; -export * from './useResolveHttpRouteQuery'; export * from './useResolveRouteQuery'; export * from './useResolveSiteAppLinksQuery'; 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/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/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/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/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index c89c6352fb..7d40ea6579 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, @@ -290,15 +281,6 @@ 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, - /** List query key with variables */ list: (variables?: object) => - [...httpRouteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...httpRouteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...httpRouteKeys.details(), id] as const, -} as const; export const indexKeys = { /** All index queries */ all: ['index'] as const, /** List query keys */ lists: () => [...indexKeys.all, 'list'] as const, @@ -553,6 +535,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, @@ -679,6 +670,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, @@ -808,8 +808,6 @@ export const customQueryKeys = { ['applyRegistryDefaults', 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) => @@ -841,8 +839,7 @@ export const queryKeys = { api: apiKeys, apiSchema: apiSchemaKeys, apiSetting: apiSettingKeys, - appComponent: appComponentKeys, - app: appKeys, + astMigration: astMigrationKeys, checkConstraint: checkConstraintKeys, compositeType: compositeTypeKeys, corsSetting: corsSettingKeys, @@ -868,7 +865,6 @@ export const queryKeys = { fullTextSearch: fullTextSearchKeys, function: functionKeys, hostnameBinding: hostnameBindingKeys, - httpRoute: httpRouteKeys, index: indexKeys, managedDomain: managedDomainKeys, nodeTypeRegistry: nodeTypeRegistryKeys, @@ -897,6 +893,7 @@ export const queryKeys = { policy: policyKeys, primaryKeyConstraint: primaryKeyConstraintKeys, pubkeySetting: pubkeySettingKeys, + redirect: redirectKeys, rlsSetting: rlsSettingKeys, routeBinding: routeBindingKeys, route: routeKeys, @@ -911,6 +908,7 @@ export const queryKeys = { 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..8b28bf6260 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 | @@ -51,7 +50,6 @@ const db = createClient({ | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | @@ -80,6 +78,7 @@ const db = createClient({ | `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 | @@ -94,6 +93,7 @@ const db = createClient({ | `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 | @@ -229,81 +229,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` @@ -592,6 +556,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 +568,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 +593,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 +605,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 +613,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(); @@ -1315,47 +1282,6 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` - -CRUD operations for HttpRoute 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 | - -**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(); - -// 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(); - -// Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); -``` - ### `db.index` CRUD operations for Index records. @@ -1413,6 +1339,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 +1347,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 +1355,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(); @@ -1714,6 +1642,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 +1653,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 +1661,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(); @@ -1955,12 +1885,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 +1900,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(); @@ -2069,6 +2001,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 +2011,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(); @@ -2329,6 +2263,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 +2286,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 +2382,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. @@ -2504,6 +2477,7 @@ CRUD operations for RouteBinding records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2512,13 +2486,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, 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, 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: '', 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(); @@ -2547,6 +2521,7 @@ CRUD operations for Route records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2555,13 +2530,13 @@ 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', 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(); @@ -2696,6 +2671,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 +2682,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(); @@ -2995,6 +2972,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. @@ -3550,23 +3568,6 @@ resolveDeepLink const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` - -resolveHttpRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - ### `db.query.resolveRoute` resolveRoute @@ -3599,64 +3600,49 @@ resolveSiteAppLinks const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); ``` -### `db.mutation.applyRls` +### `db.mutation.acceptDatabaseTransfer` -applyRls +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ApplyRlsInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.appsInstallApp` - -appsInstallApp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppsInstallAppInput (required) | - -```typescript -const result = await db.mutation.appsInstallApp({ input: '' }).execute(); -``` - -### `db.mutation.appsUninstallApp` +### `db.mutation.applyRls` -appsUninstallApp +applyRls - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `input` | ApplyRlsInput (required) | ```typescript -const result = await db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute(); +const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.appsUpgradeApp` +### `db.mutation.cancelDatabaseTransfer` -appsUpgradeApp +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute(); +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` ### `db.mutation.domainsAssignSubdomain` @@ -3722,6 +3708,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).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. diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 1e0236a966..87c6a4aab6 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'; @@ -35,7 +34,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; import { IndexModel } from './models/index'; import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; @@ -64,6 +62,7 @@ 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'; @@ -78,6 +77,7 @@ import { SiteModuleModel } from './models/siteModule'; 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 +129,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), @@ -156,7 +155,6 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(client), index: new IndexModel(client), managedDomain: new ManagedDomainModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), @@ -185,6 +183,7 @@ export function createClient(config: OrmClientConfig) { 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), @@ -199,6 +198,7 @@ export function createClient(config: OrmClientConfig) { 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..9f34cd64dd 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -306,47 +306,20 @@ export interface ApiSetting { 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; @@ -467,6 +440,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 +453,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 +474,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 */ @@ -804,30 +780,6 @@ 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 Index { accessMethod?: string | null; category?: ObjectCategory | null; @@ -856,6 +808,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 +821,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 */ @@ -997,6 +951,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 +970,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 */ @@ -1143,6 +1099,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 +1110,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 */ @@ -1206,6 +1164,7 @@ export interface PlatformSite { /** Catalog 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; @@ -1222,6 +1181,7 @@ export interface PlatformSite { /** 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 { @@ -1333,6 +1293,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 +1352,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) */ @@ -1433,6 +1415,8 @@ export interface RouteBinding { 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 */ @@ -1464,6 +1448,8 @@ export interface Route { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -1524,6 +1510,7 @@ export interface Site { /** Catalog 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 */ @@ -1542,6 +1529,7 @@ export interface Site { /** 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 { @@ -1678,6 +1666,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; @@ -1894,12 +1897,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 +1961,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -2038,9 +2035,6 @@ export interface FunctionRelations { schema?: Schema | null; } export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -2153,6 +2147,7 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -2223,6 +2218,7 @@ export interface SpatialRelationRelations { refTable?: Table | null; table?: Table | null; } +export interface SqlActionRelations {} export interface TableBehaviorRelations { database?: Database | null; table?: Table | null; @@ -2316,8 +2312,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; @@ -2346,7 +2341,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; export type IndexWithRelations = Index & IndexRelations; export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; @@ -2385,6 +2379,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; @@ -2399,6 +2394,7 @@ export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; 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; @@ -2479,39 +2475,20 @@ export type ApiSettingSelect = { 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; @@ -2838,6 +2815,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2857,6 +2835,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2868,6 +2847,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2882,12 +2862,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -3283,24 +3257,6 @@ 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 IndexSelect = { accessMethod?: boolean; category?: boolean; @@ -3331,6 +3287,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3338,6 +3295,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3472,6 +3430,7 @@ export type PlatformCorsSettingSelect = { export type PlatformDomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; hostname?: boolean; id?: boolean; isPublished?: boolean; @@ -3482,6 +3441,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3605,12 +3565,14 @@ export type PlatformManagedDomainSelect = { 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?: { @@ -3659,6 +3621,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3668,6 +3631,7 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; platformEmailSiteIdentityBySiteId?: { select: PlatformEmailSiteIdentitySelect; }; @@ -3800,6 +3764,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3880,6 +3845,18 @@ 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; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3928,6 +3905,7 @@ export type RouteBindingSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -3945,6 +3923,7 @@ export type RouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -4065,6 +4044,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -4075,6 +4055,7 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; emailSiteIdentity?: { select: EmailSiteIdentitySelect; }; @@ -4241,6 +4222,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; @@ -4792,69 +4788,39 @@ export interface ApiSettingFilter { /** 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. */ @@ -5235,6 +5201,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 +5231,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 +5245,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 +5271,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. */ @@ -5968,42 +5936,6 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -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; -} export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ accessMethod?: StringFilter; @@ -6061,6 +5993,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 +6021,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. */ @@ -6317,6 +6253,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 +6287,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. */ @@ -6555,6 +6495,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 +6521,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. */ @@ -6651,6 +6595,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. */ @@ -6709,6 +6655,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. */ @@ -6881,6 +6829,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 +6972,34 @@ 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 `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[]; @@ -7111,6 +7089,8 @@ export interface RouteBindingFilter { 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. */ @@ -7151,6 +7131,8 @@ export interface RouteFilter { 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. */ @@ -7301,6 +7283,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. */ @@ -7361,6 +7345,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. */ @@ -7584,6 +7570,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[]; @@ -8259,56 +8277,34 @@ export type ApiSettingOrderBy = | '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' @@ -8502,6 +8498,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 +8520,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 +8547,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' @@ -9027,36 +9029,6 @@ 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' - | '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'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -9104,6 +9076,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 +9095,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' @@ -9290,6 +9266,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 +9291,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' @@ -9460,6 +9440,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 +9457,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' @@ -9532,6 +9516,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 +9538,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' @@ -9688,6 +9676,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 +9773,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' @@ -9833,6 +9847,8 @@ export type RouteBindingOrderBy = | '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' @@ -9867,6 +9883,8 @@ export type RouteOrderBy = | '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' @@ -9954,6 +9972,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 +9996,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' @@ -10151,6 +10173,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' @@ -10588,67 +10638,43 @@ 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; - databaseId?: string | null; -} -export interface UpdateAppComponentInput { - clientMutationId?: string; - id: string; - appComponentPatch: AppComponentPatch; -} -export interface DeleteAppComponentInput { - clientMutationId?: string; - id: string; -} -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; +export interface AstMigrationPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; databaseId?: string | null; - description?: string | null; - isPublished?: boolean | null; + deploy?: Record | null; + deploys?: string | null; name?: string | null; - status?: string | null; - title?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } -export interface UpdateAppInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - appPatch: AppPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteAppInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateCheckConstraintInput { clientMutationId?: string; @@ -10890,6 +10916,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10899,6 +10926,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10918,6 +10946,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10927,12 +10956,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 +10973,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11540,42 +11572,6 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { - clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: 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 UpdateHttpRouteInput { - clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; -} -export interface DeleteHttpRouteInput { - clientMutationId?: string; - id: string; -} export interface CreateIndexInput { clientMutationId?: string; index: { @@ -11626,11 +11622,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 +11637,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; } @@ -11868,6 +11868,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11876,12 +11877,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 +11893,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12072,10 +12076,12 @@ export interface CreatePlatformManagedDomainInput { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -12084,10 +12090,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; } @@ -12163,6 +12171,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -12170,11 +12179,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 +12193,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -12368,6 +12380,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -12386,6 +12399,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -12480,6 +12494,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: { @@ -12525,6 +12569,7 @@ export interface CreateRouteBindingInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12538,6 +12583,7 @@ export interface RouteBindingPatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12563,6 +12609,7 @@ export interface CreateRouteInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12578,6 +12625,7 @@ export interface RoutePatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12687,6 +12735,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -12695,11 +12744,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 +12759,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12938,6 +12990,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: { @@ -13374,9 +13464,6 @@ export const connectionFieldsMap = { apiSchemas: 'ApiSchema', corsSettings: 'CorsSetting', }, - App: { - appComponents: 'AppComponent', - }, Database: { checkConstraints: 'CheckConstraint', compositeTypes: 'CompositeType', @@ -13416,7 +13503,6 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, EmailIdentity: { @@ -13520,6 +13606,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 +13620,9 @@ 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 { - clientMutationId?: string; - targetAppId?: string; -} -export interface AppsUpgradeAppInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - newParams?: Record; - targetAppId?: string; + transferId?: string; } export interface DomainsAssignSubdomainInput { apex?: string; @@ -13583,6 +13654,10 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -13623,15 +13698,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 +14047,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. */ @@ -14678,48 +14735,6 @@ export interface ApiSettingInput { 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; @@ -14845,6 +14860,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -14857,6 +14873,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 +14894,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 */ @@ -15192,30 +15210,6 @@ 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 `Index` */ export interface IndexInput { accessMethod?: string; @@ -15245,6 +15239,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 +15252,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 */ @@ -15388,6 +15384,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 +15403,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 */ @@ -15534,6 +15532,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 +15543,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 */ @@ -15597,6 +15597,7 @@ export interface PlatformSiteInput { /** Catalog 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; @@ -15613,6 +15614,7 @@ export interface PlatformSiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -15725,6 +15727,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 +15787,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) */ @@ -15826,6 +15850,8 @@ export interface RouteBindingInput { 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 */ @@ -15857,6 +15883,8 @@ export interface RouteInput { targetBucketId?: string; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -15919,6 +15947,7 @@ export interface SiteInput { /** Catalog 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 */ @@ -15937,6 +15966,7 @@ export interface SiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -16325,39 +16355,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 +16507,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. */ @@ -17065,6 +17064,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. */ @@ -17916,43 +17917,6 @@ 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. */ @@ -17987,6 +17951,8 @@ export interface RouteFilter { 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. */ @@ -18711,231 +18677,86 @@ 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 { +/** 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. */ - 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?: DatabaseFilter[]; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: 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 `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `derives` relation. */ + derives?: DatabaseToManyDeriveFilter; + /** `derives` exist. */ + derivesExist?: boolean; + /** Filter by the object’s `domainTypes` relation. */ + domainTypes?: DatabaseToManyDomainTypeFilter; + /** `domainTypes` exist. */ + domainTypesExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `exclusionConstraints` relation. */ + exclusionConstraints?: DatabaseToManyExclusionConstraintFilter; + /** `exclusionConstraints` exist. */ + exclusionConstraintsExist?: boolean; + /** Filter by the object’s `fieldBehaviors` relation. */ + fieldBehaviors?: DatabaseToManyFieldBehaviorFilter; + /** `fieldBehaviors` exist. */ + fieldBehaviorsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraintBehaviors` relation. */ + foreignKeyConstraintBehaviors?: DatabaseToManyForeignKeyConstraintBehaviorFilter; + /** `foreignKeyConstraintBehaviors` exist. */ + foreignKeyConstraintBehaviorsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** 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. */ - and?: DatabaseFilter[]; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `compositeTypes` relation. */ - compositeTypes?: DatabaseToManyCompositeTypeFilter; - /** `compositeTypes` exist. */ - compositeTypesExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `derives` relation. */ - derives?: DatabaseToManyDeriveFilter; - /** `derives` exist. */ - derivesExist?: boolean; - /** Filter by the object’s `domainTypes` relation. */ - domainTypes?: DatabaseToManyDomainTypeFilter; - /** `domainTypes` exist. */ - domainTypesExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `exclusionConstraints` relation. */ - exclusionConstraints?: DatabaseToManyExclusionConstraintFilter; - /** `exclusionConstraints` exist. */ - exclusionConstraintsExist?: boolean; - /** Filter by the object’s `fieldBehaviors` relation. */ - fieldBehaviors?: DatabaseToManyFieldBehaviorFilter; - /** `fieldBehaviors` exist. */ - fieldBehaviorsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraintBehaviors` relation. */ - foreignKeyConstraintBehaviors?: DatabaseToManyForeignKeyConstraintBehaviorFilter; - /** `foreignKeyConstraintBehaviors` exist. */ - foreignKeyConstraintBehaviorsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: DatabaseFilter; + not?: DatabaseFilter; /** Checks for any expressions in this list. */ or?: DatabaseFilter[]; /** Filter by the object’s `ownerId` field. */ @@ -19017,6 +18838,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 +18937,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 +19072,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 +19086,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 +19112,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 +19131,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 +19159,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 +19176,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. */ @@ -19299,6 +19238,8 @@ 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 `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ export interface EmailProviderAccountFilter { @@ -19392,6 +19333,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 +19367,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 +19386,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 +19412,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 +19429,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. */ @@ -19538,6 +19489,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 { @@ -19863,24 +19816,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,37 +19854,27 @@ export type ResolveRouteRecordSelect = { tlsStatus?: boolean; verificationStatus?: boolean; }; -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export type ApplyRlsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AppsInstallAppPayload { - appEdge?: AppEdge | null; +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; - result?: App | null; + result?: boolean | null; } -export type AppsInstallAppPayloadSelect = { - appEdge?: { - select: AppEdgeSelect; - }; +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; - result?: { - select: AppSelect; - }; + result?: boolean; }; -export interface AppsUninstallAppPayload { +export interface ApplyRlsPayload { clientMutationId?: string | null; } -export type AppsUninstallAppPayloadSelect = { +export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface AppsUpgradeAppPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type AppsUpgradeAppPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; export interface DomainsAssignSubdomainPayload { clientMutationId?: string | null; @@ -20011,6 +19936,14 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +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; @@ -20172,96 +20105,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,51 +21230,6 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type CreateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface UpdateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type UpdateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface DeleteHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type DeleteHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; export interface CreateIndexPayload { clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ @@ -22692,6 +22490,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. */ @@ -23907,18 +23750,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; @@ -23965,6 +23796,8 @@ export interface PlatformRoute { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -23983,6 +23816,7 @@ export type PlatformRouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -24080,18 +23914,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,18 +24202,6 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { - cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; -} -export type HttpRouteEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteSelect; - }; -}; /** A `Index` edge in the connection. */ export interface IndexEdge { cursor?: string | null; @@ -24716,6 +24526,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; 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/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/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index e423940bea..5129b9c87d 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'; @@ -33,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; export { IndexModel } from './indexModel'; export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; @@ -62,6 +60,7 @@ 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'; @@ -76,6 +75,7 @@ export { SiteModuleModel } from './siteModule'; 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/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/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..2629f518b2 100644 --- a/sdk/constructive-react/src/api/orm/mutation/index.ts +++ b/sdk/constructive-react/src/api/orm/mutation/index.ts @@ -7,52 +7,49 @@ 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, DomainsAssignSubdomainInput, PlatformDomainsAssignSubdomainInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, + RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SitesProvisionStaticSiteInput, + AcceptDatabaseTransferPayload, ApplyRlsPayload, - AppsInstallAppPayload, - AppsUninstallAppPayload, - AppsUpgradeAppPayload, + CancelDatabaseTransferPayload, DomainsAssignSubdomainPayload, PlatformDomainsAssignSubdomainPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, + RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SitesProvisionStaticSitePayload, + AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, - AppsInstallAppPayloadSelect, - AppsUninstallAppPayloadSelect, - AppsUpgradeAppPayloadSelect, + CancelDatabaseTransferPayloadSelect, DomainsAssignSubdomainPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, + RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, 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 AppsUpgradeAppVariables { - input: AppsUpgradeAppInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; } export interface DomainsAssignSubdomainVariables { input: DomainsAssignSubdomainInput; @@ -73,6 +70,9 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} /** * Variables for requestDatabase * Requests a database and returns a ticket (database_provision_module row) to poll. @@ -94,120 +94,91 @@ export interface SitesProvisionStaticSiteVariables { } export function createMutationOperations(client: OrmClient) { return { - applyRls: ( - args: ApplyRlsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - applyRls: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', - ...buildCustomDocument( - 'mutation', - 'ApplyRls', - 'applyRls', - options.select, - args, - [ - { - name: 'input', - type: 'ApplyRlsInput!', - }, - ], - connectionFieldsMap, - 'ApplyRlsPayload' - ), - }), - appsInstallApp: ( - args: AppsInstallAppVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsInstallApp: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsInstallApp', - fieldName: 'appsInstallApp', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsInstallApp', - 'appsInstallApp', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsInstallAppInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsInstallAppPayload' + 'AcceptDatabaseTransferPayload' ), }), - appsUninstallApp: ( - args: AppsUninstallAppVariables, + applyRls: ( + args: ApplyRlsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUninstallApp: InferSelectResult | null; + applyRls: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUninstallApp', - fieldName: 'appsUninstallApp', + operationName: 'ApplyRls', + fieldName: 'applyRls', ...buildCustomDocument( 'mutation', - 'AppsUninstallApp', - 'appsUninstallApp', + 'ApplyRls', + 'applyRls', options.select, args, [ { name: 'input', - type: 'AppsUninstallAppInput!', + type: 'ApplyRlsInput!', }, ], connectionFieldsMap, - 'AppsUninstallAppPayload' + 'ApplyRlsPayload' ), }), - appsUpgradeApp: ( - args: AppsUpgradeAppVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUpgradeApp: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUpgradeApp', - fieldName: 'appsUpgradeApp', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsUpgradeApp', - 'appsUpgradeApp', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsUpgradeAppInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsUpgradeAppPayload' + 'CancelDatabaseTransferPayload' ), }), domainsAssignSubdomain: ( @@ -332,6 +303,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + 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: { diff --git a/sdk/constructive-react/src/api/orm/query/index.ts b/sdk/constructive-react/src/api/orm/query/index.ts index 1d38cd7001..eba73f137f 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; @@ -24,11 +19,6 @@ export interface ResolveDeepLinkVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} export interface ResolveRouteVariables { requestHost?: string; requestMethod?: string; @@ -134,43 +124,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', - ...buildCustomDocument( - 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveHttpRouteRecord' - ), - }), resolveRoute: ( args: ResolveRouteVariables, options: { diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index a95202ef55..6d46521c35 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, @@ -35,7 +34,6 @@ import type { FullTextSearch, Function, HostnameBinding, - HttpRoute, Index, ManagedDomain, NodeTypeRegistry, @@ -64,6 +62,7 @@ import type { Policy, PrimaryKeyConstraint, PubkeySetting, + Redirect, RlsSetting, Route, RouteBinding, @@ -78,6 +77,7 @@ import type { SiteTheme, SiteWebConfig, SpatialRelation, + SqlAction, Table, TableBehavior, TableGrant, @@ -196,58 +196,35 @@ export type ApiSettingOrderBy = | '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' @@ -449,6 +426,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 +476,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 +503,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' @@ -991,37 +974,6 @@ 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' - | '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'; /** Methods to use when ordering `Index`. */ export type IndexOrderBy = | 'ACCESS_METHOD_ASC' @@ -1071,6 +1023,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 +1042,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' @@ -1291,6 +1247,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 +1272,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 +1402,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 +1419,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' @@ -1611,6 +1575,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,7 +1597,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'; /** Methods to use when ordering `PlatformSiteTheme`. */ export type PlatformSiteThemeOrderBy = | 'COMMIT_ID_ASC' @@ -1680,6 +1648,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 +1747,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' @@ -1829,6 +1824,8 @@ export type RouteBindingOrderBy = | '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' @@ -1864,6 +1861,8 @@ export type RouteOrderBy = | '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' @@ -2057,6 +2056,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,7 +2080,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'; /** Methods to use when ordering `SiteTheme`. */ export type SiteThemeOrderBy = | 'COMMIT_ID_ASC' @@ -2159,6 +2162,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' @@ -2508,6 +2540,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. */ @@ -2806,197 +2842,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; -} -/** 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 { - 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; + 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 AppsUpgradeAppInput { +export interface CancelDatabaseTransferInput { 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 +3124,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,11 +3249,6 @@ export interface CreateHostnameBindingInput { /** The `HostnameBinding` to be created by this mutation. */ hostnameBinding: HostnameBindingInput; } -export interface CreateHttpRouteInput { - clientMutationId?: string; - /** The `HttpRoute` to be created by this mutation. */ - httpRoute: HttpRouteInput; -} export interface CreateIndexInput { clientMutationId?: string; /** The `Index` to be created by this mutation. */ @@ -3511,6 +3389,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. */ @@ -4396,14 +4279,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,10 +4379,6 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface DeleteHttpRouteInput { - clientMutationId?: string; - id: string; -} export interface DeleteIndexInput { clientMutationId?: string; id: string; @@ -4622,6 +4493,10 @@ export interface DeletePubkeySettingInput { clientMutationId?: string; id: string; } +export interface DeleteRedirectInput { + clientMutationId?: string; + id: string; +} export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; @@ -4742,6 +4617,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 +4645,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -4780,6 +4658,7 @@ export interface DerivePatch { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind?: string; policyPrefix?: string; @@ -4882,6 +4761,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 +4775,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 +4801,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 +4813,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 +4834,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 +4845,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 +4866,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 +4890,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. */ @@ -6301,91 +6175,6 @@ 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 { - /** 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; -} -/** 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; -} -/** 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; -} /** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ @@ -6485,6 +6274,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 +6302,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 +6318,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 +6331,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 +6346,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 +6359,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 */ @@ -7176,6 +6973,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 +7007,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 +7019,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 +7038,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 +7049,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 +7068,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 +7470,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 +7496,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 +7512,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 +7523,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 +7538,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 +7549,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 */ @@ -8024,6 +7837,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. */ @@ -8082,6 +7897,8 @@ 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 { @@ -8090,6 +7907,7 @@ export interface PlatformSiteInput { /** Catalog 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; @@ -8106,6 +7924,7 @@ export interface PlatformSiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** A filter to be used against `PlatformSiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformSiteMetadatumFilter { @@ -8274,6 +8093,7 @@ export interface PlatformSitePatch { /** Catalog 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; @@ -8290,6 +8110,7 @@ export interface PlatformSitePatch { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** A filter to be used against `PlatformSiteTheme` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformSiteThemeFilter { @@ -8484,6 +8305,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 +8361,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 +8385,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; @@ -8758,6 +8585,79 @@ export interface PubkeySettingPatch { /** 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 `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 `Redirect`. Fields that are set will be updated. */ +export interface RedirectPatch { + 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; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -8906,6 +8806,8 @@ export interface RouteBindingFilter { 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. */ @@ -8932,6 +8834,8 @@ export interface RouteBindingInput { 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 */ @@ -8958,6 +8862,8 @@ export interface RouteBindingPatch { 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 */ @@ -8999,6 +8905,8 @@ export interface RouteFilter { 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. */ @@ -9030,6 +8938,8 @@ export interface RouteInput { targetBucketId?: string; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -9060,6 +8970,8 @@ export interface RoutePatch { targetBucketId?: string; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -9529,6 +9441,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. */ @@ -9589,6 +9503,8 @@ 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 { @@ -9597,6 +9513,7 @@ export interface SiteInput { /** Catalog 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 */ @@ -9615,6 +9532,7 @@ export interface SiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ export interface SiteMetadatumFilter { @@ -9795,6 +9713,7 @@ export interface SitePatch { /** Catalog 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 */ @@ -9813,6 +9732,7 @@ export interface SitePatch { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ export interface SiteThemeFilter { @@ -10090,6 +10010,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. */ @@ -10832,18 +10785,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,12 +10935,6 @@ export interface UpdateHostnameBindingInput { hostnameBindingPatch: HostnameBindingPatch; id: string; } -export interface UpdateHttpRouteInput { - clientMutationId?: string; - /** An object where the defined keys will be set on the `HttpRoute` being updated. */ - httpRoutePatch: HttpRoutePatch; - id: string; -} export interface UpdateIndexInput { clientMutationId?: string; id: string; @@ -11170,6 +11105,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; @@ -11847,17 +11788,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; } @@ -12036,13 +11970,6 @@ export interface HostnameBindingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `HttpRoute` values. */ -export interface HttpRouteConnection { - edges: HttpRouteEdge[]; - nodes: HttpRoute[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Index` values. */ export interface IndexConnection { edges: IndexEdge[]; @@ -12239,14 +12166,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; @@ -12365,6 +12290,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 +12388,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 +12417,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,12 +12567,6 @@ export interface CreateHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface CreateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} export interface CreateIndexPayload { clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ @@ -12824,6 +12735,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. */ @@ -13004,18 +12921,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,12 +13071,6 @@ export interface DeleteHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface DeleteHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} export interface DeleteIndexPayload { clientMutationId?: string | null; /** The `Index` that was deleted by this mutation. */ @@ -13340,6 +13239,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. */ @@ -13530,6 +13435,10 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface RequestDatabasePayload { clientMutationId?: string | null; result?: DatabaseProvisionModule | null; @@ -13559,18 +13468,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,12 +13618,6 @@ export interface UpdateHostnameBindingPayload { hostnameBinding?: HostnameBinding | null; hostnameBindingEdge?: HostnameBindingEdge | null; } -export interface UpdateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} export interface UpdateIndexPayload { clientMutationId?: string | null; /** The `Index` that was updated by this mutation. */ @@ -13895,6 +13786,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. */ @@ -14113,17 +14010,11 @@ export interface ApiEdge { /** The `Api` at the end of the edge. */ node?: Api | null; } -/** A `AppComponent` edge in the connection. */ -export interface AppComponentEdge { +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { cursor?: string | null; - /** The `AppComponent` at the end of the edge. */ - node?: AppComponent | null; -} -/** A `App` edge in the connection. */ -export interface AppEdge { - 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 { @@ -14275,12 +14166,6 @@ export interface HostnameBindingEdge { /** The `HostnameBinding` at the end of the edge. */ node?: HostnameBinding | null; } -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { - cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; -} /** A `Index` edge in the connection. */ export interface IndexEdge { cursor?: string | null; @@ -14449,6 +14334,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; @@ -14533,6 +14424,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; @@ -14633,6 +14530,8 @@ export interface PlatformRoute { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 1b3f7a477f..f599d2ac82 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -46,30 +46,20 @@ export interface ApiSetting { 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; @@ -168,6 +158,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 +169,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 +181,7 @@ export interface Domain { tlsSecretName: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -430,21 +423,6 @@ 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 Index { accessMethod: string | null; category: ObjectCategory | null; @@ -469,6 +447,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 +455,7 @@ export interface ManagedDomain { tlsReadyAt: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -562,6 +542,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 +553,7 @@ export interface PlatformDomain { tlsSecretName: string | null; tlsStatus: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; verificationStatus: string | null; verifiedAt: string | null; } @@ -647,12 +629,14 @@ export interface PlatformManagedDomain { 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; } @@ -683,6 +667,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 +677,7 @@ export interface PlatformSite { resourceId: string | null; title: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface PlatformSiteDeepLink { appPath: string | null; @@ -761,6 +747,7 @@ export interface PlatformSiteWebConfig { } export interface Policy { category: ObjectCategory | null; + columnRefs: string[] | null; createdAt: string | null; data: unknown | null; databaseId: string | null; @@ -808,6 +795,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; @@ -832,6 +831,7 @@ export interface RouteBinding { targetApiId: string | null; targetBucketId: string | null; targetFunctionId: string | null; + targetRedirectId: string | null; targetServiceId: string | null; targetSiteId: string | null; updatedAt: string | null; @@ -849,6 +849,7 @@ export interface Route { targetApiId: string | null; targetBucketId: string | null; targetFunctionId: string | null; + targetRedirectId: string | null; targetServiceId: string | null; targetSiteId: string | null; updatedAt: string | null; @@ -894,6 +895,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 +906,7 @@ export interface Site { resourceId: string | null; title: string | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface SiteDeepLink { appPath: string | null; @@ -992,6 +995,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; diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index 0eae92d387..9f8b12ba0c 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:** 113 +- **Custom queries:** 2 +- **Custom mutations:** 54 **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..0dad95878d 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -32,11 +32,63 @@ 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 | | `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 +176,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 +223,16 @@ 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 | | `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 +273,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 +305,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 +325,66 @@ 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 | +| `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 | @@ -291,6 +443,66 @@ 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 | +| `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 | @@ -349,12 +561,30 @@ 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 | | `useCopyGraphMutation` | Mutation | copyGraph | +| `useDatabaseAddEdgeMutation` | Mutation | databaseAddEdge | +| `useDatabaseAddEdgeAndSaveMutation` | Mutation | databaseAddEdgeAndSave | +| `useDatabaseAddNodeMutation` | Mutation | databaseAddNode | +| `useDatabaseAddNodeAndSaveMutation` | Mutation | databaseAddNodeAndSave | +| `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 | | `useImportDefinitionsMutation` | Mutation | importDefinitions | | `useImportGraphJsonMutation` | Mutation | importGraphJson | | `useInfraInitEmptyRepoMutation` | Mutation | infraInitEmptyRepo | @@ -393,6 +623,48 @@ and lifecycle settings. | ## Table Hooks +### Build + +```typescript +// List all builds +const { data, isLoading } = useBuildsQuery({ + selection: { fields: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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: '' }); +``` + ### ContentPreset ```typescript @@ -414,6 +686,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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: true } }, +}); + +// Create a databaseFunctionGraphExecutionNodeState +const { mutate: create } = useCreateDatabaseFunctionGraphExecutionNodeStateMutation({ + selection: { fields: { id: true } }, +}); +create({ callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }); +``` + +### 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 +937,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, catalogImageId: 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, 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, catalogImageId: 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, 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: '', catalogImageId: '', 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: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### FunctionDeployment @@ -503,20 +958,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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', concurrency: '', createdByPrincipal: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` ### FunctionDeploymentEvent @@ -755,20 +1210,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, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: 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, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }); ``` ### GetAllTreeNodesRecord @@ -786,6 +1241,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 @@ -948,6 +1445,48 @@ const { mutate: create } = useCreateNamespaceEventMutation({ create({ actorId: '', databaseId: '', eventType: '', message: '', metadata: '', namespaceId: '' }); ``` +### PlatformBuild + +```typescript +// List all platformBuilds +const { data, isLoading } = usePlatformBuildsQuery({ + selection: { fields: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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: '' }); +``` + ### PlatformFunctionApiBinding ```typescript @@ -995,20 +1534,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, billable: true, catalogImageId: 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, 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: '', billable: '', catalogImageId: '', 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: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### PlatformFunctionDeployment @@ -1016,20 +1555,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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', concurrency: '', createdByPrincipal: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '', updatedByPrincipal: '' }); ``` ### PlatformFunctionDeploymentEvent @@ -1100,20 +1639,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, error: true, functionDefinitionId: true, graphExecutionId: true, id: true, jobId: true, parentInvocationId: true, payload: 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: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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,6 +1796,48 @@ 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 @@ -1257,103 +1880,355 @@ 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({ +// 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 a platformProposal +const { mutate: create } = useCreatePlatformProposalMutation({ selection: { fields: { id: true } }, }); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); +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: '' }); ``` -### PlatformResourceDefinition +### PlatformProposalFileView ```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 } }, +// 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 platformResourceDefinition -const { data: item } = usePlatformResourceDefinitionQuery({ +// Get one platformProposalFileView +const { data: item } = usePlatformProposalFileViewQuery({ 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: { blobSha: true, createdAt: true, createdByPrincipal: true, id: true, path: true, proposalId: true, reviewerId: true, updatedAt: true, updatedByPrincipal: true, viewedAt: true } }, }); -// Create a platformResourceDefinition -const { mutate: create } = useCreatePlatformResourceDefinitionMutation({ +// Create a platformProposalFileView +const { mutate: create } = useCreatePlatformProposalFileViewMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', createdBy: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '' }); +create({ blobSha: '', createdByPrincipal: '', path: '', proposalId: '', reviewerId: '', updatedByPrincipal: '', viewedAt: '' }); ``` -### PlatformResourceEvent +### PlatformProposalReaction ```typescript -// List all platformResourceEvents -const { data, isLoading } = usePlatformResourceEventsQuery({ - selection: { fields: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }, +// 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 platformResourceEvent -const { data: item } = usePlatformResourceEventQuery({ +// Get one platformProposalReaction +const { data: item } = usePlatformProposalReactionQuery({ id: '', - selection: { fields: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }, + selection: { fields: { actorId: true, commentId: true, createdAt: true, createdByPrincipal: true, emoji: true, id: true, proposalId: true, updatedAt: true, updatedByPrincipal: true } }, }); -// Create a platformResourceEvent -const { mutate: create } = useCreatePlatformResourceEventMutation({ +// Create a platformProposalReaction +const { mutate: create } = useCreatePlatformProposalReactionMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }); +create({ actorId: '', commentId: '', createdByPrincipal: '', emoji: '', proposalId: '', updatedByPrincipal: '' }); ``` -### PlatformResourceInstallation +### PlatformProposalReview ```typescript -// List all platformResourceInstallations +// 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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: '' }); +``` + +### 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, +}); + +// Get one platformResource +const { data: item } = usePlatformResourceQuery({ + id: '', + selection: { fields: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }, +}); + +// Create a platformResource +const { mutate: create } = useCreatePlatformResourceMutation({ + selection: { fields: { id: true } }, +}); +create({ annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 } }, +}); + +// 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: '' }); +``` + +### PlatformResourceDefinition + +```typescript +// List all platformResourceDefinitions +const { data, isLoading } = usePlatformResourceDefinitionsQuery({ + selection: { fields: { annotations: true, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); +``` + +### PlatformResourceEvent + +```typescript +// List all platformResourceEvents +const { data, isLoading } = usePlatformResourceEventsQuery({ + selection: { fields: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }, +}); + +// Get one platformResourceEvent +const { data: item } = usePlatformResourceEventQuery({ + id: '', + selection: { fields: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: true } }, +}); + +// Create a platformResourceEvent +const { mutate: create } = useCreatePlatformResourceEventMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }); +``` + +### PlatformResourceInstallation + +```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: '' }); ``` ### PlatformResourceStatusCheck @@ -1439,20 +2314,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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourcesRequirementsState @@ -1490,20 +2365,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 +2402,277 @@ 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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: '' }); +``` + +### 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourceDeclaredCapacity @@ -1568,20 +2695,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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourceEvent @@ -1610,20 +2737,20 @@ 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: '' }); ``` ### ResourceStatusCheck @@ -1709,20 +2836,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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', updatedByPrincipal: '' }); ``` ### ResourcesRequirementsState @@ -1760,20 +2887,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 +2926,17 @@ create({ databaseId: '', endpointId: '', error: '', external ## Custom Operation Hooks +### `useDatabaseReadFunctionGraphQuery` + +databaseReadFunctionGraph + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `graphId` | UUID | + ### `useReadFunctionGraphQuery` readFunctionGraph @@ -1865,6 +3003,193 @@ 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) | + +### `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) | + ### `useImportDefinitionsMutation` importDefinitions diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index 0507a6d4e8..3896ffbe66 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, 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, 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, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, WebhookEndpoint, WebhookEvent * * Usage: * diff --git a/sdk/constructive-react/src/compute/hooks/invalidation.ts b/sdk/constructive-react/src/compute/hooks/invalidation.ts index 968d643276..5a8d4f9cd5 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -15,7 +15,18 @@ import type { QueryClient } from '@tanstack/react-query'; import { + buildKeys, + buildStepKeys, contentPresetKeys, + databaseFunctionGraphKeys, + databaseFunctionGraphExecutionKeys, + databaseFunctionGraphExecutionNodeStateKeys, + databaseFunctionGraphExecutionOutputKeys, + databaseGraphCommitKeys, + databaseGraphGetAllTreeNodesRecordKeys, + databaseGraphObjectKeys, + databaseGraphRefKeys, + databaseGraphStoreKeys, dbPresetKeys, functionApiBindingKeys, functionCapabilityBindingKeys, @@ -34,6 +45,8 @@ import { functionInvocationAttemptKeys, functionInvocationKeys, getAllTreeNodesRecordKeys, + imageKeys, + imageGrantKeys, infraCommitKeys, infraGetAllTreeNodesRecordKeys, infraObjectKeys, @@ -42,6 +55,8 @@ import { integrationProviderKeys, namespaceKeys, namespaceEventKeys, + platformBuildKeys, + platformBuildStepKeys, platformFunctionApiBindingKeys, platformFunctionCapabilityBindingKeys, platformFunctionDefinitionKeys, @@ -50,13 +65,29 @@ 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, + platformRepositoryWorkflowKeys, platformResourceKeys, platformResourceDeclaredCapacityKeys, platformResourceDefinitionKeys, @@ -71,6 +102,18 @@ import { platformResourcesResolvedRequirementKeys, platformWebhookEndpointKeys, platformWebhookEventKeys, + proposalCommentKeys, + proposalKeys, + proposalFileViewKeys, + proposalReactionKeys, + proposalReviewKeys, + proposalsChunkKeys, + registryBindingKeys, + registryKeys, + registryGrantKeys, + repositoryKeys, + repositoryEventKeys, + repositoryWorkflowKeys, resourceKeys, resourceDeclaredCapacityKeys, resourceDefinitionKeys, @@ -106,6 +149,37 @@ 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 contentPreset queries */ contentPreset: { /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -123,6 +197,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 +671,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 +835,40 @@ 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 platformFunctionApiBinding queries */ platformFunctionApiBinding: { /** Invalidate all platformFunctionApiBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -707,6 +1015,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 +1138,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,133 +1206,337 @@ 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: platformResourceInstallationKeys.lists(), + queryKey: platformProposalReviewKeys.lists(), }), - /** Invalidate a specific platformResourceInstallation */ detail: ( + /** Invalidate a specific platformProposalReview */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceInstallationKeys.detail(id), + queryKey: platformProposalReviewKeys.detail(id), }), }, - /** Invalidate platformResourceStatusCheck queries */ platformResourceStatusCheck: { - /** Invalidate all platformResourceStatusCheck queries */ all: (queryClient: QueryClient) => + /** Invalidate platformProposalsChunk queries */ platformProposalsChunk: { + /** Invalidate all platformProposalsChunk queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceStatusCheckKeys.all, + queryKey: platformProposalsChunkKeys.all, }), - /** Invalidate platformResourceStatusCheck list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformProposalsChunk list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceStatusCheckKeys.lists(), + queryKey: platformProposalsChunkKeys.lists(), }), - /** Invalidate a specific platformResourceStatusCheck */ detail: ( + /** Invalidate a specific platformProposalsChunk */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceStatusCheckKeys.detail(id), + queryKey: platformProposalsChunkKeys.detail(id), }), }, - /** Invalidate platformResourceUsageLog queries */ platformResourceUsageLog: { - /** Invalidate all platformResourceUsageLog queries */ all: (queryClient: QueryClient) => + /** Invalidate platformRegistryBinding queries */ platformRegistryBinding: { + /** Invalidate all platformRegistryBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceUsageLogKeys.all, + queryKey: platformRegistryBindingKeys.all, }), - /** Invalidate platformResourceUsageLog list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformRegistryBinding list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceUsageLogKeys.lists(), + queryKey: platformRegistryBindingKeys.lists(), }), - /** Invalidate a specific platformResourceUsageLog */ detail: ( + /** Invalidate a specific platformRegistryBinding */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformResourceUsageLogKeys.detail(id), + queryKey: platformRegistryBindingKeys.detail(id), }), }, - /** Invalidate platformResourceUsageSummary queries */ platformResourceUsageSummary: { - /** Invalidate all platformResourceUsageSummary queries */ all: (queryClient: QueryClient) => + /** Invalidate platformRegistry queries */ platformRegistry: { + /** Invalidate all platformRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformResourceUsageSummaryKeys.all, + 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 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(), + }), + /** Invalidate a specific platformResourceInstallation */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceInstallationKeys.detail(id), + }), + }, + /** Invalidate platformResourceStatusCheck queries */ platformResourceStatusCheck: { + /** Invalidate all platformResourceStatusCheck queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.all, + }), + /** Invalidate platformResourceStatusCheck list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.lists(), + }), + /** Invalidate a specific platformResourceStatusCheck */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.detail(id), + }), + }, + /** Invalidate platformResourceUsageLog queries */ platformResourceUsageLog: { + /** Invalidate all platformResourceUsageLog queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceUsageLogKeys.all, + }), + /** Invalidate platformResourceUsageLog list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceUsageLogKeys.lists(), + }), + /** Invalidate a specific platformResourceUsageLog */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourceUsageLogKeys.detail(id), + }), + }, + /** Invalidate platformResourceUsageSummary queries */ platformResourceUsageSummary: { + /** Invalidate all platformResourceUsageSummary queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformResourceUsageSummaryKeys.all, }), /** Invalidate platformResourceUsageSummary list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1050,35 +1630,233 @@ export const invalidate = { /** Invalidate platformWebhookEndpoint queries */ platformWebhookEndpoint: { /** Invalidate all platformWebhookEndpoint queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformWebhookEndpointKeys.all, + queryKey: platformWebhookEndpointKeys.all, + }), + /** Invalidate platformWebhookEndpoint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformWebhookEndpointKeys.lists(), + }), + /** Invalidate a specific platformWebhookEndpoint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformWebhookEndpointKeys.detail(id), + }), + }, + /** Invalidate platformWebhookEvent queries */ platformWebhookEvent: { + /** Invalidate all platformWebhookEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformWebhookEventKeys.all, + }), + /** Invalidate platformWebhookEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformWebhookEventKeys.lists(), + }), + /** Invalidate a specific platformWebhookEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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 platformWebhookEndpoint list queries */ lists: (queryClient: QueryClient) => + }, + /** Invalidate repositoryEvent queries */ repositoryEvent: { + /** Invalidate all repositoryEvent queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformWebhookEndpointKeys.lists(), + queryKey: repositoryEventKeys.all, }), - /** Invalidate a specific platformWebhookEndpoint */ detail: ( + /** 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: platformWebhookEndpointKeys.detail(id), + queryKey: repositoryEventKeys.detail(id), }), }, - /** Invalidate platformWebhookEvent queries */ platformWebhookEvent: { - /** Invalidate all platformWebhookEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate repositoryWorkflow queries */ repositoryWorkflow: { + /** Invalidate all repositoryWorkflow queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformWebhookEventKeys.all, + queryKey: repositoryWorkflowKeys.all, }), - /** Invalidate platformWebhookEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate repositoryWorkflow list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformWebhookEventKeys.lists(), + queryKey: repositoryWorkflowKeys.lists(), }), - /** Invalidate a specific platformWebhookEvent */ detail: ( + /** Invalidate a specific repositoryWorkflow */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformWebhookEventKeys.detail(id), + queryKey: repositoryWorkflowKeys.detail(id), }), }, /** Invalidate resource queries */ resource: { @@ -1329,6 +2107,16 @@ export const invalidate = { * 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 contentPreset from cache */ contentPreset: ( queryClient: QueryClient, id: string | number @@ -1337,6 +2125,74 @@ export const remove = { 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), + }); + }, + /** Remove databaseGraphRef from cache */ databaseGraphRef: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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) => { queryClient.removeQueries({ queryKey: dbPresetKeys.detail(id), @@ -1478,6 +2334,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 +2405,22 @@ 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 platformFunctionApiBinding from cache */ platformFunctionApiBinding: ( queryClient: QueryClient, id: string | number @@ -1600,6 +2485,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 +2541,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 +2573,102 @@ 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 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 @@ -1766,6 +2779,96 @@ 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 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), diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index 2f18965532..5dba575141 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -18,6 +18,22 @@ // 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 contentPresetMutationKeys = { /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, /** Create contentPreset mutation key */ create: () => @@ -27,6 +43,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 +323,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 +411,24 @@ 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 platformFunctionApiBindingMutationKeys = { /** All platformFunctionApiBinding mutation keys */ all: [ 'mutation', @@ -377,6 +525,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 +591,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 +633,141 @@ 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 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: () => @@ -608,6 +930,111 @@ 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 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, @@ -768,6 +1195,92 @@ export const customMutationKeys = { 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 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 importDefinitions */ importDefinitions: (identifier?: string) => identifier ? (['mutation', 'importDefinitions', identifier] as const) @@ -944,7 +1457,18 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + build: buildMutationKeys, + buildStep: buildStepMutationKeys, 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 +1487,8 @@ export const mutationKeys = { functionInvocationAttempt: functionInvocationAttemptMutationKeys, functionInvocation: functionInvocationMutationKeys, getAllTreeNodesRecord: getAllTreeNodesRecordMutationKeys, + image: imageMutationKeys, + imageGrant: imageGrantMutationKeys, infraCommit: infraCommitMutationKeys, infraGetAllTreeNodesRecord: infraGetAllTreeNodesRecordMutationKeys, infraObject: infraObjectMutationKeys, @@ -971,6 +1497,8 @@ export const mutationKeys = { integrationProvider: integrationProviderMutationKeys, namespace: namespaceMutationKeys, namespaceEvent: namespaceEventMutationKeys, + platformBuild: platformBuildMutationKeys, + platformBuildStep: platformBuildStepMutationKeys, platformFunctionApiBinding: platformFunctionApiBindingMutationKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingMutationKeys, platformFunctionDefinition: platformFunctionDefinitionMutationKeys, @@ -979,13 +1507,29 @@ 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, + platformRepositoryWorkflow: platformRepositoryWorkflowMutationKeys, platformResource: platformResourceMutationKeys, platformResourceDeclaredCapacity: platformResourceDeclaredCapacityMutationKeys, platformResourceDefinition: platformResourceDefinitionMutationKeys, @@ -1000,6 +1544,18 @@ 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, + repositoryWorkflow: repositoryWorkflowMutationKeys, resource: resourceMutationKeys, resourceDeclaredCapacity: resourceDeclaredCapacityMutationKeys, resourceDefinition: resourceDefinitionMutationKeys, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index c2ec348302..f4a63ea6fc 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -3,9 +3,40 @@ * @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 './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 +89,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 +117,12 @@ 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 './useCreatePlatformFunctionApiBindingMutation'; export * from './useUpdatePlatformFunctionApiBindingMutation'; export * from './useDeletePlatformFunctionApiBindingMutation'; @@ -104,6 +147,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 +166,54 @@ 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 './useCreatePlatformRepositoryWorkflowMutation'; +export * from './useUpdatePlatformRepositoryWorkflowMutation'; +export * from './useDeletePlatformRepositoryWorkflowMutation'; export * from './useCreatePlatformResourceMutation'; export * from './useUpdatePlatformResourceMutation'; export * from './useDeletePlatformResourceMutation'; @@ -155,6 +246,42 @@ 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 './useCreateRepositoryWorkflowMutation'; +export * from './useUpdateRepositoryWorkflowMutation'; +export * from './useDeleteRepositoryWorkflowMutation'; export * from './useCreateResourceMutation'; export * from './useUpdateResourceMutation'; export * from './useDeleteResourceMutation'; @@ -192,6 +319,23 @@ export * from './useAddEdgeAndSaveMutation'; export * from './useAddNodeMutation'; export * from './useAddNodeAndSaveMutation'; export * from './useCopyGraphMutation'; +export * from './useDatabaseAddEdgeMutation'; +export * from './useDatabaseAddEdgeAndSaveMutation'; +export * from './useDatabaseAddNodeMutation'; +export * from './useDatabaseAddNodeAndSaveMutation'; +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 './useImportDefinitionsMutation'; export * from './useImportGraphJsonMutation'; export * from './useInfraInitEmptyRepoMutation'; 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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..b9b8be129c 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -3,8 +3,29 @@ * @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 './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 +61,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 +80,10 @@ 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 './usePlatformFunctionApiBindingsQuery'; export * from './usePlatformFunctionApiBindingQuery'; export * from './usePlatformFunctionCapabilityBindingsQuery'; @@ -71,6 +100,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 +113,38 @@ 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 './usePlatformRepositoryWorkflowsQuery'; +export * from './usePlatformRepositoryWorkflowQuery'; export * from './usePlatformResourcesQuery'; export * from './usePlatformResourceQuery'; export * from './usePlatformResourceDeclaredCapacitiesQuery'; @@ -108,6 +169,30 @@ 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 './useRepositoryWorkflowsQuery'; +export * from './useRepositoryWorkflowQuery'; export * from './useResourcesQuery'; export * from './useResourceQuery'; export * from './useResourceDeclaredCapacitiesQuery'; @@ -132,4 +217,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/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/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/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/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/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/query-keys.ts b/sdk/constructive-react/src/compute/hooks/query-keys.ts index 4958367027..f8b5f22893 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -19,6 +19,24 @@ // 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 contentPresetKeys = { /** All contentPreset queries */ all: ['contentpreset'] as const, /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, @@ -28,6 +46,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 +308,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 +399,24 @@ 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 platformFunctionApiBindingKeys = { /** All platformFunctionApiBinding queries */ all: ['platformfunctionapibinding'] as const, /** List query keys */ lists: () => [...platformFunctionApiBindingKeys.all, 'list'] as const, @@ -355,6 +505,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 +572,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 +608,115 @@ 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 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, @@ -565,6 +860,114 @@ 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 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, @@ -699,6 +1102,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 +1130,18 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + build: buildKeys, + buildStep: buildStepKeys, 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 +1160,8 @@ export const queryKeys = { functionInvocationAttempt: functionInvocationAttemptKeys, functionInvocation: functionInvocationKeys, getAllTreeNodesRecord: getAllTreeNodesRecordKeys, + image: imageKeys, + imageGrant: imageGrantKeys, infraCommit: infraCommitKeys, infraGetAllTreeNodesRecord: infraGetAllTreeNodesRecordKeys, infraObject: infraObjectKeys, @@ -752,6 +1170,8 @@ export const queryKeys = { integrationProvider: integrationProviderKeys, namespace: namespaceKeys, namespaceEvent: namespaceEventKeys, + platformBuild: platformBuildKeys, + platformBuildStep: platformBuildStepKeys, platformFunctionApiBinding: platformFunctionApiBindingKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingKeys, platformFunctionDefinition: platformFunctionDefinitionKeys, @@ -760,13 +1180,29 @@ 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, + platformRepositoryWorkflow: platformRepositoryWorkflowKeys, platformResource: platformResourceKeys, platformResourceDeclaredCapacity: platformResourceDeclaredCapacityKeys, platformResourceDefinition: platformResourceDefinitionKeys, @@ -781,6 +1217,18 @@ 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, + repositoryWorkflow: repositoryWorkflowKeys, resource: resourceKeys, resourceDeclaredCapacity: resourceDeclaredCapacityKeys, resourceDefinition: resourceDefinitionKeys, diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index dd356c3de8..4778a8f88e 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -21,7 +21,18 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | 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 +51,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 +61,8 @@ 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 | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -56,13 +71,29 @@ 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 | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | @@ -77,6 +108,18 @@ 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 | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | @@ -94,788 +137,797 @@ 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 | +| `catalogImageId` | UUID | Yes | +| `commitSha` | 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 | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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.contentPreset` -CRUD operations for FunctionApiBinding records. +CRUD operations for ContentPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `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 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 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.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: 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.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, 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.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionCapabilityBinding` +### `db.databaseFunctionGraph` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for DatabaseFunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `context` | String | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | | `databaseId` | UUID | Yes | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | +| `isValid` | Boolean | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `validationErrors` | JSON | 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 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.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.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.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, 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.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDefinition` +### `db.databaseFunctionGraphExecution` -CRUD operations for FunctionDefinition records. +CRUD operations for DatabaseFunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | | `databaseId` | UUID | Yes | -| `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | 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 | -| `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 | -| `volatile` | Boolean | 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 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 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.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.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.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.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.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeployment` +### `db.databaseFunctionGraphExecutionNodeState` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | 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 | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | **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 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.databaseFunctionGraphExecutionOutput` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | 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 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.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.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.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.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.databaseGraphCommit` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | | `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | 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 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.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.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.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, 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.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.databaseGraphGetAllTreeNodesRecord` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord 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 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 databaseGraphGetAllTreeNodesRecord records +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraph` +### `db.databaseGraphObject` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `context` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `definitionsCommitId` | UUID | Yes | -| `description` | String | Yes | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `isValid` | Boolean | Yes | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `validationErrors` | JSON | Yes | +| `kids` | UUID | Yes | +| `ktree` | 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 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.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.databaseGraphObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecution` +### `db.databaseGraphRef` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphRef 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 | +| `commitId` | UUID | 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 | +| `name` | String | Yes | +| `storeId` | UUID | 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 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.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.databaseGraphRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: 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.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionNodeState` +### `db.databaseGraphStore` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphStore 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 | +| `databaseId` | UUID | Yes | +| `hash` | 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 | **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 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.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.databaseGraphStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: 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.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.dbPreset` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `hash` | Base64EncodedBinary | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `scopeId` | UUID | Yes | +| `label` | String | Yes | +| `modulesHash` | UUID | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **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 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.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: 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.functionGraphExecutionOutput.create({ data: { data: '', hash: '', 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.functionGraphExecutionOutput.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.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.functionApiBinding` -CRUD operations for FunctionGraphObject records. +CRUD operations for FunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | 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 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.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', 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.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.functionCapabilityBinding` -CRUD operations for FunctionGraphRef records. +CRUD operations for FunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | 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 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.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, 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.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionDefinition` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `accessChannels` | String | Yes | +| `catalogImageId` | UUID | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | 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 | -| `scopeId` | UUID | 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 | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **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 functionDefinition records +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, catalogImageId: 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, 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.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, catalogImageId: 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, 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.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', catalogImageId: '', 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: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationAttempt` +### `db.functionDeployment` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | Yes | +| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | 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(); - -// 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(); +| `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, catalogImageId: 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.functionDeployment.findOne({ id: '', select: { annotations: true, catalogImageId: 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.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', catalogImageId: '', 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.functionInvocationAttempt.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.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocation` +### `db.functionDeploymentEvent` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDeploymentEvent 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 | +| `deploymentId` | UUID | Yes | +| `eventType` | 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 | -| `taskIdentifier` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | 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 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.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.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.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.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllTreeNodesRecord` +### `db.functionExecutionLog` -CRUD operations for GetAllTreeNodesRecord 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 getAllTreeNodesRecord records -const items = await db.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.infraCommit` +### `db.functionGraphCommit` -CRUD operations for InfraCommit records. +CRUD operations for FunctionGraphCommit records. **Fields:** @@ -883,889 +935,2636 @@ CRUD operations for InfraCommit 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 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 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.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.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.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, 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.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.infraGetAllTreeNodesRecord` +### `db.functionGraph` -CRUD operations for InfraGetAllTreeNodesRecord records. +CRUD operations for FunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | 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 infraGetAllTreeNodesRecord records -const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, 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.infraGetAllTreeNodesRecord.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.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.infraObject` +### `db.functionGraphExecution` -CRUD operations for InfraObject records. +CRUD operations for FunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `data` | JSON | 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 | -| `kids` | UUID | Yes | -| `ktree` | 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 infraObject records -const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, 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.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.infraRef` +### `db.functionGraphExecutionNodeState` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `storeId` | UUID | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | 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 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(); // 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.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(); // Create -const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.infraStore` +### `db.functionGraphExecutionOutput` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `data` | JSON | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `scopeId` | UUID | 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 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.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: 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.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.integrationProvider` +### `db.functionGraphObject` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `brand` | JSON | Yes | -| `category` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `icon` | String | Yes | +| `data` | JSON | Yes | | `id` | UUID | No | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `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 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.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.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.namespace` +### `db.functionGraphRef` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `description` | String | Yes | +| `commitId` | UUID | 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 | +| `storeId` | 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 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.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.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceEvent` +### `db.functionGraphStore` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphStore 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 | -| `namespaceId` | UUID | Yes | +| `name` | 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 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.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.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: 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.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionApiBinding` +### `db.functionInvocationAttempt` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | 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 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.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: 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.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, 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.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionCapabilityBinding` +### `db.functionInvocation` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | -| `updatedAt` | Datetime | 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 | **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 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, 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(); // 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.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: 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(); // Create -const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDefinition` +### `db.getAllTreeNodesRecord` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for GetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `billable` | Boolean | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `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 | -| `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 | -| `volatile` | Boolean | Yes | +| `data` | JSON | Yes | +| `path` | String | 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 getAllTreeNodesRecord records +const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: 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.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeployment` +### `db.image` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for Image records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | +| `isPublished` | Boolean | 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 | +| `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 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 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.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.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.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.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.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.image.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeploymentEvent` +### `db.imageGrant` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for ImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `imageId` | UUID | 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 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.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: 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.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, 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.platformFunctionDeploymentEvent.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.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionExecutionLog` +### `db.infraCommit` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for InfraCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | 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 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.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.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.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', 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.platformFunctionExecutionLog.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.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocationAttempt` +### `db.infraGetAllTreeNodesRecord` -CRUD operations for PlatformFunctionInvocationAttempt records. +CRUD operations for InfraGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `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 | +| `data` | JSON | Yes | +| `path` | 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(); +// List all infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.infraObject` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for InfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `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 | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `kids` | UUID | Yes | +| `ktree` | 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 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.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.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.infraRef` -CRUD operations for PlatformInfraCommit records. +CRUD operations for InfraRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | +| `name` | String | 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(); +// 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.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.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: 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.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.infraStore` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for InfraStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.integrationProvider` -CRUD operations for PlatformInfraObject records. +CRUD operations for IntegrationProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `brand` | JSON | Yes | +| `category` | String | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `description` | String | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `name` | String | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | **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 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.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', 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.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.namespace` -CRUD operations for PlatformInfraRef records. +CRUD operations for Namespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `annotations` | JSON | 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 | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | **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 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(); // 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.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(); // Create -const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.namespaceEvent` -CRUD operations for PlatformInfraStore records. +CRUD operations for NamespaceEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | 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(); +// 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.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: 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.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, 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.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.platformBuild` -CRUD operations for PlatformNamespace records. +CRUD operations for PlatformBuild records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `catalogImageId` | UUID | Yes | +| `commitSha` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | 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 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 platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.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.platformBuild.findOne({ id: '', select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.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.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.platformBuildStep` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for PlatformBuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `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 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 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.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: 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.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, 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.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuildStep.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 | +| `billable` | Boolean | Yes | +| `catalogImageId` | UUID | 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 | +| `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, billable: true, catalogImageId: 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, 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, billable: true, catalogImageId: 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, 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: '', billable: '', catalogImageId: '', 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: '', 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 | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | 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 | + +**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, 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(); + +// 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, 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(); + +// Create +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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 | +| `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, 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(); + +// Create +const created = await db.platformNamespace.create({ data: { annotations: '', 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(); +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 | +| `requiredChecks` | String | 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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.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 | +| `catalogImageId` | UUID | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | 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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 | + +**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(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.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.platformResource` +### `db.platformResourceUsageLog` -CRUD operations for PlatformResource records. +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 | +| `catalogImageId` | UUID | Yes | | `cpuLimitMillicores` | BigInt | Yes | | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | @@ -1786,562 +3585,782 @@ CRUD operations for PlatformResource records. | `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 | +| `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 platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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.platformResourcesHealth.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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.platformResourcesHealth.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` +### `db.platformResourcesRequirementsState` -CRUD operations for PlatformResourceDeclaredCapacity records. +CRUD operations for PlatformResourcesRequirementsState 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 | +| `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 | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | 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 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 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.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.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.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, 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.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDefinition` +### `db.proposalComment` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for ProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | 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 | +| `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 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 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.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.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.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.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.platformResourceDefinition.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.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalComment.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.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 | -| `eventType` | String | Yes | +| `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 | -| `message` | String | Yes | +| `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 | -| `resourceId` | UUID | 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 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 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.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: 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.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, 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.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposal.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +> **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 PlatformResourceInstallation 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 | |-------|------|----------| -| `commitId` | UUID | Yes | +| `blobSha` | String | 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 | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | 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 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.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.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.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, 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.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.proposalReaction` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for ProposalReaction records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `emoji` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | 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 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.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: 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.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, 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.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReaction.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +### `db.proposalReview` -CRUD operations for PlatformResourceUsageLog records. +CRUD operations for ProposalReview records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | 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 | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | 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 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 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.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.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.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, 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.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReview.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +> **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 PlatformResourceUsageSummary records. +### `db.proposalsChunk` + +CRUD operations for ProposalsChunk records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | 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 | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `metadata` | JSON | Yes | +| `proposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **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 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.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.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.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, 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.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalsChunk.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +> **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 PlatformResourceUtilization records. +### `db.registryBinding` + +CRUD operations for RegistryBinding 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 | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `replicas` | Int | 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 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 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.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.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.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.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.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.registry` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for Registry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `authMode` | String | Yes | +| `basePath` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `host` | String | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | -| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | | `kind` | String | Yes | | `labels` | JSON | Yes | | `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `metadata` | JSON | 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 | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | | `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | 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, 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 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.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.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.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.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.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.registry.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.registryGrant` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for RegistryGrant 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 | +| `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 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 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.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: 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.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, 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.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +### `db.repository` -CRUD operations for PlatformResourcesResolvedRequirement records. +CRUD operations for Repository 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 | +| `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 | +| `requiredChecks` | String | 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 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 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, requiredChecks: 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.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.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, requiredChecks: 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.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.repository.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +> **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 PlatformWebhookEndpoint 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 | |-------|------|----------| -| `active` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | 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 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.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.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.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, 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.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryEvent.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` @@ -2353,10 +4372,12 @@ CRUD operations for Resource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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 | @@ -2383,18 +4404,19 @@ CRUD operations for Resource records. | `storageSizeBytes` | 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2453,8 +4475,10 @@ CRUD operations for ResourceDefinition records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultSpec` | JSON | Yes | | `description` | String | Yes | @@ -2471,18 +4495,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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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,6 +4563,7 @@ 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 | @@ -2549,18 +4575,19 @@ CRUD operations for ResourceInstallation records. | `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, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +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, 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.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: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +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(); @@ -2737,10 +4764,12 @@ CRUD operations for ResourcesHealth records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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 | @@ -2768,18 +4797,19 @@ CRUD operations for ResourcesHealth records. | `storageSizeBytes` | 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2873,6 +4903,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 +4915,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 +4979,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 @@ -3037,6 +5084,261 @@ 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.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.importDefinitions` importDefinitions diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index 62973ed4f2..7284b066dc 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -5,7 +5,18 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; 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 +35,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 +45,8 @@ 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 { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -40,13 +55,29 @@ 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 { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; @@ -61,6 +92,18 @@ 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 { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; @@ -110,7 +153,20 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(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 +185,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 +195,8 @@ 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), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -145,13 +205,29 @@ 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), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), @@ -166,6 +242,18 @@ 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), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(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..20846f2d71 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -233,9 +233,83 @@ 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 */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} +/** 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 +334,212 @@ 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; + /** 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 */ + status?: 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 +603,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; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -332,6 +614,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 */ @@ -404,6 +687,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; } @@ -411,9 +695,12 @@ export interface FunctionDefinition { export interface FunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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,6 +739,7 @@ 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 { @@ -736,6 +1024,8 @@ export interface FunctionInvocation { 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 */ @@ -771,6 +1061,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 */ @@ -906,6 +1254,75 @@ 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 */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -944,6 +1361,8 @@ export interface PlatformFunctionDefinition { accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -953,6 +1372,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) */ @@ -1025,6 +1445,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; } @@ -1032,9 +1453,12 @@ export interface PlatformFunctionDefinition { export interface PlatformFunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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,6 +1495,7 @@ 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 { @@ -1147,6 +1572,8 @@ export interface PlatformFunctionInvocation { 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 */ @@ -1178,13 +1605,67 @@ 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; } -/** Commit history — each commit snapshots a tree root for a store */ -export interface PlatformInfraCommit { - /** User who authored the changes */ - authorId?: string | null; - /** User who committed (may differ from author) */ - committerId?: string | null; - /** Commit timestamp */ +/** 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 */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Commit timestamp */ date?: string | null; /** Unique commit identifier */ id: string; @@ -1244,6 +1725,52 @@ 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 */ @@ -1285,16 +1812,415 @@ 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 */ + 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 */ + 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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 */ annotations?: Record | null; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; @@ -1342,6 +2268,7 @@ export interface PlatformResource { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1362,8 +2289,11 @@ export interface PlatformResourceDeclaredCapacity { export interface PlatformResourceDefinition { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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,6 +2321,7 @@ 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 { @@ -1415,6 +2346,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 +2364,7 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1515,10 +2448,12 @@ export interface PlatformResourceUtilization { } export interface PlatformResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; installationId?: string | null; @@ -1545,6 +2480,7 @@ export interface PlatformResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1574,6 +2510,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 +2528,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,16 +2554,439 @@ export interface PlatformWebhookEvent { status?: string | null; updatedAt?: string | null; } +/** Comments on a local proposal, optionally anchored to a line */ +export interface ProposalComment { + /** Actor who wrote the comment */ + 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; + 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 Proposal { + /** Actor who opened the proposal */ + 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; + /** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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 */ @@ -1675,6 +3036,7 @@ export interface Resource { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1695,8 +3057,11 @@ export interface ResourceDeclaredCapacity { export interface ResourceDefinition { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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 */ @@ -1726,6 +3091,7 @@ 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 { @@ -1752,6 +3118,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 +3138,7 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1860,10 +3228,12 @@ export interface ResourceUtilization { } export interface ResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; @@ -1891,6 +3261,7 @@ export interface ResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1920,6 +3291,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 +3311,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 +3352,30 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + catalogImage?: Image | null; + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} 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,11 +3385,14 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + catalogImage?: Image | null; + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { + catalogImage?: Image | null; namespace?: Namespace | null; } export interface FunctionDeploymentEventRelations {} @@ -2002,6 +3401,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -2016,6 +3416,17 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + buildsByCatalogImageId?: ConnectionResult; + functionDefinitionsByCatalogImageId?: ConnectionResult; + functionDeploymentsByCatalogImageId?: ConnectionResult; + imageGrants?: ConnectionResult; + resourceDefinitionsByCatalogImageId?: ConnectionResult; + resourcesByCatalogImageId?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -2024,12 +3435,21 @@ export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + catalogImage?: PlatformImage | null; + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2038,12 +3458,14 @@ export interface PlatformFunctionCapabilityBindingRelations { function?: PlatformFunctionDefinition | null; } export interface PlatformFunctionDefinitionRelations { + catalogImage?: PlatformImage | null; graph?: FunctionGraph | null; platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; platformFunctionCapabilityBindingsByFunctionId?: ConnectionResult; platformWebhookEndpointsByFunctionDefinitionId?: ConnectionResult; } export interface PlatformFunctionDeploymentRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; } export interface PlatformFunctionDeploymentEventRelations {} @@ -2052,33 +3474,105 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformBuildsByCatalogImageId?: ConnectionResult; + platformFunctionDefinitionsByCatalogImageId?: ConnectionResult; + platformFunctionDeploymentsByCatalogImageId?: ConnectionResult; + platformImageGrantsByImageId?: ConnectionResult; + platformResourceDefinitionsByCatalogImageId?: ConnectionResult; + platformResourcesByCatalogImageId?: 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 { platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} -export interface PlatformResourceRelations { - installation?: PlatformResourceInstallation | null; +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; - resourceDefinition?: PlatformResourceDefinition | null; - platformResourceStatusChecksByResourceId?: ConnectionResult; + 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; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; +} +export interface PlatformResourceRelations { + catalogImage?: PlatformImage | null; + installation?: PlatformResourceInstallation | null; + namespace?: PlatformNamespace | null; + resourceDefinition?: PlatformResourceDefinition | null; + platformResourceStatusChecksByResourceId?: ConnectionResult; } export interface PlatformResourceDeclaredCapacityRelations {} export interface PlatformResourceDefinitionRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; platformResourcesByResourceDefinitionId?: ConnectionResult; } export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } export interface PlatformResourceStatusCheckRelations { @@ -2098,7 +3592,63 @@ 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; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { + catalogImage?: Image | null; installation?: ResourceInstallation | null; namespace?: Namespace | null; resourceDefinition?: ResourceDefinition | null; @@ -2106,12 +3656,14 @@ export interface ResourceRelations { } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { + catalogImage?: Image | null; namespace?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } export interface ResourceStatusCheckRelations { @@ -2132,7 +3684,23 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; 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 +3727,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 +3738,8 @@ 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 PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2184,15 +3756,41 @@ 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 PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2220,6 +3818,18 @@ 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 RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2240,6 +3850,61 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ +export type BuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: ImageSelect; + }; + 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 ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -2253,6 +3918,136 @@ export type ContentPresetSelect = { 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; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: 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; @@ -2301,11 +4096,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2343,7 +4140,14 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: ImageSelect; + }; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2365,8 +4169,10 @@ export type FunctionDefinitionSelect = { }; export type FunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2387,6 +4193,10 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -2448,6 +4258,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2553,6 +4369,7 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2576,6 +4393,80 @@ 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; + buildsByCatalogImageId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + functionDefinitionsByCatalogImageId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + functionDeploymentsByCatalogImageId?: { + select: FunctionDeploymentSelect; + first?: number; + filter?: FunctionDeploymentFilter; + orderBy?: FunctionDeploymentOrderBy[]; + }; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; + resourceDefinitionsByCatalogImageId?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; + resourcesByCatalogImageId?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +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; @@ -2647,6 +4538,12 @@ export type NamespaceSelect = { filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2682,6 +4579,59 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; + 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 PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2717,11 +4667,13 @@ export type PlatformFunctionCapabilityBindingSelect = { export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; billable?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2759,7 +4711,11 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; graph?: { select: FunctionGraphSelect; }; @@ -2784,8 +4740,10 @@ export type PlatformFunctionDefinitionSelect = { }; export type PlatformFunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2805,6 +4763,10 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -2848,6 +4810,7 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2867,34 +4830,106 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; -export type PlatformInfraCommitSelect = { - authorId?: boolean; - committerId?: boolean; - date?: boolean; - id?: boolean; - message?: boolean; - parentIds?: boolean; - scopeId?: boolean; - storeId?: boolean; - treeId?: boolean; -}; -export type PlatformInfraGetAllTreeNodesRecordSelect = { - data?: boolean; - path?: boolean; -}; -export type PlatformInfraObjectSelect = { +export type PlatformImageSelect = { createdAt?: boolean; - data?: boolean; - id?: boolean; - kids?: boolean; - ktree?: boolean; - scopeId?: boolean; -}; -export type PlatformInfraRefSelect = { - commitId?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; name?: boolean; - scopeId?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformBuildsByCatalogImageId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformFunctionDefinitionsByCatalogImageId?: { + select: PlatformFunctionDefinitionSelect; + first?: number; + filter?: PlatformFunctionDefinitionFilter; + orderBy?: PlatformFunctionDefinitionOrderBy[]; + }; + platformFunctionDeploymentsByCatalogImageId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; + platformResourceDefinitionsByCatalogImageId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; + platformResourcesByCatalogImageId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; +}; +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; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + scopeId?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type PlatformInfraGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type PlatformInfraObjectSelect = { + createdAt?: boolean; + data?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; + scopeId?: boolean; +}; +export type PlatformInfraRefSelect = { + commitId?: boolean; + id?: boolean; + name?: boolean; + scopeId?: boolean; storeId?: boolean; }; export type PlatformInfraStoreSelect = { @@ -2904,6 +4939,30 @@ 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; createdAt?: boolean; @@ -2923,6 +4982,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2957,12 +5022,401 @@ 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; export type PlatformResourceSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -2988,6 +5442,10 @@ export type PlatformResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; installation?: { select: PlatformResourceInstallationSelect; }; @@ -3021,8 +5479,10 @@ export type PlatformResourceDeclaredCapacitySelect = { }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -3038,6 +5498,10 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -3061,6 +5525,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3071,9 +5536,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; @@ -3138,10 +5610,12 @@ export type PlatformResourceUtilizationSelect = { }; export type PlatformResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -3168,6 +5642,7 @@ export type PlatformResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3195,6 +5670,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3205,6 +5681,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3235,26 +5712,427 @@ 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; + 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: ProposalSelect; + }; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; +}; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: 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: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; + first?: number; + 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 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + catalogImageId?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: 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; @@ -3267,6 +6145,10 @@ export type ResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; installation?: { select: ResourceInstallationSelect; }; @@ -3300,8 +6182,10 @@ export type ResourceDeclaredCapacitySelect = { }; export type ResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; defaultSpec?: boolean; description?: boolean; @@ -3318,6 +6202,10 @@ export type ResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -3342,6 +6230,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3353,9 +6242,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; @@ -3423,10 +6319,12 @@ export type ResourceUtilizationSelect = { }; export type ResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; @@ -3454,6 +6352,7 @@ export type ResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3481,6 +6380,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3492,6 +6392,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3524,6 +6425,112 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 `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; +} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -3554,43 +6561,306 @@ export interface ContentPresetFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface DbPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface DatabaseFunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `definition` field. */ - definition?: JSONFilter; + /** 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 `label` field. */ - label?: StringFilter; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: DatabaseFunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + 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 FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; + 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 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 `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; +} +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. */ @@ -3649,6 +6919,12 @@ export interface FunctionDefinitionFilter { accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -3659,6 +6935,8 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3675,6 +6953,10 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3741,6 +7023,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. */ @@ -3753,10 +7037,18 @@ export interface FunctionDeploymentFilter { and?: FunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -3803,6 +7095,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 +7205,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. */ @@ -4157,6 +7455,8 @@ 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. */ @@ -4199,34 +7499,138 @@ 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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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. */ - date?: DatetimeFilter; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** 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?: InfraCommitFilter; + not?: ImageFilter; /** 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; + 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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; + /** 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[]; @@ -4349,6 +7753,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 +7802,108 @@ 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -4459,6 +7969,12 @@ export interface PlatformFunctionDefinitionFilter { and?: PlatformFunctionDefinitionFilter[]; /** Filter by the object’s `billable` field. */ billable?: BooleanFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -4469,6 +7985,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. */ @@ -4559,6 +8077,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; } @@ -4567,10 +8087,18 @@ export interface PlatformFunctionDeploymentFilter { and?: PlatformFunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -4615,6 +8143,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,6 +8241,8 @@ 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. */ @@ -4746,6 +8278,106 @@ 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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,6 +8467,62 @@ 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[]; @@ -4866,6 +8554,10 @@ export interface PlatformNamespaceFilter { 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,547 +8601,681 @@ 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 `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; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformProposalCommentFilter; /** 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; + 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 PlatformResourceDeclaredCapacityFilter { +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** 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; + 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?: 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; + 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?: PlatformResourceDeclaredCapacityFilter; + not?: PlatformProposalFilter; /** 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; + 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 PlatformResourceDefinitionFilter { +export interface PlatformProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + 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 `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 `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; + not?: PlatformProposalFileViewFilter; /** 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?: 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 `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface PlatformResourceEventFilter { +export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceEventFilter[]; + 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 `eventType` field. */ - eventType?: 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; + /** 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 `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceEventFilter; + not?: PlatformProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + 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 PlatformResourceInstallationFilter { +export interface PlatformRegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `name` field. */ - name?: 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?: PlatformResourceInstallationFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** 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; + 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 `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 PlatformResourceStatusCheckFilter { +export interface PlatformRegistryFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + 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?: PlatformResourceStatusCheckFilter; + not?: PlatformRegistryFilter; /** 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; + 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 PlatformResourceUsageLogFilter { +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + 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; - /** 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; + not?: PlatformRegistryGrantFilter; /** 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?: 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 PlatformResourceUsageSummaryFilter { +export interface PlatformRepositoryFilter { /** 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?: 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 `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?: PlatformResourceUsageSummaryFilter; + not?: PlatformRepositoryFilter; /** 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?: 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 PlatformResourceUtilizationFilter { +export interface PlatformRepositoryWorkflowFilter { /** 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; + 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 `errorCount` field. */ - errorCount?: IntFilter; + /** 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 `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 `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: 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 `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesResolvedRequirementFilter; + not?: PlatformRepositoryWorkflowFilter; /** 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; + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: 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; -} -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; + /** 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 ResourceFilter { +export interface PlatformResourceFilter { /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5458,14 +9284,14 @@ export interface ResourceFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; + installation?: PlatformResourceInstallationFilter; /** A related `installation` exists. */ installationExists?: boolean; /** Filter by the object’s `installationId` field. */ @@ -5487,27 +9313,27 @@ export interface ResourceFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + 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?: ResourceDefinitionFilter; + resourceDefinition?: PlatformResourceDefinitionFilter; /** 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. */ @@ -5524,10 +9350,12 @@ export interface ResourceFilter { 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 PlatformResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; + and?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5545,9 +9373,9 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: PlatformResourceDeclaredCapacityFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; + or?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `podCountMax` field. */ podCountMax?: IntFilter; /** Filter by the object’s `podCountMin` field. */ @@ -5559,17 +9387,23 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; } -export interface ResourceDefinitionFilter { +export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ defaultSpec?: JSONFilter; /** Filter by the object’s `description` field. */ @@ -5585,19 +9419,19 @@ export interface ResourceDefinitionFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: PlatformResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** 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 `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `stepUpMinAge` field. */ @@ -5606,16 +9440,16 @@ export interface ResourceDefinitionFilter { 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 PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: PlatformResourceEventFilter[]; /** 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. */ @@ -5625,41 +9459,45 @@ export interface ResourceEventFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: PlatformResourceEventFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; + or?: PlatformResourceEventFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; } -export interface ResourceInstallationFilter { +export interface PlatformResourceInstallationFilter { /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; + 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 `databaseId` field. */ - databaseId?: 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?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: PlatformResourceInstallationFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; + or?: PlatformResourceInstallationFilter[]; /** 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 `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. */ @@ -5672,26 +9510,26 @@ export interface ResourceInstallationFilter { 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 PlatformResourceStatusCheckFilter { /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; + and?: PlatformResourceStatusCheckFilter[]; /** 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; + not?: PlatformResourceStatusCheckFilter; /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; + 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?: ResourceFilter; + resource?: PlatformResourceFilter; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `result` field. */ @@ -5699,13 +9537,11 @@ export interface ResourceStatusCheckFilter { /** Filter by the object’s `status` field. */ status?: StringFilter; } -export interface ResourceUsageLogFilter { +export interface PlatformResourceUsageLogFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; + and?: PlatformResourceUsageLogFilter[]; /** 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. */ @@ -5717,9 +9553,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageLogFilter; + not?: PlatformResourceUsageLogFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; + or?: PlatformResourceUsageLogFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `sampledAt` field. */ @@ -5727,11 +9563,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `source` field. */ source?: StringFilter; } -export interface ResourceUsageSummaryFilter { +export interface PlatformResourceUsageSummaryFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + and?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `date` field. */ date?: DateFilter; /** Filter by the object’s `gbSeconds` field. */ @@ -5745,9 +9579,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: PlatformResourceUsageSummaryFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; + or?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `runtimeSeconds` field. */ @@ -5755,9 +9589,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourceUtilizationFilter { +export interface PlatformResourceUtilizationFilter { /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; + and?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `avgMemoryBytes` field. */ avgMemoryBytes?: BigIntFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -5789,9 +9623,9 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUtilizationFilter; + not?: PlatformResourceUtilizationFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; + or?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; /** Filter by the object’s `resourceId` field. */ @@ -5801,11 +9635,13 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourcesHealthFilter { +export interface PlatformResourcesHealthFilter { /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; + and?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5814,8 +9650,8 @@ export interface ResourcesHealthFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ @@ -5841,9 +9677,9 @@ export interface ResourcesHealthFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: PlatformResourcesHealthFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; + or?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ @@ -5868,18 +9704,20 @@ export interface ResourcesHealthFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesRequirementsStateFilter { +export interface PlatformResourcesRequirementsStateFilter { /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; + and?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `configHash` field. */ configHash?: StringFilter; /** Filter by the object’s `configObjectName` field. */ configObjectName?: StringFilter; /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; + not?: PlatformResourcesRequirementsStateFilter; /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; + or?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `requirementsHash` field. */ requirementsHash?: StringFilter; /** Filter by the object’s `resourceId` field. */ @@ -5891,9 +9729,9 @@ export interface ResourcesRequirementsStateFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface ResourcesResolvedRequirementFilter { +export interface PlatformResourcesResolvedRequirementFilter { /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; + and?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `atomId` field. */ atomId?: UUIDFilter; /** Filter by the object’s `configObjectName` field. */ @@ -5903,9 +9741,9 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: PlatformResourcesResolvedRequirementFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; + or?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `present` field. */ present?: BooleanFilter; /** Filter by the object’s `realm` field. */ @@ -5921,19 +9759,19 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface WebhookEndpointFilter { +export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + 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 `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + functionDefinition?: PlatformFunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; /** Filter by the object’s `host` field. */ @@ -5941,15 +9779,19 @@ export interface WebhookEndpointFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** 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?: PlatformWebhookEndpointFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; + 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. */ @@ -5960,20 +9802,16 @@ export interface WebhookEndpointFilter { 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 PlatformWebhookEventFilter { /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: PlatformWebhookEventFilter[]; /** 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; + endpoint?: PlatformWebhookEndpointFilter; /** Filter by the object’s `endpointId` field. */ endpointId?: UUIDFilter; /** Filter by the object’s `error` field. */ @@ -5987,9 +9825,9 @@ export interface WebhookEventFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: PlatformWebhookEventFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; + or?: PlatformWebhookEventFilter[]; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; /** Filter by the object’s `provider` field. */ @@ -6001,126 +9839,1710 @@ export interface WebhookEventFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -// ============ OrderBy Types ============ -export type ContentPresetOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DbPresetOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' - | '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' +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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** 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; +} +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 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 `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 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' + | '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'; +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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6186,15 +11608,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6237,7 +11665,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' @@ -6531,6 +11961,8 @@ 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' @@ -6572,6 +12004,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' @@ -6723,7 +12225,83 @@ export type NamespaceEventOrderBy = | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; + | 'PRIMARY_KEY_DESC'; +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_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' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -6769,6 +12347,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'CONCURRENCY_ASC' @@ -6779,6 +12359,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' @@ -6856,15 +12438,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6905,7 +12493,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,6 +12573,8 @@ 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' @@ -7016,6 +12608,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,6 +12748,54 @@ 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' @@ -7114,31 +12820,525 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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'; -export type PlatformNamespaceEventOrderBy = + | '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' - | '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'; + | '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 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'; export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7147,6 +13347,8 @@ 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' @@ -7199,7 +13401,9 @@ export type PlatformResourceOrderBy = | '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' @@ -7231,10 +13435,14 @@ export type PlatformResourceDeclaredCapacityOrderBy = export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -7267,7 +13475,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 +13503,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 +13527,9 @@ 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 PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7421,6 +13635,8 @@ export type PlatformResourceUtilizationOrderBy = export type PlatformResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7429,6 +13645,8 @@ 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' @@ -7481,7 +13699,9 @@ export type PlatformResourcesHealthOrderBy = | '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,81 +13728,603 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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 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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7591,6 +14333,8 @@ 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' @@ -7645,7 +14389,9 @@ export type ResourceOrderBy = | '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' @@ -7677,10 +14423,14 @@ export type ResourceDeclaredCapacityOrderBy = export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' | 'DEFAULT_SPEC_ASC' @@ -7715,7 +14465,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 +14495,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 +14521,9 @@ 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 ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7879,6 +14635,8 @@ export type ResourceUtilizationOrderBy = export type ResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7887,6 +14645,8 @@ 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' @@ -7941,7 +14701,9 @@ export type ResourcesHealthOrderBy = | '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 +14751,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 +14777,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,8443 +14811,15793 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 CreateContentPresetInput { clientMutationId?: string; - contentPreset: { + 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; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: 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; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: 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[]; + catalogImageId?: string; + 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[]; + 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; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + 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; +} +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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +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; +} +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; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 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[]; + billable?: boolean; + catalogImageId?: string; + 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[]; + 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; + billable?: boolean | null; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: 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; +} +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; + requiredChecks?: 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; + requiredChecks?: 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 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; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; + }; +} +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; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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; + catalogImageId?: string | 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 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; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; - commitId?: string; - definition: Record; - description?: string; - kind: string; - label?: string; - slug: string; - storeId?: string; + 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 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 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 UpdateContentPresetInput { +export interface UpdateProposalFileViewInput { clientMutationId?: string; id: string; - contentPresetPatch: ContentPresetPatch; + proposalFileViewPatch: ProposalFileViewPatch; } -export interface DeleteContentPresetInput { +export interface DeleteProposalFileViewInput { clientMutationId?: string; id: string; } -export interface CreateDbPresetInput { +export interface CreateProposalReactionInput { clientMutationId?: string; - dbPreset: { - active?: boolean; - commitId?: string; - definition: Record; - description?: string; - label?: string; - modulesHash?: string; - slug: string; - storeId?: string; + proposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + databaseId: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: 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 ProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateDbPresetInput { +export interface UpdateProposalReactionInput { clientMutationId?: string; id: string; - dbPresetPatch: DbPresetPatch; + proposalReactionPatch: ProposalReactionPatch; } -export interface DeleteDbPresetInput { +export interface DeleteProposalReactionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateProposalReviewInput { clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; + proposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + databaseId: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; }; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +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 UpdateFunctionApiBindingInput { +export interface UpdateProposalReviewInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + proposalReviewPatch: ProposalReviewPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteProposalReviewInput { clientMutationId?: string; id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface CreateProposalsChunkInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; - databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; + proposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; metadata?: Record; + proposalsId: string; }; } -export interface FunctionCapabilityBindingPatch { - bucketId?: string | null; +export interface ProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; metadata?: Record | null; + proposalsId?: string | null; } -export interface UpdateFunctionCapabilityBindingInput { +export interface UpdateProposalsChunkInput { clientMutationId?: string; id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + proposalsChunkPatch: ProposalsChunkPatch; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DeleteProposalsChunkInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDefinitionInput { +export interface CreateRegistryBindingInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; + registryBinding: { + createdBy?: string; + 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[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDefinitionPatch { - accessChannels?: string[] | null; - category?: string | null; - concurrency?: number | null; +export interface RegistryBindingPatch { + createdBy?: string | 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; - 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; + 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 UpdateFunctionDefinitionInput { +export interface UpdateRegistryBindingInput { clientMutationId?: string; id: string; - functionDefinitionPatch: FunctionDefinitionPatch; + registryBindingPatch: RegistryBindingPatch; } -export interface DeleteFunctionDefinitionInput { +export interface DeleteRegistryBindingInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreateRegistryInput { clientMutationId?: string; - functionDeployment: { - annotations?: Record; - concurrency?: number; + registry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; databaseId: string; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; labels?: Record; lastError?: string; - lastErrorAt?: string; - namespaceId: string; - realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; status?: string; - timeoutSeconds?: number; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; +export interface RegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; databaseId?: string | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: 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; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; status?: string | null; - timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdateRegistryInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + registryPatch: RegistryPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeleteRegistryInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentEventInput { +export interface CreateRegistryGrantInput { clientMutationId?: string; - functionDeploymentEvent: { + 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; + requiredChecks?: 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; + requiredChecks?: 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; - deploymentId: string; + deliveryId?: string; eventType: string; - message?: string; metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentEventPatch { +export interface RepositoryEventPatch { actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - deploymentId?: string | null; + deliveryId?: string | null; eventType?: string | null; - message?: string | null; metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentEventInput { +export interface UpdateRepositoryEventInput { clientMutationId?: string; id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + repositoryEventPatch: RepositoryEventPatch; } -export interface DeleteFunctionDeploymentEventInput { +export interface DeleteRepositoryEventInput { clientMutationId?: string; id: string; } -export interface CreateFunctionExecutionLogInput { +export interface CreateRepositoryWorkflowInput { clientMutationId?: string; - functionExecutionLog: { - actorId?: string; + repositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: 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 FunctionExecutionLogPatch { - actorId?: string | null; +export interface RepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: 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 UpdateFunctionExecutionLogInput { +export interface UpdateRepositoryWorkflowInput { clientMutationId?: string; id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + repositoryWorkflowPatch: RepositoryWorkflowPatch; } -export interface DeleteFunctionExecutionLogInput { +export interface DeleteRepositoryWorkflowInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphCommitInput { +export interface CreateResourceInput { clientMutationId?: string; - functionGraphCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; + resource: { + annotations?: Record; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: 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 ResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionGraphCommitInput { +export interface UpdateResourceInput { clientMutationId?: string; id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + resourcePatch: ResourcePatch; } -export interface DeleteFunctionGraphCommitInput { +export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { +export interface CreateResourceDeclaredCapacityInput { clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; + 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; }; } -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 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; } -export interface UpdateFunctionGraphInput { +export interface UpdateResourceDeclaredCapacityInput { clientMutationId?: string; id: string; - functionGraphPatch: FunctionGraphPatch; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; } -export interface DeleteFunctionGraphInput { +export interface DeleteResourceDeclaredCapacityInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionInput { +export interface CreateResourceDefinitionInput { 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; + resourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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 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 ResourceDefinitionPatch { + annotations?: Record | null; + catalogImageId?: string | 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 UpdateFunctionGraphExecutionInput { +export interface UpdateResourceDefinitionInput { clientMutationId?: string; id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + resourceDefinitionPatch: ResourceDefinitionPatch; } -export interface DeleteFunctionGraphExecutionInput { +export interface DeleteResourceDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface CreateResourceEventInput { 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; + resourceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: 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 ResourceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface UpdateResourceEventInput { clientMutationId?: string; id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + resourceEventPatch: ResourceEventPatch; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface DeleteResourceEventInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface CreateResourceInstallationInput { clientMutationId?: string; - functionGraphExecutionOutput: { - data: Record; - hash: Base64EncodedBinary; - scopeId: 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 FunctionGraphExecutionOutputPatch { - data?: Record | null; - hash?: Base64EncodedBinary | null; - scopeId?: string | null; +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 UpdateFunctionGraphExecutionOutputInput { +export interface UpdateResourceInstallationInput { clientMutationId?: string; id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + resourceInstallationPatch: ResourceInstallationPatch; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphObjectInput { +export interface CreateResourceStatusCheckInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; + resourceStatusCheck: { + completedAt?: string; + databaseId: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; }; } -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: 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 UpdateFunctionGraphObjectInput { +export interface UpdateResourceStatusCheckInput { clientMutationId?: string; id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + resourceStatusCheckPatch: ResourceStatusCheckPatch; } -export interface DeleteFunctionGraphObjectInput { +export interface DeleteResourceStatusCheckInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphRefInput { +export interface CreateResourceUsageLogInput { clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; + resourceUsageLog: { + cpuMillicores?: string; + databaseId: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; }; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +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 UpdateFunctionGraphRefInput { +export interface UpdateResourceUsageLogInput { clientMutationId?: string; id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + resourceUsageLogPatch: ResourceUsageLogPatch; } -export interface DeleteFunctionGraphRefInput { +export interface DeleteResourceUsageLogInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphStoreInput { +export interface CreateResourceUsageSummaryInput { clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; + resourceUsageSummary: { + databaseId: string; + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; }; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +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 UpdateFunctionGraphStoreInput { +export interface UpdateResourceUsageSummaryInput { clientMutationId?: string; id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + resourceUsageSummaryPatch: ResourceUsageSummaryPatch; } -export interface DeleteFunctionGraphStoreInput { +export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface CreateResourceUtilizationInput { 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; + 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 UpdateFunctionInvocationAttemptInput { +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; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; + resourceUtilizationPatch: ResourceUtilizationPatch; } -export interface DeleteFunctionInvocationAttemptInput { +export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationInput { +export interface CreateResourcesHealthInput { clientMutationId?: string; - functionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; + resourcesHealth: { + annotations?: Record; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + 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; - taskIdentifier: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; +export interface ResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; - 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; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateGetAllTreeNodesRecordInput { +export interface UpdateResourcesHealthInput { clientMutationId?: string; id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; + resourcesHealthPatch: ResourcesHealthPatch; } -export interface DeleteGetAllTreeNodesRecordInput { +export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateInfraCommitInput { +export interface CreateResourcesRequirementsStateInput { clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + 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 ResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; } -export interface UpdateInfraCommitInput { +export interface UpdateResourcesRequirementsStateInput { clientMutationId?: string; id: string; - infraCommitPatch: InfraCommitPatch; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; } -export interface DeleteInfraCommitInput { +export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { +export interface CreateResourcesResolvedRequirementInput { clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: 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 InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +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 UpdateInfraGetAllTreeNodesRecordInput { +export interface UpdateResourcesResolvedRequirementInput { clientMutationId?: string; id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; } -export interface DeleteInfraGetAllTreeNodesRecordInput { +export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } -export interface CreateInfraObjectInput { +export interface CreateWebhookEndpointInput { clientMutationId?: string; - infraObject: { - data?: Record; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - kids?: string[]; - ktree?: string[]; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface InfraObjectPatch { - data?: Record | null; +export interface WebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - kids?: string[] | null; - ktree?: 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 UpdateInfraObjectInput { +export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; - infraObjectPatch: InfraObjectPatch; + webhookEndpointPatch: WebhookEndpointPatch; } -export interface DeleteInfraObjectInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; } -export interface CreateInfraRefInput { +export interface CreateWebhookEventInput { clientMutationId?: string; - infraRef: { - commitId?: string; + webhookEvent: { databaseId: string; - name: string; - storeId: string; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; }; } -export interface InfraRefPatch { - commitId?: string | null; +export interface WebhookEventPatch { databaseId?: string | null; - name?: string | null; - storeId?: 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 UpdateInfraRefInput { +export interface UpdateWebhookEventInput { clientMutationId?: string; id: string; - infraRefPatch: InfraRefPatch; + webhookEventPatch: WebhookEventPatch; } -export interface DeleteInfraRefInput { +export interface DeleteWebhookEventInput { clientMutationId?: string; id: string; } -export interface CreateInfraStoreInput { +// ============ 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: { + buildsByCatalogImageId: 'Build', + functionDefinitionsByCatalogImageId: 'FunctionDefinition', + functionDeploymentsByCatalogImageId: 'FunctionDeployment', + imageGrants: 'ImageGrant', + resourceDefinitionsByCatalogImageId: 'ResourceDefinition', + resourcesByCatalogImageId: 'Resource', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformBuildsByCatalogImageId: 'PlatformBuild', + platformFunctionDefinitionsByCatalogImageId: 'PlatformFunctionDefinition', + platformFunctionDeploymentsByCatalogImageId: 'PlatformFunctionDeployment', + platformImageGrantsByImageId: 'PlatformImageGrant', + platformResourceDefinitionsByCatalogImageId: 'PlatformResourceDefinition', + platformResourcesByCatalogImageId: 'PlatformResource', + }, + PlatformNamespace: { + 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', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + }, + 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', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + }, + 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; - infraStore: { - databaseId: string; - hash?: string; - name: string; - }; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +export interface AddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface UpdateInfraStoreInput { +export interface AddNodeInput { clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; } -export interface DeleteInfraStoreInput { +export interface AddNodeAndSaveInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface CreateIntegrationProviderInput { +export interface CopyGraphInput { clientMutationId?: string; - integrationProvider: { - brand?: Record; - category?: string; - description?: string; - icon?: string; - logo?: ConstructiveInternalTypeImage; - name: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - }; + graphId?: string; + name?: string; + scopeId?: 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 DatabaseAddEdgeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; } -export interface UpdateIntegrationProviderInput { +export interface DatabaseAddEdgeAndSaveInput { clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteIntegrationProviderInput { +export interface DatabaseAddNodeInput { clientMutationId?: string; - id: string; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; } -export interface CreateNamespaceInput { +export interface DatabaseAddNodeAndSaveInput { clientMutationId?: string; - namespace: { - annotations?: Record; - databaseId: string; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; +} +export interface DatabaseCopyGraphInput { + clientMutationId?: string; + databaseId?: string; + graphId?: string; + name?: string; } -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; +export interface DatabaseCreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; } -export interface UpdateNamespaceInput { +export interface DatabaseGraphInitEmptyRepoInput { clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; + sId?: string; + storeId?: string; } -export interface DeleteNamespaceInput { +export interface DatabaseGraphInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateNamespaceEventInput { +export interface DatabaseGraphInsertNodesAtPathsInput { clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface NamespaceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: 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 UpdateNamespaceEventInput { +export interface DatabaseGraphSetDataAtPathInput { clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteNamespaceEventInput { +export interface DatabaseGraphSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionApiBindingInput { +export interface DatabaseImportDefinitionsInput { clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; } -export interface UpdatePlatformFunctionApiBindingInput { +export interface DatabaseSaveGraphInput { clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + graphId?: string; + message?: string; + rootHash?: string; } -export interface DeletePlatformFunctionApiBindingInput { +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 CreatePlatformFunctionCapabilityBindingInput { +export interface DatabaseValidateFunctionGraphInput { clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; + graphId?: string; } -export interface PlatformFunctionCapabilityBindingPatch { - bucketId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +export interface ImportDefinitionsInput { + clientMutationId?: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface UpdatePlatformFunctionCapabilityBindingInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface DeletePlatformFunctionCapabilityBindingInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - id: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionDefinitionInput { +export interface InfraInsertNodeAtPathInput { 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; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -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; +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDefinitionInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDefinitionInput { +export interface InfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionDeploymentInput { +export interface InitEmptyRepoInput { 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; - }; -} -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; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDeploymentInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDeploymentInput { +export interface InsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreatePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInitEmptyRepoInput { 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; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreatePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetAndCommitInput { 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; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsInstallInput { 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; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface UpdatePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; + commitId?: string; + targetInstallationId?: string; } -export interface DeletePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; + targetInstallationId?: string; } -export interface CreatePlatformFunctionInvocationInput { +export interface PlatformResourceInstallationsUpgradeInput { 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; - }; + newParams?: Record; + targetInstallationId?: 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; +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 UpdatePlatformFunctionInvocationInput { +export interface ResourceInstallationsInstallInput { clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface DeletePlatformFunctionInvocationInput { +export interface ResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; + commitId?: string; + targetInstallationId?: string; } -export interface CreatePlatformInfraCommitInput { +export interface ResourceInstallationsUninstallInput { 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; + targetInstallationId?: string; } -export interface UpdatePlatformInfraCommitInput { +export interface ResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; + newParams?: Record; + targetInstallationId?: string; } -export interface DeletePlatformInfraCommitInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + rootHash?: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { +export interface SetAndCommitInput { clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface SetDataAtPathInput { + clientMutationId?: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface DeletePlatformInfraGetAllTreeNodesRecordInput { +export interface StartExecutionInput { 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 CreatePlatformInfraObjectInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; + graphId?: string; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: 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 UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** 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 DeletePlatformInfraObjectInput { - 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 CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: 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 PlatformInfraRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: 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 UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** 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 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 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 many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyBuildFilter { + /** 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDefinitionFilter { + /** 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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDeploymentFilter { + /** 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 `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; +} +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceDefinitionFilter { + /** 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 DeletePlatformInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceFilter { + /** 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 CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: 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 PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: 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 UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** 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 DeletePlatformInfraStoreInput { - 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 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 `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 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 `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 UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** 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 DeletePlatformNamespaceInput { - 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 CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: 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 PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: 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 UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** 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 DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformBuildFilter { + /** 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 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 `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDefinitionFilter { + /** 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 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; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDeploymentFilter { + /** 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 UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** 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 DeletePlatformResourceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceDefinitionFilter { + /** 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 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; - }; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceFilter { + /** 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 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; +/** 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 UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** 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 DeletePlatformResourceDeclaredCapacityInput { - 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** 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 DeletePlatformResourceDefinitionInput { - 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 CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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; +} +/** 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 PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** 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 UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** 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 DeletePlatformResourceEventInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceInstallationInput { - clientMutationId?: string; - platformResourceInstallation: { - commitId?: string; - createdBy?: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: 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 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; +/** 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 UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** 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 DeletePlatformResourceInstallationInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: 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 PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** 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 UpdatePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +/** 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 DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - platformResourceUsageLog: { - cpuMillicores?: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: 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 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; +/** 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 UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** 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 DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - platformResourceUsageSummary: { - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** 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 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; +/** 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 UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +/** 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 DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: 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 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; - }; +/** 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 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; +} +/** 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 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; +/** 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 UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** 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 DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** 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 DeletePlatformResourcesHealthInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: 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 PlatformResourcesRequirementsStatePatch { - 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 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 UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** 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 DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** 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 DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: 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 CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - platformWebhookEndpoint: { - active?: boolean; - createdBy?: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** 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 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; +/** 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 UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** 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 DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: 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 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 `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 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 `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 UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** 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 DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** 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; + /** 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 */ + status?: 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 `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 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 `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 UpdateResourceInput { - 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; - resourcePatch: ResourcePatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeleteResourceInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** 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 DeleteResourceDeclaredCapacityInput { - clientMutationId?: string; - id: 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 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 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[]; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; +} +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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 `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 interface UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** 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 interface DeleteResourceDefinitionInput { - 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 CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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 ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: 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 interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** 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 DeleteResourceEventInput { - 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; +} +/** 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 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 `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 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 `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 interface UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** 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; + /** 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; + /** 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 interface DeleteResourceInstallationInput { - 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 CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: 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 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 `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 UpdateResourceStatusCheckInput { - 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; - resourceStatusCheckPatch: ResourceStatusCheckPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeleteResourceStatusCheckInput { - 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 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 `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 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 `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 UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** 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 interface DeleteResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** 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 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 `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 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 `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 UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** 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 DeleteResourceUsageSummaryInput { - 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 executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -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 `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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; +/** 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 interface UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** 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 interface DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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; + /** 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; + /** 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 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; +/** 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 UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** 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 DeleteResourcesHealthInput { - clientMutationId?: string; +/** 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; +} +/** 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 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; +/** 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 UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** 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 DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: 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; + /** 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 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; - }; +/** 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 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; +/** 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 interface UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** 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 interface DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment */ + 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 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; - }; +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal */ + 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 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; +/** 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 UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** 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 DeleteWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** 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 CreateWebhookEventInput { - clientMutationId?: string; - webhookEvent: { - databaseId: string; - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: 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 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; +/** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** 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; +} +/** 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 DeleteWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; } -// ============ 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; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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 AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: 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 `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; - srcNode?: string; - srcPort?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; - rootHash?: string; - scopeId?: 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 AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** 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 CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: 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 ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: 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; + /** 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 ImportGraphJsonInput { - clientMutationId?: string; - context?: string; +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: string; -} -export interface InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; -} -export interface InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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 InfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: 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 InfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment */ + 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 InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal */ + 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 InfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: 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 InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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 InsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: 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 PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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; +} +/** 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 PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + 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; + /** 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 PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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; +} +/** 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; - path?: string[]; - refname?: string; - sId?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: 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 PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** 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 PlatformInfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** 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 PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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 PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: 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 PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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; +} +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 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 `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 `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 ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: 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 `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 interface ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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; } -export interface ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** 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 ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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 SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: 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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** 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 `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 SetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: 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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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; } -/** 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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; +/** 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 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 `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 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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 `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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +/** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `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; +/** 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[]; } -/** 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; +/** 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; } -/** 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; +/** 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 `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; +/** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 `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; +/** 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 `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 `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; } -/** 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; +/** 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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; } -/** 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[]; +/** 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 `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; +/** 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 `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 `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; +/** 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[][]; } -/** 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; +/** 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[]; } -/** 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; +/** 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[]; } -/** 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; +// ============ Payload/Return Types (for custom operations) ============ +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: 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 AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: 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 AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: 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 AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: 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 AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | 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 CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | 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 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; } -/** 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 DatabaseAddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | 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 DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: 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 type DatabaseGraphInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | 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 DatabaseGraphSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | 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 DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | 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 DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: 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 type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: 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 type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | 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 InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** 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 InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | 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 InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInitEmptyRepoPayload { + clientMutationId?: string | 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 PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: 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; +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | 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 PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformInfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; } -/** 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 PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | 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 PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + clientMutationId?: string | 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) */ +export type PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUpgradePayloadSelect = { + 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; - /** 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; + /** Whether provisioning succeeded */ + success: boolean; } -/** 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 ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: boolean; +}; +export interface ResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: 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 type ResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResourceInstallationsRollbackPayload { + clientMutationId?: string | 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 ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + clientMutationId?: string | null; +} +export type ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | 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 SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: 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 `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 SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | 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 StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +export type DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + 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; +} +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; +} +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; +} +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; +} +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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +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; +} +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; +} +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; +} +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; +} +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; +} +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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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 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 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; } -/** 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 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; +} +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; +} +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 `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 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 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 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; } -/** 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 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; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type DeleteFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionExecutionLog` that was created by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type AddEdgePayloadSelect = { +export type CreateFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface UpdateFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionExecutionLog` that was updated by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +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; +} +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; +} +export type UpdateFunctionGraphCommitPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; }; -export interface AddNodePayload { +export interface DeleteFunctionGraphCommitPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphCommit` that was deleted by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -export type AddNodePayloadSelect = { +export type DeleteFunctionGraphCommitPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateFunctionGraphPayload { clientMutationId?: string | null; result?: string | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateFunctionGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CopyGraphPayload { +export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraph` that was updated by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -export type CopyGraphPayloadSelect = { +export type UpdateFunctionGraphPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeleteFunctionGraphPayload { clientMutationId?: string | null; + /** The `FunctionGraph` that was deleted by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeleteFunctionGraphPayloadSelect = { clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecution` that was created by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type CreateFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInitEmptyRepoPayload { +export interface UpdateFunctionGraphExecutionPayload { clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was updated by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type InfraInitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +export interface DeleteFunctionGraphExecutionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecution` that was deleted by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type InfraInsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInsertNodesAtPathsPayload { +export interface CreateFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraInsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; }; -export interface InfraSetAndCommitPayload { +export interface UpdateFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraSetAndCommitPayloadSelect = { +export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; }; - result?: { - select: InfraCommitSelect; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; }; }; -export interface InfraSetDataAtPathPayload { +export interface DeleteFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraSetDataAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; }; -export interface InfraSetManyAndCommitPayload { +export interface CreateFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InfraSetManyAndCommitPayloadSelect = { +export type CreateFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; }; - result?: { - select: InfraCommitSelect; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; }; }; -export interface InitEmptyRepoPayload { +export interface UpdateFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface DeleteFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; }; -export interface InsertNodesAtPathsPayload { +export interface CreateFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was created by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type InsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +export interface DeleteFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was deleted by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type PlatformInfraInsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInsertNodesAtPathsPayload { +export interface CreateFunctionGraphRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraInsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; }; -export interface PlatformInfraSetAndCommitPayload { +export interface UpdateFunctionGraphRefPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `FunctionGraphRef` that was updated by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraSetAndCommitPayloadSelect = { +export type UpdateFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + functionGraphRef?: { + select: FunctionGraphRefSelect; }; - result?: { - select: PlatformInfraCommitSelect; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; }; }; -export interface PlatformInfraSetDataAtPathPayload { +export interface DeleteFunctionGraphRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphRef` that was deleted by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraSetDataAtPathPayloadSelect = { +export type DeleteFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; }; -export interface PlatformInfraSetManyAndCommitPayload { +export interface CreateFunctionGraphStorePayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `FunctionGraphStore` that was created by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformInfraSetManyAndCommitPayloadSelect = { +export type CreateFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + functionGraphStore?: { + select: FunctionGraphStoreSelect; }; - result?: { - select: PlatformInfraCommitSelect; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface UpdateFunctionGraphStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphStore` that was updated by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type UpdateFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface DeleteFunctionGraphStorePayload { clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type DeleteFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface CreateFunctionInvocationAttemptPayload { clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was created by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type CreateFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface UpdateFunctionInvocationAttemptPayload { clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was updated by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type UpdateFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -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 DeleteFunctionInvocationAttemptPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type DeleteFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface CreateFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was created by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type CreateFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface UpdateFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was updated by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type UpdateFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface DeleteFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was deleted by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type DeleteFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface CreateImagePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SaveGraphPayloadSelect = { +export type CreateImagePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; }; -export interface SetAndCommitPayload { +export interface UpdateImagePayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SetAndCommitPayloadSelect = { +export type UpdateImagePayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + image?: { + select: ImageSelect; }; - result?: { - select: FunctionGraphCommitSelect; + imageEdge?: { + select: ImageEdgeSelect; }; }; -export interface SetDataAtPathPayload { +export interface DeleteImagePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type DeleteImagePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; }; -export interface SetManyAndCommitPayload { +export interface CreateImageGrantPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type SetManyAndCommitPayloadSelect = { +export type CreateImageGrantPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + imageGrant?: { + select: ImageGrantSelect; }; - result?: { - select: FunctionGraphCommitSelect; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; }; }; -export interface StartExecutionPayload { +export interface UpdateImageGrantPayload { clientMutationId?: string | null; - result?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type StartExecutionPayloadSelect = { +export type UpdateImageGrantPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeleteImageGrantPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeleteImageGrantPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; }; -export interface CreateContentPresetPayload { +export interface CreateInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was created by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type CreateContentPresetPayloadSelect = { +export type CreateInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface UpdateContentPresetPayload { +export interface UpdateInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was updated by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type UpdateContentPresetPayloadSelect = { +export type UpdateInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface DeleteContentPresetPayload { +export interface DeleteInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was deleted by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type DeleteContentPresetPayloadSelect = { +export type DeleteInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface CreateDbPresetPayload { +export interface CreateInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreateInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdateInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdateInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeleteInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeleteInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreateInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreateInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdateInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdateInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeleteInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeleteInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreateInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreateInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdateInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdateInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeleteInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeleteInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreateIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdateIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeleteIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeleteIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreateNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdateNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { +export interface DeletePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateNamespacePayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -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 type DeletePlatformInfraRefPayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -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 type DeletePlatformInfraStorePayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -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 type DeletePlatformNamespacePayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; export interface CreatePlatformResourcePayload { @@ -16882,11 +30998,551 @@ export interface DeletePlatformWebhookEventPayload { } export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; + }; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; + }; +}; +export interface CreateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type CreateProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface UpdateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type UpdateProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface DeleteProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type DeleteProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface CreateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type CreateProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface UpdateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type UpdateProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface DeleteProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type DeleteProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface CreateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type CreateProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface UpdateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type UpdateProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface DeleteProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type DeleteProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface CreateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type CreateProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface UpdateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type UpdateProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface DeleteProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type DeleteProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface CreateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type CreateProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface UpdateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type UpdateProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface DeleteProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type DeleteProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface CreateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type CreateProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface UpdateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type UpdateProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface DeleteProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type DeleteProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface CreateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type CreateRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface UpdateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type UpdateRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface DeleteRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type DeleteRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface CreateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type CreateRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface UpdateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type UpdateRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface DeleteRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type DeleteRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface CreateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type CreateRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface UpdateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type UpdateRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface DeleteRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type DeleteRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface CreateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type CreateRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface UpdateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type UpdateRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface DeleteRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type DeleteRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface CreateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type CreateRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface UpdateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type UpdateRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface DeleteRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type DeleteRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface CreateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type CreateRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; + }; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; + }; +}; +export interface UpdateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type UpdateRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; + }; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; + }; +}; +export interface DeleteRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type DeleteRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; export interface CreateResourcePayload { @@ -17294,6 +31950,18 @@ export type DeleteWebhookEventPayloadSelect = { 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 `InfraCommit` edge in the connection. */ export interface InfraCommitEdge { cursor?: string | null; @@ -17330,6 +31998,30 @@ export type FunctionGraphCommitEdgeSelect = { 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 `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -17342,6 +32034,90 @@ export type ContentPresetEdgeSelect = { 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 DatabaseGraphObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphObjectSelect; + }; +}; +/** 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 DatabaseGraphRefEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphRefSelect; + }; +}; +/** 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. */ export interface DbPresetEdge { cursor?: string | null; @@ -17534,6 +32310,30 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; +/** A `Image` edge in the connection. */ +export interface ImageEdge { + cursor?: string | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; +} +export type ImageEdgeSelect = { + cursor?: boolean; + node?: { + 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. */ export interface InfraObjectEdge { cursor?: string | null; @@ -17606,6 +32406,30 @@ 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 `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17702,6 +32526,30 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { + cursor?: string | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; +} +export type PlatformImageEdgeSelect = { + cursor?: boolean; + node?: { + 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. */ export interface PlatformInfraObjectEdge { cursor?: string | null; @@ -17738,6 +32586,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 +32634,150 @@ 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 `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 +32886,150 @@ 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 `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/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..f3400f0040 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -3,7 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; 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 +33,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 +43,8 @@ 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 { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -38,13 +53,29 @@ 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 { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; @@ -59,6 +90,18 @@ 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 { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; 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/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/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/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/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/mutation/index.ts b/sdk/constructive-react/src/compute/orm/mutation/index.ts index 948d1e8903..151e707fad 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -12,6 +12,23 @@ import type { AddNodeInput, AddNodeAndSaveInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, @@ -49,6 +66,23 @@ import type { AddNodePayload, AddNodeAndSavePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, @@ -86,6 +120,23 @@ import type { AddNodePayloadSelect, AddNodeAndSavePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, @@ -135,6 +186,57 @@ export interface AddNodeAndSaveVariables { 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 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 ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -385,6 +487,514 @@ 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' + ), + }), + 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' + ), + }), importDefinitions: ( args: ImportDefinitionsVariables, 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..6142d62389 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -5,7 +5,18 @@ */ import type { + Build, + BuildStep, ContentPreset, + DatabaseFunctionGraph, + DatabaseFunctionGraphExecution, + DatabaseFunctionGraphExecutionNodeState, + DatabaseFunctionGraphExecutionOutput, + DatabaseGraphCommit, + DatabaseGraphGetAllTreeNodesRecord, + DatabaseGraphObject, + DatabaseGraphRef, + DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, @@ -24,6 +35,8 @@ import type { FunctionInvocation, FunctionInvocationAttempt, GetAllTreeNodesRecord, + Image, + ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, @@ -32,6 +45,8 @@ import type { IntegrationProvider, Namespace, NamespaceEvent, + PlatformBuild, + PlatformBuildStep, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, @@ -40,13 +55,29 @@ 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, + PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, @@ -61,6 +92,18 @@ import type { PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, + Proposal, + ProposalComment, + ProposalFileView, + ProposalReaction, + ProposalReview, + ProposalsChunk, + Registry, + RegistryBinding, + RegistryGrant, + Repository, + RepositoryEvent, + RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, @@ -95,6 +138,89 @@ import type { } from './types'; export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +/** Methods to use when ordering `Build`. */ +export type BuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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' + | '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 `ContentPreset`. */ export type ContentPresetOrderBy = | 'ACTIVE_ASC' @@ -122,6 +248,224 @@ export type ContentPresetOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_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' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_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'; +/** 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' + | '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'; +/** 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' + | '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'; +/** 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' @@ -197,6 +541,8 @@ export type FunctionCapabilityBindingOrderBy = export type FunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_ASC' | 'ACCESS_CHANNELS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'CONCURRENCY_ASC' @@ -207,6 +553,8 @@ export type FunctionDefinitionOrderBy = | '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' @@ -284,6 +632,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`. */ @@ -311,10 +661,14 @@ export type FunctionDeploymentEventOrderBy = export type FunctionDeploymentOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -357,7 +711,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' @@ -642,6 +998,8 @@ 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' @@ -675,27 +1033,99 @@ export type FunctionInvocationOrderBy = | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC'; -/** Methods to use when ordering `InfraCommit`. */ -export type InfraCommitOrderBy = - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_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' - | 'DATE_ASC' - | 'DATE_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' + | 'IMAGE_ID_ASC' + | 'IMAGE_ID_DESC' | 'NATURAL' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_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' + | '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 `InfraObject`. */ @@ -826,6 +1256,84 @@ export type NamespaceOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformBuild`. */ +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_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' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 `PlatformFunctionApiBinding`. */ export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' @@ -874,6 +1382,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'CONCURRENCY_ASC' @@ -884,6 +1394,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' @@ -961,6 +1473,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`. */ @@ -986,10 +1500,14 @@ export type PlatformFunctionDeploymentEventOrderBy = export type PlatformFunctionDeploymentOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -1030,7 +1548,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,6 +1613,8 @@ 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' @@ -1126,6 +1648,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 +1786,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' @@ -1244,474 +1884,520 @@ 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' - | 'STATUS_ASC' + | '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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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 `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' - | 'MAX_CPU_MILLICORES_ASC' - | 'MAX_CPU_MILLICORES_DESC' - | 'MAX_MEMORY_BYTES_ASC' - | 'MAX_MEMORY_BYTES_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' - | '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' + | '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' @@ -1731,16 +2417,18 @@ export type ResourceDeclaredCapacityOrderBy = | 'SOURCE_ID_DESC' | 'STORAGE_SIZE_BYTES_ASC' | 'STORAGE_SIZE_BYTES_DESC'; -/** Methods to use when ordering `ResourceDefinition`. */ -export type ResourceDefinitionOrderBy = +/** Methods to use when ordering `PlatformResourceDefinition`. */ +export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' | 'DEFAULT_SPEC_ASC' | 'DEFAULT_SPEC_DESC' | 'DESCRIPTION_ASC' @@ -1773,15 +2461,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 +2483,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,11 +2515,15 @@ 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 `PlatformResource`. */ +export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -1840,8 +2532,8 @@ 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' @@ -1894,13 +2586,13 @@ export type ResourceOrderBy = | '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 +2608,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 +2631,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 +2654,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,10 +2695,12 @@ 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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -2019,8 +2709,8 @@ 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' @@ -2073,9 +2763,11 @@ export type ResourcesHealthOrderBy = | '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 +2783,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 +2808,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 +2840,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,2250 +2872,7016 @@ 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; +/** 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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 `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'; +/** Methods to use when ordering `ResourceDefinition`. */ +export type ResourceDefinitionOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' + | '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 `Resource`. */ +export type ResourceOrderBy = + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' + | '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' + | '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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' + | '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' + | '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; +} +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** 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; + /** 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 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 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 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 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 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; - scopeId?: string; - srcNode?: string; - srcPort?: 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 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 `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; +} +/** 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; + /** 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 */ + status?: 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; + /** 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 */ + status?: 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 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; + /** Invocation creation timestamp (partition key) */ + createdAt: string; + /** Unique invocation identifier */ + id: string; +} +export interface DeleteImageGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteImageInput { + clientMutationId?: string; + 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 AddNodeAndSaveInput { +export interface DeleteNamespaceInput { clientMutationId?: string; - graphId?: string; - message?: string; - meta?: unknown; - nodeName?: string; - nodeType?: string; - props?: unknown; + id: string; } -export interface AddNodeInput { +export interface DeletePlatformBuildInput { clientMutationId?: string; - context?: string; - graphName?: string; - meta?: unknown; - nodeName?: string; - nodeType?: string; - props?: unknown; - rootHash?: string; - scopeId?: string; + id: 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[]; +export interface DeletePlatformBuildStepInput { + clientMutationId?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id: string; + /** When the result was recorded (partition key) */ + recordedAt: 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 DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; } -/** 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; +export interface DeletePlatformFunctionCapabilityBindingInput { + 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: 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 DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: 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 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 CopyGraphInput { +export interface DeletePlatformRegistryBindingInput { clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: string; + id: string; } -export interface CreateContentPresetInput { +export interface DeletePlatformRegistryGrantInput { clientMutationId?: string; - /** The `ContentPreset` to be created by this mutation. */ - contentPreset: ContentPresetInput; + id: string; } -export interface CreateDbPresetInput { +export interface DeletePlatformRegistryInput { clientMutationId?: string; - /** The `DbPreset` to be created by this mutation. */ - dbPreset: DbPresetInput; + id: string; } -export interface CreateFunctionApiBindingInput { +export interface DeletePlatformRepositoryEventInput { clientMutationId?: string; - /** The `FunctionApiBinding` to be created by this mutation. */ - functionApiBinding: FunctionApiBindingInput; + id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface DeletePlatformRepositoryInput { clientMutationId?: string; - /** The `FunctionCapabilityBinding` to be created by this mutation. */ - functionCapabilityBinding: FunctionCapabilityBindingInput; + id: string; } -export interface CreateFunctionDefinitionInput { +export interface DeletePlatformRepositoryWorkflowInput { clientMutationId?: string; - /** The `FunctionDefinition` to be created by this mutation. */ - functionDefinition: FunctionDefinitionInput; + id: string; } -export interface CreateFunctionDeploymentEventInput { +export interface DeletePlatformResourceDefinitionInput { clientMutationId?: string; - /** The `FunctionDeploymentEvent` to be created by this mutation. */ - functionDeploymentEvent: FunctionDeploymentEventInput; + id: string; } -export interface CreateFunctionDeploymentInput { +export interface DeletePlatformResourceEventInput { clientMutationId?: string; - /** The `FunctionDeployment` to be created by this mutation. */ - functionDeployment: FunctionDeploymentInput; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; } -export interface CreateFunctionExecutionLogInput { +export interface DeletePlatformResourceInput { clientMutationId?: string; - /** The `FunctionExecutionLog` to be created by this mutation. */ - functionExecutionLog: FunctionExecutionLogInput; + id: string; } -export interface CreateFunctionGraphCommitInput { +export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; - /** The `FunctionGraphCommit` to be created by this mutation. */ - functionGraphCommit: FunctionGraphCommitInput; + id: string; } -export interface CreateFunctionGraphExecutionInput { +export interface DeletePlatformResourceStatusCheckInput { clientMutationId?: string; - /** The `FunctionGraphExecution` to be created by this mutation. */ - functionGraphExecution: FunctionGraphExecutionInput; + /** Unique status check identifier */ + id: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface DeletePlatformResourceUsageLogInput { clientMutationId?: string; - /** The `FunctionGraphExecutionNodeState` to be created by this mutation. */ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput; + /** Unique sample identifier */ + id: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; - /** The `FunctionGraphExecutionOutput` to be created by this mutation. */ - functionGraphExecutionOutput: FunctionGraphExecutionOutputInput; + /** Day this summary covers (partition key) */ + date: string; + /** Unique usage summary identifier */ + id: string; } -export interface CreateFunctionGraphInput { +export interface DeletePlatformWebhookEndpointInput { clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; - description?: string; - name?: string; - scopeId?: string; + id: string; } -export interface CreateFunctionGraphObjectInput { +export interface DeletePlatformWebhookEventInput { clientMutationId?: string; - /** The `FunctionGraphObject` to be created by this mutation. */ - functionGraphObject: FunctionGraphObjectInput; + id: string; } -export interface CreateFunctionGraphRefInput { +export interface DeleteProposalCommentInput { clientMutationId?: string; - /** The `FunctionGraphRef` to be created by this mutation. */ - functionGraphRef: FunctionGraphRefInput; + id: string; } -export interface CreateFunctionGraphStoreInput { +export interface DeleteProposalFileViewInput { clientMutationId?: string; - /** The `FunctionGraphStore` to be created by this mutation. */ - functionGraphStore: FunctionGraphStoreInput; + id: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface DeleteProposalInput { clientMutationId?: string; - /** The `FunctionInvocationAttempt` to be created by this mutation. */ - functionInvocationAttempt: FunctionInvocationAttemptInput; + id: string; } -export interface CreateFunctionInvocationInput { +export interface DeleteProposalReactionInput { clientMutationId?: string; - /** The `FunctionInvocation` to be created by this mutation. */ - functionInvocation: FunctionInvocationInput; + id: string; } -export interface CreateInfraCommitInput { +export interface DeleteProposalReviewInput { clientMutationId?: string; - /** The `InfraCommit` to be created by this mutation. */ - infraCommit: InfraCommitInput; + id: string; } -export interface CreateInfraObjectInput { +export interface DeleteProposalsChunkInput { clientMutationId?: string; - /** The `InfraObject` to be created by this mutation. */ - infraObject: InfraObjectInput; + id: string; } -export interface CreateInfraRefInput { +export interface DeleteRegistryBindingInput { clientMutationId?: string; - /** The `InfraRef` to be created by this mutation. */ - infraRef: InfraRefInput; + id: string; } -export interface CreateInfraStoreInput { +export interface DeleteRegistryGrantInput { clientMutationId?: string; - /** The `InfraStore` to be created by this mutation. */ - infraStore: InfraStoreInput; + id: string; } -export interface CreateIntegrationProviderInput { +export interface DeleteRegistryInput { clientMutationId?: string; - /** The `IntegrationProvider` to be created by this mutation. */ - integrationProvider: IntegrationProviderInput; + id: string; } -export interface CreateNamespaceEventInput { +export interface DeleteRepositoryEventInput { clientMutationId?: string; - /** The `NamespaceEvent` to be created by this mutation. */ - namespaceEvent: NamespaceEventInput; + id: string; } -export interface CreateNamespaceInput { +export interface DeleteRepositoryInput { clientMutationId?: string; - /** The `Namespace` to be created by this mutation. */ - namespace: NamespaceInput; + id: string; } -export interface CreatePlatformFunctionApiBindingInput { +export interface DeleteRepositoryWorkflowInput { clientMutationId?: string; - /** The `PlatformFunctionApiBinding` to be created by this mutation. */ - platformFunctionApiBinding: PlatformFunctionApiBindingInput; + id: string; } -export interface CreatePlatformFunctionCapabilityBindingInput { +export interface DeleteResourceDefinitionInput { clientMutationId?: string; - /** The `PlatformFunctionCapabilityBinding` to be created by this mutation. */ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBindingInput; + id: string; } -export interface CreatePlatformFunctionDefinitionInput { +export interface DeleteResourceEventInput { clientMutationId?: string; - /** The `PlatformFunctionDefinition` to be created by this mutation. */ - platformFunctionDefinition: PlatformFunctionDefinitionInput; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; } -export interface CreatePlatformFunctionDeploymentEventInput { +export interface DeleteResourceInput { clientMutationId?: string; - /** The `PlatformFunctionDeploymentEvent` to be created by this mutation. */ - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput; + id: string; } -export interface CreatePlatformFunctionDeploymentInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; - /** The `PlatformFunctionDeployment` to be created by this mutation. */ - platformFunctionDeployment: PlatformFunctionDeploymentInput; + id: string; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; +} +export interface DeleteResourceUsageLogInput { + clientMutationId?: string; + /** Unique sample identifier */ + id: string; + /** Sample timestamp (partition key) — end of the measured interval */ + sampledAt: string; +} +export interface DeleteResourceUsageSummaryInput { + clientMutationId?: string; + /** Day this summary covers (partition key) */ + date: string; + /** Unique usage summary identifier */ + id: string; +} +export interface DeleteWebhookEndpointInput { + clientMutationId?: string; + id: string; +} +export interface DeleteWebhookEventInput { + clientMutationId?: string; + 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; } -export interface CreatePlatformFunctionExecutionLogInput { - clientMutationId?: string; - /** The `PlatformFunctionExecutionLog` to be created by this mutation. */ - platformFunctionExecutionLog: PlatformFunctionExecutionLogInput; +/** 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; } -export interface CreatePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - /** The `PlatformFunctionInvocationAttempt` to be created by this mutation. */ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptInput; +/** 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; } -export interface CreatePlatformFunctionInvocationInput { - clientMutationId?: string; - /** The `PlatformFunctionInvocation` to be created by this mutation. */ - platformFunctionInvocation: PlatformFunctionInvocationInput; +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 CreatePlatformInfraCommitInput { - clientMutationId?: string; - /** The `PlatformInfraCommit` to be created by this mutation. */ - platformInfraCommit: PlatformInfraCommitInput; +/** 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[]; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + /** 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 CreatePlatformInfraObjectInput { - clientMutationId?: string; - /** The `PlatformInfraObject` to be created by this mutation. */ - platformInfraObject: PlatformInfraObjectInput; +/** 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[]; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + /** 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 CreatePlatformInfraRefInput { - clientMutationId?: string; - /** The `PlatformInfraRef` to be created by this mutation. */ - platformInfraRef: PlatformInfraRefInput; +/** 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 CreatePlatformInfraStoreInput { - clientMutationId?: string; - /** The `PlatformInfraStore` to be created by this mutation. */ - platformInfraStore: PlatformInfraStoreInput; +/** 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 CreatePlatformNamespaceEventInput { - clientMutationId?: string; - /** The `PlatformNamespaceEvent` to be created by this mutation. */ - platformNamespaceEvent: PlatformNamespaceEventInput; +/** 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 CreatePlatformNamespaceInput { - clientMutationId?: string; - /** The `PlatformNamespace` to be created by this mutation. */ - platformNamespace: PlatformNamespaceInput; +/** 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 CreatePlatformResourceDefinitionInput { - clientMutationId?: string; - /** The `PlatformResourceDefinition` to be created by this mutation. */ - platformResourceDefinition: PlatformResourceDefinitionInput; +/** 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?: unknown; } -export interface CreatePlatformResourceEventInput { - clientMutationId?: string; - /** The `PlatformResourceEvent` to be created by this mutation. */ - platformResourceEvent: PlatformResourceEventInput; +/** 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) */ + 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 CreatePlatformResourceInput { - clientMutationId?: string; - /** The `PlatformResource` to be created by this mutation. */ - platformResource: PlatformResourceInput; +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 CreatePlatformResourceInstallationInput { - clientMutationId?: string; - /** The `PlatformResourceInstallation` to be created by this mutation. */ - platformResourceInstallation: PlatformResourceInstallationInput; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - /** The `PlatformResourceStatusCheck` to be created by this mutation. */ - platformResourceStatusCheck: PlatformResourceStatusCheckInput; +/** 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; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - /** The `PlatformResourceUsageLog` to be created by this mutation. */ - platformResourceUsageLog: PlatformResourceUsageLogInput; +/** 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 CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - /** The `PlatformResourceUsageSummary` to be created by this mutation. */ - platformResourceUsageSummary: PlatformResourceUsageSummaryInput; +/** 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?: unknown; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; } -export interface CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - /** The `PlatformWebhookEndpoint` to be created by this mutation. */ - platformWebhookEndpoint: PlatformWebhookEndpointInput; +/** 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) */ + 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 CreatePlatformWebhookEventInput { - clientMutationId?: string; - /** The `PlatformWebhookEvent` to be created by this mutation. */ - platformWebhookEvent: PlatformWebhookEventInput; +/** 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 CreateResourceDefinitionInput { - clientMutationId?: string; - /** The `ResourceDefinition` to be created by this mutation. */ - resourceDefinition: ResourceDefinitionInput; +/** 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 CreateResourceEventInput { - clientMutationId?: string; - /** The `ResourceEvent` to be created by this mutation. */ - resourceEvent: ResourceEventInput; +/** 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; +} +/** 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 CreateResourceInput { - clientMutationId?: string; - /** The `Resource` to be created by this mutation. */ - resource: ResourceInput; +/** 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; } -export interface CreateResourceInstallationInput { - clientMutationId?: string; - /** The `ResourceInstallation` to be created by this mutation. */ - resourceInstallation: ResourceInstallationInput; +/** 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?: 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 `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; } -export interface CreateResourceStatusCheckInput { - clientMutationId?: string; - /** The `ResourceStatusCheck` to be created by this mutation. */ - resourceStatusCheck: ResourceStatusCheckInput; +/** 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; + /** 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 interface CreateResourceUsageLogInput { - clientMutationId?: string; - /** The `ResourceUsageLog` to be created by this mutation. */ - resourceUsageLog: ResourceUsageLogInput; +/** 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; + /** 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 interface CreateResourceUsageSummaryInput { - clientMutationId?: string; - /** The `ResourceUsageSummary` to be created by this mutation. */ - resourceUsageSummary: ResourceUsageSummaryInput; +/** 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 CreateWebhookEndpointInput { - clientMutationId?: string; - /** The `WebhookEndpoint` to be created by this mutation. */ - webhookEndpoint: WebhookEndpointInput; +/** 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 CreateWebhookEventInput { - clientMutationId?: string; - /** The `WebhookEvent` to be created by this mutation. */ - webhookEvent: WebhookEventInput; +/** Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. */ +export interface FunctionGraphExecutionOutputPatch { + /** 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; } -/** 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; +/** 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; + /** 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 `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `definition` field. */ - definition?: JSONFilter; + /** 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 `label` field. */ - label?: StringFilter; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: FunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + 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; } -/** 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 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; -} -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 */ +/** 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; +} +/** 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 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; +/** 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; + /** 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 DeleteFunctionGraphInput { - clientMutationId?: 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; -} -export interface DeleteFunctionGraphObjectInput { - clientMutationId?: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; + 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; + 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; } -export interface DeleteFunctionGraphRefInput { - clientMutationId?: string; +/** 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; + 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 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; +/** 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; -} -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; -} -export interface DeletePlatformFunctionInvocationAttemptInput { - clientMutationId?: string; - /** When the attempt result was recorded (partition key) */ - createdAt: string; - /** Unique attempt 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; } -export interface DeletePlatformFunctionInvocationInput { - clientMutationId?: string; - /** Invocation creation timestamp (partition key) */ - createdAt: string; - /** Unique invocation identifier */ - id: 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; } -export interface DeletePlatformInfraCommitInput { - clientMutationId?: string; - /** Unique commit identifier */ - id: 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 DeletePlatformInfraObjectInput { - clientMutationId?: string; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: 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; + /** Human-readable store name */ + name?: string; /** Opaque store partition key for the global tier */ - scopeId: string; + scopeId?: string; } -export interface DeletePlatformInfraRefInput { - clientMutationId?: string; - /** Unique ref identifier */ - id: 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; } -export interface DeletePlatformInfraStoreInput { - clientMutationId?: string; - /** Unique store identifier */ - 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 DeletePlatformNamespaceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: 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 DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** 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; } -export interface DeletePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; +/** 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?: 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 DeletePlatformResourceEventInput { - clientMutationId?: string; - /** Event timestamp (partition key) */ - createdAt: string; - /** Unique event identifier */ - id: 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) */ + 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 DeletePlatformResourceInput { - 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 `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; +} +/** 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; + /** 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; + /** 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?: 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; } -export interface DeletePlatformResourceInstallationInput { - 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 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; + /** 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; + /** 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?: 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; } -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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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 `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyBuildFilter { + /** 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 DeleteResourceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDefinitionFilter { + /** 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 DeleteResourceInstallationInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDeploymentFilter { + /** 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 DeleteResourceStatusCheckInput { - clientMutationId?: string; - /** Unique status check 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 DeleteResourceUsageLogInput { - clientMutationId?: string; - /** Unique sample identifier */ - id: string; - /** Sample timestamp (partition key) — end of the measured interval */ - sampledAt: string; +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceDefinitionFilter { + /** 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 DeleteResourceUsageSummaryInput { - clientMutationId?: string; - /** Day this summary covers (partition key) */ - date: string; - /** Unique usage summary identifier */ - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceFilter { + /** 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 DeleteWebhookEndpointInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface DeleteWebhookEventInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: unknown; + name?: string; + scopeId?: 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 `InfraCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraCommitFilter { /** 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?: 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?: FunctionApiBindingFilter; + not?: InfraCommitFilter; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + 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 `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; +/** 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; - updatedAt?: 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 `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; +/** 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; - updatedAt?: 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; } -/** 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 InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; } -/** A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionCapabilityBindingFilter { +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; +} +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} +/** A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraObjectFilter { /** Checks for all expressions in this list. */ - and?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + 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 `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 `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; /** Negates the expression. */ - not?: FunctionCapabilityBindingFilter; + not?: InfraObjectFilter; /** Checks for any expressions in this list. */ - or?: FunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: InfraObjectFilter[]; } -/** An input for mutations affecting `FunctionCapabilityBinding` */ -export interface FunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Timestamp of object creation */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ + /** Payload data for this object node */ + data?: unknown; + /** 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; - 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; + /** 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 `FunctionCapabilityBinding`. Fields that are set will be updated. */ -export interface FunctionCapabilityBindingPatch { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; +/** Represents an update to a `InfraObject`. Fields that are set will be updated. */ +export interface InfraObjectPatch { + /** Timestamp of object creation */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ + /** Payload data for this object node */ + data?: unknown; + /** 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; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ 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; + /** 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { - /** Filter by the object’s `accessChannels` field. */ - accessChannels?: StringListFilter; +/** 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?: 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; + 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 `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; + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: FunctionDefinitionFilter; + not?: InfraRefFilter; /** 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; + or?: InfraRefFilter[]; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; } -/** 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) */ +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** Commit this ref points to */ + commitId?: string; + /** Database scope for multi-tenant 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; + /** Unique ref identifier */ 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) */ + /** Ref name (e.g. HEAD, main) */ 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; - /** 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; + /** Store this ref belongs to */ + storeId: string; } -/** 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) */ - category?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - 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; - /** 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; + /** Unique ref identifier */ 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) */ + /** Ref name (e.g. HEAD, main) */ 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; - /** 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; -} -/** 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; + /** Store this ref belongs to */ + storeId?: 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 InfraSetAndCommitInput { + 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 `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 InfraSetDataAtPathInput { + clientMutationId?: string; + data?: unknown; + path?: string[]; + root?: string; + sId?: string; } -/** 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; +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?: FunctionDeploymentEventFilter[]; + 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 `deploymentId` field. */ - deploymentId?: 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?: FunctionDeploymentEventFilter; + not?: InfraStoreFilter; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; + or?: InfraStoreFilter[]; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Event timestamp (partition key) */ +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Timestamp of store creation */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ + /** Database scope for multi-tenant isolation */ databaseId: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: unknown; + /** Human-readable store name */ + name: 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) */ - actorId?: string; - /** Event timestamp (partition key) */ +/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ +export interface InfraStorePatch { + /** Timestamp of store creation */ createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ + /** Database scope for multi-tenant isolation */ databaseId?: string; - /** Deployment this event belongs to */ - deploymentId?: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType?: string; - /** Unique event identifier */ + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: unknown; + /** Human-readable store name */ + name?: string; } -/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { +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?: FunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + 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 `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 `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 `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 `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: FunctionDeploymentFilter; + not?: IntegrationProviderFilter; /** 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; + 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 `FunctionDeployment` */ -export interface FunctionDeploymentInput { - /** 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 `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; - /** 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; + /** 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; - /** 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; + /** 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; } -/** 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; +/** 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; 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; + /** 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; - /** 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; + /** 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. */ + slug?: string; 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 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 `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?: FunctionExecutionLogFilter[]; + 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 `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 `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: FunctionExecutionLogFilter; + not?: NamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + or?: NamespaceEventFilter[]; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** User who triggered this event (NULL for system/automated) */ actorId?: string; - /** Log entry timestamp (partition key) */ + /** Event timestamp (partition key) */ createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Unique log entry identifier */ + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event 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) */ + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ metadata?: unknown; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; + /** Namespace this event belongs to */ + namespaceId: 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 `NamespaceEvent`. Fields that are set will be updated. */ +export interface NamespaceEventPatch { + /** User who triggered this event (NULL for system/automated) */ actorId?: string; - /** Log entry timestamp (partition key) */ + /** Event timestamp (partition key) */ createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Unique log entry identifier */ + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string; + /** Unique event 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 */ + /** Human-readable description of the event */ message?: string; - /** Structured context (labels, trace data, extra fields) */ + /** Structured context (old/new values, labels diff, etc.) */ 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; + /** Namespace this event belongs to */ + namespaceId?: 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 `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { /** 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?: 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 `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 `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?: FunctionGraphExecutionFilter; + not?: NamespaceFilter; /** 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; + 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 `tickCount` field. */ - tickCount?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; + /** 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 `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 */ +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Optional human-readable description of this namespace */ + description?: 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 */ + /** 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) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ status?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; + updatedAt?: string; } -/** 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?: 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; +/** 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; + 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?: unknown; + /** 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; +} +/** 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?: PlatformBuildFilter[]; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** Filter by the object’s `commitSha` field. */ + commitSha?: StringFilter; /** 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 `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 `nodeName` field. */ - nodeName?: StringFilter; - /** Filter by the object’s `nodePath` field. */ - nodePath?: StringListFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; + not?: PlatformBuildFilter; /** 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; + 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; -} -/** 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) */ + /** 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 */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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 */ + 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; - /** 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 */ + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** 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 `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 `PlatformBuild`. Fields that are set will be updated. */ +export interface PlatformBuildPatch { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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 */ + 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; - /** 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 */ + /** 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; + /** 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; - /** Node lifecycle: pending → queued → running → completed/failed */ + /** 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 `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphExecutionOutputFilter { +/** 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?: FunctionGraphExecutionOutputFilter[]; + 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` */ +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?: 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 `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 `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; + /** 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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; + 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 `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** 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 executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedAt?: string; + updatedByPrincipal?: 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; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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; + /** 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[]; + /** 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; + updatedAt?: string; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -/** Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. */ -export interface FunctionGraphExecutionOutputPatch { - /** 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; +/** 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; } -/** 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; - /** 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 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 `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 `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 `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphObjectFilter { +/** 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; + or?: PlatformFunctionDeploymentEventFilter[]; } -/** Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. */ -export interface FunctionGraphObjectPatch { - /** Timestamp of object creation */ +/** 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; - /** 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 */ - 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; +/** 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) */ + 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?: 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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; -} -/** 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; + or?: PlatformFunctionExecutionLogFilter[]; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; } -/** Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. */ -export interface FunctionGraphStorePatch { - /** Timestamp of store creation */ +/** 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; - /** 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; + /** 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 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; +/** 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; } -/** 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 +9895,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 +9905,14 @@ export interface FunctionInvocationAttemptFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -/** An input for mutations affecting `FunctionInvocationAttempt` */ -export interface FunctionInvocationAttemptInput { +/** 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; - /** 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 +9932,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 { +/** 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) */ 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 +9959,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,6 +9977,8 @@ 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. */ @@ -4540,9 +9996,9 @@ 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 `parentInvocationId` field. */ parentInvocationId?: UUIDFilter; /** Filter by the object’s `payload` field. */ @@ -4558,8 +10014,8 @@ export interface FunctionInvocationFilter { /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { +/** 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) */ @@ -4570,8 +10026,10 @@ export interface FunctionInvocationInput { 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 */ @@ -4601,8 +10059,8 @@ 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 { +/** Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. */ +export interface PlatformFunctionInvocationPatch { /** Who triggered the invocation (NULL for system/cron) */ actorId?: string; /** API binding this invocation arrived through (NULL for cron/graph/system/worker paths) */ @@ -4613,7 +10071,9 @@ export interface FunctionInvocationPatch { 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; @@ -4644,33 +10104,278 @@ 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 { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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 ImportGraphJsonInput { - clientMutationId?: string; - context?: string; - createdBy?: string; - definitionsCommitId?: string; +/** 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 `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformBuildFilter { + /** 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 `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDefinitionFilter { + /** 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 `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDeploymentFilter { + /** 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 `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 many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceDefinitionFilter { + /** 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.’ */ +export interface PlatformImageToManyPlatformResourceFilter { + /** 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 `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 +10383,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 +10409,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 +10430,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 +10451,7 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } -export interface InfraInsertNodesAtPathsInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; datas?: unknown[]; kidsList?: unknown; @@ -4753,16 +10460,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 +10475,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 +10567,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 +10582,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,1582 +10595,2059 @@ 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[]; -} -/** 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; + or?: PlatformInfraStoreFilter[]; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; } -/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ -export interface InfraStorePatch { +/** 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; -} -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; -} -/** 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; - /** 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; -} -/** 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; - 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; - /** 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. */ - slug?: string; - 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 `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?: 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` */ -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 */ + /** Unique store identifier */ id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: unknown; - /** Namespace this event belongs to */ - namespaceId: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: 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) */ - actorId?: string; - /** Event timestamp (partition key) */ +/** Represents an update to a `PlatformInfraStore`. Fields that are set will be updated. */ +export interface PlatformInfraStorePatch { + /** Timestamp of store creation */ 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 */ + /** Current root object hash of this store */ + hash?: string; + /** Unique store identifier */ id?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: unknown; - /** Namespace this event belongs to */ - namespaceId?: string; + /** Human-readable store name */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: 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 `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?: NamespaceFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + 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 `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 `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; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: NamespaceFilter; + not?: PlatformK8sResourceKindFilter; /** 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; + 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; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; } -/** An input for mutations affecting `Namespace` */ -export interface NamespaceInput { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; +/** 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; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Optional human-readable description of this namespace */ + /** 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; + /** Unique kind policy identifier */ 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) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: 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; } -/** 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; +/** 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; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Optional human-readable description of this namespace */ + /** 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; + /** Unique kind policy identifier */ 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) */ - name?: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName?: string; - /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ - status?: 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; } -/** 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 `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 `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 `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?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + 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 `functionDefinition` relation. */ - functionDefinition?: PlatformFunctionDefinitionFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: 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 `label` field. */ + label?: StringFilter; /** Negates the expression. */ - not?: PlatformFunctionApiBindingFilter; + not?: PlatformK8sSpecRuleFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionApiBindingFilter[]; - /** Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. */ - platformFunctionInvocationsByApiBindingId?: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter; - /** `platformFunctionInvocationsByApiBindingId` exist. */ - platformFunctionInvocationsByApiBindingIdExist?: boolean; + 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 `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; +/** 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; - /** Function definition this binding belongs to */ - functionDefinitionId: 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 `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 `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; - /** Function definition this binding belongs to */ - functionDefinitionId?: 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 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 { +/** 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?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: PlatformNamespaceEventFilter[]; /** 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 `eventType` field. */ + eventType?: StringFilter; /** 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 `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?: PlatformFunctionCapabilityBindingFilter; + not?: PlatformNamespaceEventFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionCapabilityBindingFilter[]; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + or?: PlatformNamespaceEventFilter[]; } -/** An input for mutations affecting `PlatformFunctionCapabilityBinding` */ -export interface PlatformFunctionCapabilityBindingInput { - /** Bucket this capability targets (exactly one typed target is set) */ - bucketId?: string; +/** 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; - /** 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; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** Unique event 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) */ + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ metadata?: unknown; - updatedAt?: string; + /** Namespace this event belongs to */ + namespaceId: 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 `PlatformNamespaceEvent`. Fields that are set will be updated. */ +export interface PlatformNamespaceEventPatch { + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Event timestamp (partition key) */ 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; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string; + /** Unique event 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) */ + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ metadata?: unknown; - updatedAt?: string; + /** Namespace this event belongs to */ + namespaceId?: 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 `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { /** 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?: 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 `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 `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?: PlatformFunctionDefinitionFilter; + not?: PlatformNamespaceFilter; /** 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?: PlatformNamespaceFilter[]; + /** 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 `volatile` field. */ - volatile?: BooleanFilter; } -/** 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; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; createdAt?: string; - /** Human-readable description of what this function does */ + /** Optional human-readable description of this namespace */ 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) */ + /** 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) */ 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; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: 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; +/** 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; createdAt?: string; - /** Human-readable description of what this function does */ + /** Optional human-readable description of this namespace */ 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) */ + /** 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) */ 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; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; updatedAt?: string; - /** 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.’ */ -export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { +/** 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?: PlatformFunctionApiBindingFilter; + every?: PlatformFunctionDeploymentFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionApiBindingFilter; + none?: PlatformFunctionDeploymentFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionApiBindingFilter; + some?: PlatformFunctionDeploymentFilter; } -/** 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 `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformRegistryBindingFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformFunctionCapabilityBindingFilter; + every?: PlatformRegistryBindingFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformFunctionCapabilityBindingFilter; + none?: PlatformRegistryBindingFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformFunctionCapabilityBindingFilter; + some?: PlatformRegistryBindingFilter; +} +/** 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; +} +/** 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; +} +/** 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?: 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` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment */ + 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; +} +/** Represents an update to a `PlatformProposalComment`. Fields that are set will be updated. */ +export interface PlatformProposalCommentPatch { + /** Actor who wrote the comment */ + 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; } -/** 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 `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformProposalCommentToManyPlatformProposalReactionFilter { /** Filters to entities where every related entity matches. */ - every?: PlatformWebhookEndpointFilter; + every?: PlatformProposalReactionFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; + none?: PlatformProposalReactionFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; + some?: PlatformProposalReactionFilter; } -/** 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 `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?: PlatformFunctionDeploymentEventFilter[]; + 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 `deploymentId` field. */ - deploymentId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; + /** 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 `message` field. */ - message?: 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?: PlatformFunctionDeploymentEventFilter; + not?: PlatformProposalFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionDeploymentEventFilter[]; -} -/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ -export interface PlatformFunctionDeploymentEventInput { - /** User who triggered this event (NULL for system/automated) */ + 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` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal */ actorId?: string; - /** Event timestamp (partition key) */ + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; createdAt?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** Unique event identifier */ + 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; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ + /** 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 `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 `PlatformProposal`. Fields that are set will be updated. */ +export interface PlatformProposalPatch { + /** Actor who opened the proposal */ actorId?: string; - /** Event timestamp (partition key) */ + /** Description of the proposed change */ + body?: string; + /** Why this was closed: completed, not_planned, duplicate, superseded */ + closedReason?: string; createdAt?: string; - /** Deployment this event belongs to */ - deploymentId?: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType?: string; - /** Unique event identifier */ + 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; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ + /** 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 `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionDeploymentFilter { +/** 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?: PlatformFunctionDeploymentFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; + 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 `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `handlerName` field. */ - handlerName?: 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 `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; + not?: PlatformProposalReactionFilter; /** 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; + 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` */ +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 `PlatformFunctionDeployment` */ -export interface PlatformFunctionDeploymentInput { - /** 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 `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; - /** 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; + createdByPrincipal?: string; + /** Reaction shortcode (+1, eyes, rocket) */ + emoji?: 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; + /** Proposal the reaction belongs to */ + proposalId?: string; updatedAt?: 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; +/** 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; - /** 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; + 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) */ - 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; + /** 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 `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; + 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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 `PlatformFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformFunctionExecutionLogFilter { +/** 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?: PlatformFunctionExecutionLogFilter[]; + 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 `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; + not?: PlatformProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformFunctionExecutionLogFilter[]; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + 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 `PlatformFunctionExecutionLog` */ -export interface PlatformFunctionExecutionLogInput { - /** User who triggered the execution (NULL for system/cron) */ +/** An input for mutations affecting `PlatformProposalsChunk` */ +export interface PlatformProposalsChunkInput { + /** Policy-required field derived from source table (used by AuthzComposite) */ actorId?: string; - /** Log entry timestamp (partition key) */ + body: string; + chunkIndex?: number; createdAt?: string; - /** Unique log entry 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; - /** 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; + platformProposalsId: string; + updatedAt?: 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) */ +/** 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; - /** Log entry timestamp (partition key) */ + body?: string; + chunkIndex?: number; createdAt?: string; - /** Unique log entry 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; - /** 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; + platformProposalsId?: string; + updatedAt?: string; } -/** 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 `PlatformRegistryBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformFunctionInvocationAttemptFilter[]; - /** Filter by the object’s `attempt` field. */ - attempt?: IntFilter; + and?: PlatformRegistryBindingFilter[]; /** 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 `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 `invocationCreatedAt` field. */ - invocationCreatedAt?: DatetimeFilter; - /** Filter by the object’s `invocationId` field. */ - invocationId?: 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?: PlatformFunctionInvocationAttemptFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** 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?: 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 `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 `PlatformRegistryBinding` */ +export interface PlatformRegistryBindingInput { 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 */ + createdBy?: string; + createdByPrincipal?: 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; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** 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; } -/** 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 `PlatformRegistryBinding`. Fields that are set will be updated. */ +export interface PlatformRegistryBindingPatch { 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 */ + createdBy?: string; + createdByPrincipal?: 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; + /** Reconciler detail (last error, projection timestamps) */ + metadata?: unknown; + /** 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; } -/** 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 `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; +} +/** 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; +} +/** 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; +} +/** 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; + 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; +} +/** 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 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; + /** 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 `PlatformFunctionInvocation` */ -export interface PlatformFunctionInvocationInput { - /** Who triggered the invocation (NULL for system/cron) */ +/** An input for mutations affecting `PlatformRepositoryEvent` */ +export interface PlatformRepositoryEventInput { + /** 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; } -/** 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; -} -/** 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?: 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` */ -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; -} -/** 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 */ - 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; + /** Git ref the event concerns (refs/heads/main) */ + ref?: string; + /** Repository this event happened to */ + repositoryId?: string; + updatedAt?: string; + updatedByPrincipal?: string; } -export interface PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: unknown[]; - kidsList?: unknown; - ktreeList?: unknown; - paths?: unknown; - root?: string; - sId?: 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; } -/** 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 `PlatformRepository` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformRepositoryFilter { /** Checks for all expressions in this list. */ - and?: PlatformInfraObjectFilter[]; + 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 `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 `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 `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; + /** 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?: PlatformInfraObjectFilter; + not?: PlatformRepositoryFilter; /** Checks for any expressions in this list. */ - or?: PlatformInfraObjectFilter[]; - /** Filter by the object’s `scopeId` field. */ - scopeId?: UUIDFilter; -} -/** An input for mutations affecting `PlatformInfraObject` */ -export interface PlatformInfraObjectInput { - /** Timestamp of object creation */ + 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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; - /** 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 `PlatformInfraObject`. Fields that are set will be updated. */ -export interface PlatformInfraObjectPatch { - /** Timestamp of object creation */ + 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?: 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; - /** Payload data for this object node */ - data?: unknown; - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + 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; - /** 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; + /** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformInfraRefFilter { +/** 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 `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 `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; -} -export interface PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: unknown; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - 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 PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: unknown; - path?: string[]; - root?: string; - sId?: 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 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; } -/** 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; 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; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; 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 +12658,296 @@ 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 { +/** 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: 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 { +/** 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: 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `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; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; 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 */ + /** 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; + /** 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; - /** 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; } -/** 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,246 +12955,337 @@ 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 { +export interface PlatformResourceInstallationsRollbackInput { + clientMutationId?: string; + commitId?: string; + targetInstallationId?: string; +} +export interface PlatformResourceInstallationsUninstallInput { + clientMutationId?: string; + targetInstallationId?: string; +} +export interface PlatformResourceInstallationsUpgradeInput { + clientMutationId?: string; + newParams?: unknown; + targetInstallationId?: 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; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: 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?: 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?: PlatformWebhookEndpointFilter; + every?: PlatformResourceStatusCheckFilter; /** Filters to entities where no related entity matches. */ - none?: PlatformWebhookEndpointFilter; + none?: PlatformResourceStatusCheckFilter; /** Filters to entities where at least one related entity matches. */ - some?: PlatformWebhookEndpointFilter; + some?: PlatformResourceStatusCheckFilter; } -/** A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourceDeclaredCapacityFilter { +/** 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?: 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; + 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?: 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; + /** 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 `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -6893,14 +13294,12 @@ 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 `installationId` field. */ installationId?: UUIDFilter; /** Filter by the object’s `integrations` field. */ @@ -6919,26 +13318,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 +13336,1818 @@ export interface PlatformResourceFilter { 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 `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 { + /** 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 */ + 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 */ + 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; + some?: ProposalReactionFilter; } -export interface PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - 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; } -export interface PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: unknown; - targetInstallationId?: string; +/** 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 */ + 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 `PlatformResource`. Fields that are set will be updated. */ -export interface PlatformResourcePatch { - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; +/** Represents an update to a `Proposal`. Fields that are set will be updated. */ +export interface ProposalPatch { + /** Actor who opened the proposal */ + 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 `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; +} +/** 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 `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 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 `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformResourcesResolvedRequirementFilter { +/** 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 `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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 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 `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 `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 `ResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceDeclaredCapacityFilter { @@ -7773,10 +15190,18 @@ export interface ResourceDefinitionFilter { and?: ResourceDefinitionFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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. */ @@ -7815,13 +15240,18 @@ 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 { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; 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,13 +15281,17 @@ 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 { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; 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 +15321,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 { @@ -7966,6 +15401,12 @@ export interface ResourceFilter { and?: ResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -7974,6 +15415,8 @@ 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. */ @@ -8040,13 +15483,18 @@ export interface ResourceFilter { 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 { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; /** Cumulative error count for this resource */ @@ -8086,6 +15534,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 +15546,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 +15564,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 +15584,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 +15593,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 +15613,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 +15621,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 +15641,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 { @@ -8217,8 +15687,11 @@ export interface ResourceInstallationsUpgradeInput { export interface ResourcePatch { /** Freeform metadata for tooling and operational notes */ annotations?: unknown; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; createdAt?: string; createdBy?: string; + createdByPrincipal?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; /** Cumulative error count for this resource */ @@ -8258,6 +15731,7 @@ export interface ResourcePatch { statusObserved?: unknown; updatedAt?: string; updatedBy?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `ResourceRequirement` */ export interface ResourceRequirementInput { @@ -8542,6 +16016,8 @@ export interface ResourcesHealthFilter { and?: ResourcesHealthFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -8550,6 +16026,8 @@ 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. */ @@ -8604,6 +16082,8 @@ export interface ResourcesHealthFilter { 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 +16184,109 @@ 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 UpdateContentPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `ContentPreset` being updated. */ @@ -8711,6 +16294,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 +16497,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 +16564,21 @@ 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 UpdatePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -8961,6 +16639,18 @@ export interface UpdatePlatformFunctionInvocationInput { /** 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 */ @@ -8995,6 +16685,20 @@ export interface UpdatePlatformInfraStoreInput { /** 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) */ @@ -9010,6 +16714,78 @@ export interface UpdatePlatformNamespaceInput { /** 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; + id: string; + /** An object where the defined keys will be set on the `PlatformProposalsChunk` being updated. */ + platformProposalsChunkPatch: PlatformProposalsChunkPatch; +} +export interface UpdatePlatformRegistryBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRegistryBinding` being updated. */ + platformRegistryBindingPatch: PlatformRegistryBindingPatch; +} +export interface UpdatePlatformRegistryGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRegistryGrant` being updated. */ + platformRegistryGrantPatch: PlatformRegistryGrantPatch; +} +export interface UpdatePlatformRegistryInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRegistry` being updated. */ + platformRegistryPatch: PlatformRegistryPatch; +} +export interface UpdatePlatformRepositoryEventInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRepositoryEvent` being updated. */ + platformRepositoryEventPatch: PlatformRepositoryEventPatch; +} +export interface UpdatePlatformRepositoryInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRepository` being updated. */ + platformRepositoryPatch: PlatformRepositoryPatch; +} +export interface UpdatePlatformRepositoryWorkflowInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformRepositoryWorkflow` being updated. */ + platformRepositoryWorkflowPatch: PlatformRepositoryWorkflowPatch; +} export interface UpdatePlatformResourceDefinitionInput { clientMutationId?: string; id: string; @@ -9074,6 +16850,78 @@ 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 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 +16990,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 +17013,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 +17045,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 +17058,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 +17078,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 +17086,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 +17106,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 +17210,20 @@ 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 `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 +17231,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 +17420,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 +17490,20 @@ 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 `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 +17560,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 +17609,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 +17637,90 @@ 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 `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[]; @@ -9733,6 +17819,90 @@ export interface PlatformWebhookEventConnection { 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 `RegistryBinding` values. */ +export interface RegistryBindingConnection { + edges: RegistryBindingEdge[]; + nodes: RegistryBinding[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `Repository` values. */ +export interface RepositoryConnection { + edges: RepositoryEdge[]; + nodes: Repository[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `RepositoryWorkflow` values. */ +export interface RepositoryWorkflowConnection { + edges: RepositoryWorkflowEdge[]; + nodes: RepositoryWorkflow[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ResourceDeclaredCapacity` values. */ export interface ResourceDeclaredCapacityConnection { edges: ResourceDeclaredCapacityEdge[]; @@ -9851,12 +18021,66 @@ 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 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 +18181,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 +18235,18 @@ 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 CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -10047,6 +18295,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 +18331,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 +18355,78 @@ 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 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 +18481,78 @@ 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 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. */ @@ -10179,23 +18595,151 @@ export interface CreateResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } -export interface CreateWebhookEndpointPayload { +export interface CreateWebhookEndpointPayload { + clientMutationId?: string | null; + /** The `WebhookEndpoint` that was created by this mutation. */ + webhookEndpoint?: WebhookEndpoint | null; + webhookEndpointEdge?: WebhookEndpointEdge | null; +} +export interface CreateWebhookEventPayload { + clientMutationId?: string | null; + /** The `WebhookEvent` that was created by this mutation. */ + 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 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 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 `WebhookEndpoint` that was created by this mutation. */ - webhookEndpoint?: WebhookEndpoint | null; - webhookEndpointEdge?: WebhookEndpointEdge | null; + /** The `DatabaseGraphCommit` that was deleted by this mutation. */ + databaseGraphCommit?: DatabaseGraphCommit | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; } -export interface CreateWebhookEventPayload { +export interface DeleteDatabaseGraphObjectPayload { clientMutationId?: string | null; - /** The `WebhookEvent` that was created by this mutation. */ - webhookEvent?: WebhookEvent | null; - webhookEventEdge?: WebhookEventEdge | null; + /** The `DatabaseGraphObject` that was deleted by this mutation. */ + databaseGraphObject?: DatabaseGraphObject | null; + databaseGraphObjectEdge?: DatabaseGraphObjectEdge | null; } -export interface DeleteContentPresetPayload { +export interface DeleteDatabaseGraphRefPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was deleted by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | 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; @@ -10299,6 +18843,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 +18897,18 @@ 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 DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ @@ -10389,6 +18957,18 @@ 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. */ @@ -10413,6 +18993,18 @@ export interface DeletePlatformInfraStorePayload { 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. */ @@ -10425,6 +19017,78 @@ export interface DeletePlatformNamespaceEventPayload { 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 `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; +} +export interface DeletePlatformRegistryGrantPayload { + clientMutationId?: string | null; + /** The `PlatformRegistryGrant` that was deleted by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; +} +export interface DeletePlatformRepositoryPayload { + clientMutationId?: string | null; + /** The `PlatformRepository` that was deleted by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; +} +export interface DeletePlatformRepositoryEventPayload { + clientMutationId?: string | null; + /** The `PlatformRepositoryEvent` that was deleted by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | 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; /** The `PlatformResource` that was deleted by this mutation. */ @@ -10479,6 +19143,78 @@ 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 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. */ @@ -10663,12 +19399,72 @@ 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 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 +19567,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 +19621,18 @@ 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 UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ @@ -10861,6 +19681,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 +19717,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 +19741,78 @@ 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 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 +19867,78 @@ 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 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 +20024,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 +20041,72 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | 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 +20215,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 +20275,18 @@ 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 `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 +20335,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 +20377,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 +20401,78 @@ 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 `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; @@ -11383,6 +20557,78 @@ 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 `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; diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index c7435471f3..53fe7b51c3 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -5,7 +5,48 @@ */ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; export type ResourceRequirement = unknown; +export interface Build { + actorId: string | null; + catalogImageId: string | null; + commitSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + eventId: string | null; + finishedAt: string | null; + id: string | null; + jobId: string | null; + logs: ConstructiveInternalTypeUpload | 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 ContentPreset { active: boolean | null; commitId: string | null; @@ -19,6 +60,115 @@ 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; + id: string | null; + nodeName: string | null; + nodePath: string[] | null; + outputId: string | null; + startedAt: string | null; + status: 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 +205,13 @@ export interface FunctionCapabilityBinding { } export interface FunctionDefinition { accessChannels: string[] | null; + catalogImageId: string | 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; @@ -97,12 +249,15 @@ export interface FunctionDefinition { taskIdentifier: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; volatile: boolean | null; } export interface FunctionDeployment { annotations: unknown | null; + catalogImageId: string | null; concurrency: number | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; errorCount: number | null; handlerName: string | null; @@ -123,6 +278,7 @@ export interface FunctionDeployment { status: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface FunctionDeploymentEvent { actorId: string | null; @@ -271,6 +427,7 @@ export interface FunctionInvocation { channel: string | null; completedAt: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; definitionScope: string | null; durationMs: number | null; @@ -291,6 +448,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; @@ -367,6 +559,44 @@ export interface NamespaceEvent { metadata: unknown | null; namespaceId: string | null; } +export interface PlatformBuild { + actorId: string | null; + catalogImageId: string | null; + commitSha: string | null; + createdAt: string | null; + createdByPrincipal: string | null; + eventId: string | null; + finishedAt: string | null; + id: string | null; + jobId: string | null; + logs: ConstructiveInternalTypeUpload | 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 PlatformFunctionApiBinding { alias: string | null; apiId: string | null; @@ -390,11 +620,13 @@ export interface PlatformFunctionCapabilityBinding { export interface PlatformFunctionDefinition { accessChannels: string[] | null; billable: boolean | null; + catalogImageId: string | 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; @@ -432,12 +664,15 @@ export interface PlatformFunctionDefinition { taskIdentifier: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; volatile: boolean | null; } export interface PlatformFunctionDeployment { annotations: unknown | null; + catalogImageId: string | null; concurrency: number | null; createdAt: string | null; + createdByPrincipal: string | null; errorCount: number | null; handlerName: string | null; id: string | null; @@ -457,6 +692,7 @@ export interface PlatformFunctionDeployment { status: string | null; timeoutSeconds: number | null; updatedAt: string | null; + updatedByPrincipal: string | null; } export interface PlatformFunctionDeploymentEvent { actorId: string | null; @@ -497,6 +733,7 @@ export interface PlatformFunctionInvocation { channel: string | null; completedAt: string | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; definitionScope: string | null; durationMs: number | null; @@ -513,6 +750,39 @@ export interface PlatformFunctionInvocation { 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,6 +820,30 @@ 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; createdAt: string | null; @@ -573,12 +867,260 @@ 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; + requiredChecks: string[] | 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 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; + catalogImageId: string | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; errorCount: number | null; id: string | null; installationId: string | null; @@ -604,6 +1146,7 @@ export interface PlatformResource { storageSizeBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores: string | null; @@ -622,8 +1165,10 @@ export interface PlatformResourceDeclaredCapacity { } export interface PlatformResourceDefinition { annotations: unknown | null; + catalogImageId: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; defaultSpec: unknown | null; description: string | null; id: string | null; @@ -639,6 +1184,7 @@ export interface PlatformResourceDefinition { stepUpMinAge: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourceEvent { actorId: string | null; @@ -653,6 +1199,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 +1210,7 @@ export interface PlatformResourceInstallation { storeId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourceStatusCheck { completedAt: string | null; @@ -718,10 +1266,12 @@ export interface PlatformResourceUtilization { } export interface PlatformResourcesHealth { annotations: unknown | null; + catalogImageId: string | null; cpuLimitMillicores: string | null; cpuRequestMillicores: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; errorCount: number | null; id: string | null; installationId: string | null; @@ -748,6 +1298,7 @@ export interface PlatformResourcesHealth { storageSizeBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformResourcesRequirementsState { configHash: string | null; @@ -775,6 +1326,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 +1337,7 @@ export interface PlatformWebhookEndpoint { signingSecretName: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface PlatformWebhookEvent { createdAt: string | null; @@ -800,12 +1353,272 @@ 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; + requiredChecks: string[] | 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 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; + catalogImageId: string | 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; @@ -832,6 +1645,7 @@ export interface Resource { storageSizeBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourceDeclaredCapacity { cpuLimitMillicores: string | null; @@ -850,8 +1664,10 @@ export interface ResourceDeclaredCapacity { } export interface ResourceDefinition { annotations: unknown | null; + catalogImageId: string | null; createdAt: string | null; createdBy: string | null; + createdByPrincipal: string | null; databaseId: string | null; defaultSpec: unknown | null; description: string | null; @@ -868,6 +1684,7 @@ export interface ResourceDefinition { stepUpMinAge: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourceEvent { actorId: string | null; @@ -883,6 +1700,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 +1712,7 @@ export interface ResourceInstallation { storeId: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourceStatusCheck { completedAt: string | null; @@ -952,10 +1771,12 @@ export interface ResourceUtilization { } export interface ResourcesHealth { annotations: unknown | null; + catalogImageId: string | 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; @@ -983,6 +1804,7 @@ export interface ResourcesHealth { storageSizeBytes: string | null; updatedAt: string | null; updatedBy: string | null; + updatedByPrincipal: string | null; } export interface ResourcesRequirementsState { configHash: string | null; @@ -1010,6 +1832,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 +1844,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..c7a71381c1 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:** 8 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 17 **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..5eaa4708c6 100644 --- a/sdk/constructive-react/src/config/hooks/README.md +++ b/sdk/constructive-react/src/config/hooks/README.md @@ -37,11 +37,26 @@ function App() { | `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,6 +72,10 @@ 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 | @@ -81,20 +100,62 @@ and lifecycle settings. | ```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 +163,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 +205,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 +265,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 diff --git a/sdk/constructive-react/src/config/hooks/index.ts b/sdk/constructive-react/src/config/hooks/index.ts index 14ac3b09eb..9556485e66 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: 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..5b5dde5b3f 100644 --- a/sdk/constructive-react/src/config/hooks/invalidation.ts +++ b/sdk/constructive-react/src/config/hooks/invalidation.ts @@ -16,7 +16,10 @@ import type { QueryClient } from '@tanstack/react-query'; import { configKeys, + internalConfigKeys, + internalSecretKeys, platformConfigKeys, + platformInternalConfigKeys, platformInternalSecretKeys, platformSecretKeys, secretKeys, @@ -55,6 +58,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 +109,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({ @@ -138,6 +192,22 @@ export const remove = { 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 +216,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..649b832ef9 100644 --- a/sdk/constructive-react/src/config/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/config/hooks/mutation-keys.ts @@ -26,6 +26,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 +53,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 +100,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) @@ -157,7 +205,10 @@ export const customMutationKeys = { */ export const mutationKeys = { 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..6d1c051d32 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/index.ts @@ -6,12 +6,23 @@ 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'; 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..eee2e9bbdc 100644 --- a/sdk/constructive-react/src/config/hooks/queries/index.ts +++ b/sdk/constructive-react/src/config/hooks/queries/index.ts @@ -5,8 +5,14 @@ */ 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/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..3850eeaef4 100644 --- a/sdk/constructive-react/src/config/hooks/query-keys.ts +++ b/sdk/constructive-react/src/config/hooks/query-keys.ts @@ -28,6 +28,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 +55,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, @@ -88,7 +115,10 @@ export const secretKeys = { */ export const queryKeys = { 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..77737e6b1d 100644 --- a/sdk/constructive-react/src/config/orm/README.md +++ b/sdk/constructive-react/src/config/orm/README.md @@ -22,7 +22,10 @@ const db = createClient({ | Model | Operations | |-------|------------| | `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 | @@ -39,6 +42,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 +53,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 +75,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 +164,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 +174,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 +196,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 +249,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 +258,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 +356,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 @@ -304,7 +488,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 +503,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 +518,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 +533,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` diff --git a/sdk/constructive-react/src/config/orm/index.ts b/sdk/constructive-react/src/config/orm/index.ts index bf16135b3c..bdd6acef44 100644 --- a/sdk/constructive-react/src/config/orm/index.ts +++ b/sdk/constructive-react/src/config/orm/index.ts @@ -6,7 +6,10 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { ConfigModel } from './models/config'; +import { InternalConfigModel } from './models/internalConfig'; +import { InternalSecretModel } from './models/internalSecret'; import { PlatformConfigModel } from './models/platformConfig'; +import { PlatformInternalConfigModel } from './models/platformInternalConfig'; import { PlatformInternalSecretModel } from './models/platformInternalSecret'; import { PlatformSecretModel } from './models/platformSecret'; import { SecretModel } from './models/secret'; @@ -44,7 +47,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { config: new ConfigModel(client), + internalConfig: new InternalConfigModel(client), + internalSecret: new InternalSecretModel(client), platformConfig: new PlatformConfigModel(client), + platformInternalConfig: new PlatformInternalConfigModel(client), platformInternalSecret: new PlatformInternalSecretModel(client), platformSecret: new PlatformSecretModel(client), secret: new SecretModel(client), diff --git a/sdk/constructive-react/src/config/orm/input-types.ts b/sdk/constructive-react/src/config/orm/input-types.ts index dded259245..b1619f849b 100644 --- a/sdk/constructive-react/src/config/orm/input-types.ts +++ b/sdk/constructive-react/src/config/orm/input-types.ts @@ -236,6 +236,7 @@ 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 +256,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 +321,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 +355,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -339,13 +403,20 @@ export interface PageInfo { } // ============ Entity Relation Types ============ 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 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; @@ -354,6 +425,7 @@ export type SecretWithRelations = Secret & SecretRelations; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +436,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 +479,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 +502,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -430,6 +544,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 +570,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 +644,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 +668,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 +718,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. */ @@ -591,6 +803,8 @@ export type 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' @@ -614,13 +828,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 +912,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 +953,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -727,6 +1023,7 @@ export interface CreateConfigInput { clientMutationId?: string; config: { annotations?: Record; + createdByPrincipal?: string; databaseId: string; description?: string; expiresAt?: string; @@ -735,11 +1032,13 @@ export interface CreateConfigInput { 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; @@ -748,6 +1047,7 @@ export interface ConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdateConfigInput { @@ -759,10 +1059,77 @@ 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; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface InternalConfigPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdateInternalConfigInput { + clientMutationId?: string; + id: string; + internalConfigPatch: InternalConfigPatch; +} +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; +} export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1137,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 +1151,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1163,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 +1202,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1212,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 +1298,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; @@ -933,20 +1361,17 @@ export interface _SecretsSetInput { } 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 +1380,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1426,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 +1446,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 +1480,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 +1498,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; } @@ -1201,6 +1705,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 +1795,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 +1852,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 +1876,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/index.ts b/sdk/constructive-react/src/config/orm/models/index.ts index 0823cce0ad..05b2d25428 100644 --- a/sdk/constructive-react/src/config/orm/models/index.ts +++ b/sdk/constructive-react/src/config/orm/models/index.ts @@ -4,7 +4,10 @@ * DO NOT EDIT - changes will be overwritten */ 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..03f9c370c9 100644 --- a/sdk/constructive-react/src/config/orm/mutation/index.ts +++ b/sdk/constructive-react/src/config/orm/mutation/index.ts @@ -7,6 +7,10 @@ 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, @@ -20,6 +24,10 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, @@ -33,6 +41,10 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, @@ -48,6 +60,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; } @@ -96,6 +120,125 @@ export interface ProvisionBucketVariables { } 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: { diff --git a/sdk/constructive-react/src/config/schema-types.ts b/sdk/constructive-react/src/config/schema-types.ts index 9fe50303ce..8a18ad6e4f 100644 --- a/sdk/constructive-react/src/config/schema-types.ts +++ b/sdk/constructive-react/src/config/schema-types.ts @@ -6,7 +6,10 @@ import type { Config, + InternalConfig, + InternalSecret, PlatformConfig, + PlatformInternalConfig, PlatformInternalSecret, PlatformSecret, Secret, @@ -34,6 +37,8 @@ export type 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' @@ -57,14 +62,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 +149,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 +192,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -177,6 +267,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 +293,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 +303,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 +323,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 +332,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 +352,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 +361,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 +518,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 +542,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 +552,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 +570,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 +579,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 +597,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 +694,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 +709,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 +728,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -533,6 +844,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 +858,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; @@ -584,6 +937,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 +958,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 +986,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; } @@ -632,24 +1020,48 @@ export interface CreateConfigPayload { 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; } @@ -698,12 +1110,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; @@ -748,12 +1172,30 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | 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; diff --git a/sdk/constructive-react/src/config/types.ts b/sdk/constructive-react/src/config/types.ts index ac899cf39b..d6c0daadba 100644 --- a/sdk/constructive-react/src/config/types.ts +++ b/sdk/constructive-react/src/config/types.ts @@ -6,6 +6,7 @@ export interface Config { annotations: unknown | null; createdAt: string | null; + createdByPrincipal: string | null; databaseId: string | null; description: string | null; expiresAt: string | null; @@ -16,11 +17,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 +60,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 +83,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..078810e041 100644 --- a/sdk/constructive-react/src/infra/hooks/README.md +++ b/sdk/constructive-react/src/infra/hooks/README.md @@ -32,6 +32,11 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useContentPresetsQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useContentPresetQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useCreateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useUpdateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useDeleteContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useDbPresetsQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useDbPresetQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useCreateDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | @@ -81,7 +86,10 @@ function App() { | `useDeletePlatformNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `usePlatformInfraInitEmptyRepoMutation` | Mutation | platformInfraInitEmptyRepo | | `usePlatformInfraInsertNodeAtPathMutation` | Mutation | platformInfraInsertNodeAtPath | +| `usePlatformInfraInsertNodesAtPathsMutation` | Mutation | platformInfraInsertNodesAtPaths | +| `usePlatformInfraSetAndCommitMutation` | Mutation | platformInfraSetAndCommit | | `usePlatformInfraSetDataAtPathMutation` | Mutation | platformInfraSetDataAtPath | +| `usePlatformInfraSetManyAndCommitMutation` | Mutation | platformInfraSetManyAndCommit | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -89,6 +97,27 @@ and lifecycle settings. | ## Table Hooks +### ContentPreset + +```typescript +// List all contentPresets +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Get one contentPreset +const { data: item } = useContentPresetQuery({ + id: '', + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Create a contentPreset +const { mutate: create } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +create({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` + ### DbPreset ```typescript @@ -317,6 +346,28 @@ platformInfraInsertNodeAtPath |----------|------| | `input` | PlatformInfraInsertNodeAtPathInput (required) | +### `usePlatformInfraInsertNodesAtPathsMutation` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +### `usePlatformInfraSetAndCommitMutation` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + ### `usePlatformInfraSetDataAtPathMutation` platformInfraSetDataAtPath @@ -328,6 +379,17 @@ platformInfraSetDataAtPath |----------|------| | `input` | PlatformInfraSetDataAtPathInput (required) | +### `usePlatformInfraSetManyAndCommitMutation` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/infra/hooks/index.ts b/sdk/constructive-react/src/infra/hooks/index.ts index 5dbab6e356..b1365f8092 100644 --- a/sdk/constructive-react/src/infra/hooks/index.ts +++ b/sdk/constructive-react/src/infra/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: DbPreset, Namespace, NamespaceEvent, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent + * Tables: ContentPreset, DbPreset, Namespace, NamespaceEvent, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent * * Usage: * diff --git a/sdk/constructive-react/src/infra/hooks/invalidation.ts b/sdk/constructive-react/src/infra/hooks/invalidation.ts index 7b49940760..6ab3325e5b 100644 --- a/sdk/constructive-react/src/infra/hooks/invalidation.ts +++ b/sdk/constructive-react/src/infra/hooks/invalidation.ts @@ -15,6 +15,7 @@ import type { QueryClient } from '@tanstack/react-query'; import { + contentPresetKeys, dbPresetKeys, namespaceKeys, namespaceEventKeys, @@ -46,6 +47,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate contentPreset queries */ contentPreset: { + /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.all, + }), + /** Invalidate contentPreset list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }), + /** Invalidate a specific contentPreset */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.detail(id), + }), + }, /** Invalidate dbPreset queries */ dbPreset: { /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -230,6 +248,14 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove contentPreset from cache */ contentPreset: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: contentPresetKeys.detail(id), + }); + }, /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: dbPresetKeys.detail(id), diff --git a/sdk/constructive-react/src/infra/hooks/mutation-keys.ts b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts index 5f62de71e3..89c765a9d7 100644 --- a/sdk/constructive-react/src/infra/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const contentPresetMutationKeys = { + /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, + /** Create contentPreset mutation key */ create: () => + ['mutation', 'contentpreset', 'create'] as const, + /** Update contentPreset mutation key */ update: (id: string | number) => + ['mutation', 'contentpreset', 'update', id] as const, + /** Delete contentPreset mutation key */ delete: (id: string | number) => + ['mutation', 'contentpreset', 'delete', id] as const, +} as const; export const dbPresetMutationKeys = { /** All dbPreset mutation keys */ all: ['mutation', 'dbpreset'] as const, /** Create dbPreset mutation key */ create: () => ['mutation', 'dbpreset', 'create'] as const, @@ -130,12 +139,30 @@ export const customMutationKeys = { identifier ? (['mutation', 'platformInfraInsertNodeAtPath', identifier] as const) : (['mutation', 'platformInfraInsertNodeAtPath'] as const), + /** Mutation key for platformInfraInsertNodesAtPaths */ platformInfraInsertNodesAtPaths: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraInsertNodesAtPaths', identifier] as const) + : (['mutation', 'platformInfraInsertNodesAtPaths'] as const), + /** Mutation key for platformInfraSetAndCommit */ platformInfraSetAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetAndCommit'] as const), /** Mutation key for platformInfraSetDataAtPath */ platformInfraSetDataAtPath: ( identifier?: string ) => identifier ? (['mutation', 'platformInfraSetDataAtPath', identifier] as const) : (['mutation', 'platformInfraSetDataAtPath'] as const), + /** Mutation key for platformInfraSetManyAndCommit */ platformInfraSetManyAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetManyAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetManyAndCommit'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -164,6 +191,7 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + contentPreset: contentPresetMutationKeys, dbPreset: dbPresetMutationKeys, namespace: namespaceMutationKeys, namespaceEvent: namespaceEventMutationKeys, diff --git a/sdk/constructive-react/src/infra/hooks/mutations/index.ts b/sdk/constructive-react/src/infra/hooks/mutations/index.ts index 2b042b34a2..b08fd53122 100644 --- a/sdk/constructive-react/src/infra/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/index.ts @@ -3,6 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateContentPresetMutation'; +export * from './useUpdateContentPresetMutation'; +export * from './useDeleteContentPresetMutation'; export * from './useCreateDbPresetMutation'; export * from './useUpdateDbPresetMutation'; export * from './useDeleteDbPresetMutation'; @@ -33,5 +36,8 @@ export * from './useUpdatePlatformNamespaceEventMutation'; export * from './useDeletePlatformNamespaceEventMutation'; export * from './usePlatformInfraInitEmptyRepoMutation'; export * from './usePlatformInfraInsertNodeAtPathMutation'; +export * from './usePlatformInfraInsertNodesAtPathsMutation'; +export * from './usePlatformInfraSetAndCommitMutation'; export * from './usePlatformInfraSetDataAtPathMutation'; +export * from './usePlatformInfraSetManyAndCommitMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts new file mode 100644 index 0000000000..b710975d4a --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts @@ -0,0 +1,88 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; +import type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateContentPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateContentPresetMutation( + params: { + selection: { + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseMutationOptions< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] +>; +export function useCreateContentPresetMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetMutationKeys.create(), + mutationFn: (data: CreateContentPresetInput['contentPreset']) => + getClient() + .contentPreset.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/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..860f38ead6 100644 --- a/sdk/constructive-react/src/infra/orm/README.md +++ b/sdk/constructive-react/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/infra/orm/index.ts b/sdk/constructive-react/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-react/src/infra/orm/index.ts +++ b/sdk/constructive-react/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-react/src/infra/orm/input-types.ts b/sdk/constructive-react/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-react/src/infra/orm/input-types.ts +++ b/sdk/constructive-react/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/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..04353e5b5c 100644 --- a/sdk/constructive-react/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-react/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/infra/schema-types.ts b/sdk/constructive-react/src/infra/schema-types.ts index a9b4f2dd24..e0d5174b1c 100644 --- a/sdk/constructive-react/src/infra/schema-types.ts +++ b/sdk/constructive-react/src/infra/schema-types.ts @@ -5,6 +5,7 @@ */ import type { + ContentPreset, DbPreset, Namespace, NamespaceEvent, @@ -33,6 +34,33 @@ import type { UUIDListFilter, VectorFilter, } from './types'; +/** Methods to use when ordering `ContentPreset`. */ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `DbPreset`. */ export type DbPresetOrderBy = | 'ACTIVE_ASC' @@ -230,6 +258,92 @@ export type PlatformNamespaceOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** Represents an update to a `ContentPreset`. Fields that are set will be updated. */ +export interface ContentPresetPatch { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface CreateContentPresetInput { + clientMutationId?: string; + /** The `ContentPreset` to be created by this mutation. */ + contentPreset: ContentPresetInput; +} export interface CreateDbPresetInput { clientMutationId?: string; /** The `DbPreset` to be created by this mutation. */ @@ -356,6 +470,11 @@ export interface DbPresetPatch { /** Timestamp of last modification */ updatedAt?: string; } +export interface DeleteContentPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} export interface DeleteDbPresetInput { clientMutationId?: string; /** Unique preset identifier */ @@ -642,6 +761,15 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraObjectFilter { /** Checks for all expressions in this list. */ @@ -738,6 +866,17 @@ export interface PlatformInfraRefPatch { /** Store this ref belongs to */ storeId?: string; } +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -745,6 +884,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraStoreFilter { /** Checks for all expressions in this list. */ @@ -937,6 +1084,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface UpdateContentPresetInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `ContentPreset` being updated. */ + contentPresetPatch: ContentPresetPatch; + /** Unique preset identifier */ + id: string; +} export interface UpdateDbPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `DbPreset` being updated. */ @@ -1012,6 +1166,13 @@ export interface UpdatePlatformNamespaceInput { export interface MetaSchema { tables: MetaTable[]; } +/** A connection to a list of `ContentPreset` values. */ +export interface ContentPresetConnection { + edges: ContentPresetEdge[]; + nodes: ContentPreset[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DbPreset` values. */ export interface DbPresetConnection { edges: DbPresetEdge[]; @@ -1082,6 +1243,12 @@ export interface PlatformNamespaceConnection { pageInfo: PageInfo; totalCount: number; } +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1136,6 +1303,12 @@ export interface CreatePlatformNamespaceEventPayload { platformNamespaceEvent?: PlatformNamespaceEvent | null; platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface DeleteDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was deleted by this mutation. */ @@ -1197,10 +1370,24 @@ export interface PlatformInfraInsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1215,6 +1402,12 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface UpdateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was updated by this mutation. */ @@ -1296,11 +1489,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `DbPreset` edge in the connection. */ -export interface DbPresetEdge { +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { cursor?: string | null; - /** The `DbPreset` at the end of the edge. */ - node?: DbPreset | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -1313,6 +1506,12 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} /** A `NamespaceEvent` edge in the connection. */ export interface NamespaceEventEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/infra/types.ts b/sdk/constructive-react/src/infra/types.ts index 9663f2af5d..2dd81bb7cc 100644 --- a/sdk/constructive-react/src/infra/types.ts +++ b/sdk/constructive-react/src/infra/types.ts @@ -3,6 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export interface ContentPreset { + active: boolean | null; + commitId: string | null; + createdAt: string | null; + definition: unknown | null; + description: string | null; + id: string | null; + kind: string | null; + label: string | null; + slug: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface DbPreset { active: boolean | null; commitId: string | null; diff --git a/sdk/constructive-react/src/modules/README.md b/sdk/constructive-react/src/modules/README.md index 9bdc607616..a2848f14be 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:** 87 - **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..678ce85f49 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 | @@ -502,6 +517,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 +542,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,7 +632,7 @@ 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 @@ -626,20 +646,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, 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, 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, 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, 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', runTableId: '', runTableName: '', schemaId: '', scope: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '', workspaceTableId: '', workspaceTableName: '' }); ``` ### ApiSurfaceModule @@ -815,62 +835,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, 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, 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, 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, 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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 @@ -1419,27 +1439,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 +1481,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 +1586,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 +1649,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 +1691,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 +1759,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 @@ -1944,25 +2027,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, 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, 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: '', 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, 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, 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: '', 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 +2095,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 } }, }); // 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: '' }); ``` ### ScopeTypesModule @@ -2033,20 +2137,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 @@ -2117,20 +2221,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 @@ -2159,20 +2263,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 @@ -2368,7 +2472,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 +766,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 +800,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 +885,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 +936,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 +970,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({ @@ -1187,6 +1242,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 +1686,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 +1907,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 +1963,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 +1987,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 +2003,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 @@ -2035,6 +2131,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..9caf162f08 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', @@ -629,6 +653,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 +902,8 @@ export const mutationKeys = { blueprintTemplate: blueprintTemplateMutationKeys, capabilitiesModule: capabilitiesModuleMutationKeys, catalogModule: catalogModuleMutationKeys, + clusterModule: clusterModuleMutationKeys, computeLogModule: computeLogModuleMutationKeys, - configSecretsUserModule: configSecretsUserModuleMutationKeys, connectedAccountsModule: connectedAccountsModuleMutationKeys, contentPresetModule: contentPresetModuleMutationKeys, cryptoAddressesModule: cryptoAddressesModuleMutationKeys, @@ -897,16 +930,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, @@ -922,6 +958,7 @@ export const mutationKeys = { rateLimitsModule: rateLimitsModuleMutationKeys, realtimeModule: realtimeModuleMutationKeys, 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..42c2c1c92c 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'; @@ -192,6 +201,9 @@ export * from './useDeleteRealtimeModuleMutation'; 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/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/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/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..6344cd3e21 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'; @@ -129,6 +135,8 @@ export * from './useRealtimeModulesQuery'; export * from './useRealtimeModuleQuery'; 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/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..f073905935 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, @@ -587,6 +614,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 +837,8 @@ export const queryKeys = { blueprintTemplate: blueprintTemplateKeys, capabilitiesModule: capabilitiesModuleKeys, catalogModule: catalogModuleKeys, + clusterModule: clusterModuleKeys, computeLogModule: computeLogModuleKeys, - configSecretsUserModule: configSecretsUserModuleKeys, connectedAccountsModule: connectedAccountsModuleKeys, contentPresetModule: contentPresetModuleKeys, cryptoAddressesModule: cryptoAddressesModuleKeys, @@ -829,16 +865,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, @@ -854,6 +893,7 @@ export const queryKeys = { rateLimitsModule: rateLimitsModuleKeys, realtimeModule: realtimeModuleKeys, 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..c349e346c9 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 | @@ -84,6 +87,7 @@ const db = createClient({ | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | 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 +124,16 @@ 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 | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -144,25 +153,28 @@ CRUD operations for AgentModule records. | `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, 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, 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, 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, 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', 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(); @@ -585,12 +597,16 @@ CRUD operations for CatalogModule records. | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | 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 +630,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, 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, 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, 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, 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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 +645,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` @@ -1908,9 +1942,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 +1952,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 +1987,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 +2029,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 +2078,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 +2092,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 +2102,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 +2247,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 +2382,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 +2494,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 +2663,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 +2681,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(); @@ -3067,6 +3245,72 @@ 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 | +| `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, 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, 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: '', 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. @@ -3091,6 +3335,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 +3362,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, 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, 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: '', 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 +3445,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 | @@ -3211,13 +3459,13 @@ CRUD operations for RouteModule records. ```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 } }).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 } }).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: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3271,8 +3519,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 +3533,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(); @@ -3439,11 +3689,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 +3701,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 +3713,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(); @@ -3556,11 +3805,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 +3817,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 +3829,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(); @@ -3964,7 +4212,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:** diff --git a/sdk/constructive-react/src/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts index 249a7e5114..43dbf49ab3 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'; @@ -68,6 +71,7 @@ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; 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 +135,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 +163,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), @@ -184,6 +191,7 @@ export function createClient(config: OrmClientConfig) { rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(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..190922c5a8 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -237,11 +237,16 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -261,13 +266,16 @@ export interface AgentModule { 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; @@ -514,12 +522,16 @@ export interface CatalogModule { functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: 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 +551,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; @@ -1343,29 +1373,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 +1410,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 +1450,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 +1517,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 +1576,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 +1637,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 +1721,7 @@ export interface MerkleStoreModule { createdAt?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; id: string; objectTableId?: string | null; @@ -1990,6 +2088,46 @@ 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; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; databaseId?: string | null; @@ -2007,6 +2145,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 +2203,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; @@ -2078,7 +2220,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 +2230,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. */ @@ -2161,11 +2307,9 @@ export interface SiteSurfaceModule { sitesTableName?: 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 +2319,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; @@ -2226,11 +2371,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 +2383,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; @@ -2428,8 +2572,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 +2616,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2483,28 +2626,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; } @@ -2527,10 +2672,10 @@ export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} 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 +2694,6 @@ export interface SiteSurfaceModuleRelations { export interface StorageLogModuleRelations {} export interface StorageModuleRelations { fileRefFields?: ConnectionResult; - httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} @@ -2579,9 +2723,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 +2760,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; @@ -2647,6 +2794,7 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; 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 +2827,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2703,13 +2856,16 @@ export type AgentModuleSelect = { 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; @@ -2949,12 +3105,16 @@ export type CatalogModuleSelect = { functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: 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 +3164,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; @@ -3526,12 +3704,6 @@ export type FunctionModuleSelect = { filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3621,69 +3793,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 +3858,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3758,6 +3922,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 +3979,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,6 +4042,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; @@ -3895,6 +4126,7 @@ export type MerkleStoreModuleSelect = { createdAt?: boolean; databaseId?: boolean; entityField?: boolean; + entityTableId?: boolean; functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; @@ -3925,6 +4157,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4199,14 +4437,54 @@ 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; defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; + hasAttachments?: boolean; + hasBuilds?: boolean; id?: boolean; - installationStoreName?: 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; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; +export type ResourceModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + installationStoreName?: boolean; merkleStoreModuleId?: boolean; namespaceModuleId?: boolean; policies?: boolean; @@ -4216,6 +4494,8 @@ export type ResourceModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; requirementsStateViewName?: boolean; resolvedRequirementsViewName?: boolean; resourceBillingRollupFunction?: boolean; @@ -4242,12 +4522,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -4284,6 +4558,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4310,8 +4586,10 @@ export type SecureTableProvisionSelect = { fields?: boolean; grants?: boolean; id?: boolean; + module?: boolean; nodes?: boolean; outFields?: boolean; + owns?: boolean; policies?: boolean; schemaId?: boolean; tableId?: boolean; @@ -4389,11 +4667,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 +4679,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4458,19 +4735,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 +4749,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4643,16 +4913,26 @@ 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 `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. */ @@ -4695,12 +4975,14 @@ export interface AgentModuleFilter { 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 +4991,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. */ @@ -5187,6 +5473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -5203,6 +5493,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 +5542,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 +5593,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 +5603,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. */ @@ -6319,10 +6649,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. */ @@ -6514,107 +6840,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 +6935,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 +6961,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 +6987,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 +7118,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 +7244,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,23 +7374,79 @@ 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?: MembershipTypesModuleFilter; + not?: MachineModuleFilter; /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; + 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; + /** 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. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: MembershipTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: MembershipTypesModuleFilter[]; + /** 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 MembershipsModuleFilter { /** Filter by the object’s `actorMaskCheck` field. */ @@ -7105,6 +7563,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 +7573,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. */ @@ -7686,6 +8150,90 @@ 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 `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[]; @@ -7699,10 +8247,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 +8281,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 +8413,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. */ @@ -7909,6 +8461,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 +8471,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. */ @@ -8063,8 +8619,6 @@ export interface SiteSurfaceModuleFilter { sitesTableName?: 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 +8627,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 +8649,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,10 +8717,6 @@ 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 `maxBulkFiles` field. */ @@ -8209,8 +8759,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 +8767,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 +8789,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. */ @@ -8580,16 +9128,26 @@ 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_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8631,12 +9189,14 @@ export type AgentModuleOrderBy = | '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 +9204,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' @@ -9042,6 +9606,10 @@ 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' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -9057,6 +9625,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 +9665,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 +9713,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 +9722,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' @@ -10195,82 +10803,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 +10887,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 +10935,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 +11049,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,6 +11163,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' @@ -10597,18 +11283,70 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type MembershipTypesModuleOrderBy = +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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +export type MembershipTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | '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 MembershipsModuleOrderBy = @@ -10712,6 +11450,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' @@ -11213,6 +11953,86 @@ 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' + | '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' @@ -11249,6 +12069,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 +12185,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' @@ -11398,11 +12226,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' @@ -11526,16 +12358,12 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' | 'SITE_WEB_CONFIG_TABLE_NAME_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 +12385,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' @@ -11656,16 +12486,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 +12513,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' @@ -11968,11 +12796,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11991,13 +12824,16 @@ export interface CreateAgentModuleInput { 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 +12842,16 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -12029,13 +12870,16 @@ export interface AgentModulePatch { 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; @@ -12495,12 +13339,16 @@ export interface CreateCatalogModuleInput { entityTableId?: string; functionsTableId?: string; functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -12538,12 +13386,16 @@ export interface CatalogModulePatch { entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: 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 +13424,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; } @@ -13932,140 +14820,142 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteModuleInput { +export interface CreateI18NModuleInput { clientMutationId?: string; - httpRouteModule: { + i18NModule: { 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; + settingsTableId?: string; }; } -export interface HttpRouteModulePatch { +export interface I18NModulePatch { 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; + 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; @@ -14076,6 +14966,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -14083,11 +14974,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 +14987,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 +15136,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,46 +15280,94 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface CreateLimitsModuleInput { +export interface CreateK8sAdmissionModuleInput { clientMutationId?: string; - limitsModule: { - actorTableId?: string; - aggregateTableId?: string; + k8sAdmissionModule: { apiName?: string; - capCheckTrigger?: string; - creditCodeItemsTableId?: string; - creditCodesTableId?: string; - creditRedemptionsTableId?: string; databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; entityTableId?: string; - eventsTableId?: string; - limitAggregateCheckSoftFunction?: string; - limitCapsDefaultsTableId?: string; - limitCapsTableId?: string; - limitCheckFunction?: string; - limitCheckSoftFunction?: string; - limitCreditsTableId?: string; - limitDecrementFunction?: string; - limitDecrementTrigger?: string; - limitDefaults?: Record; - limitIncrementFunction?: string; - limitIncrementTrigger?: string; - limitUpdateTrigger?: string; - limitWarningStateTableId?: string; - limitWarningsTableId?: string; - prefix?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; publicSchemaName?: string; - resolveCapFunction?: string; - schemaId?: string; scope: string; - tableId?: string; - tableName?: 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: { + actorTableId?: string; + aggregateTableId?: string; + apiName?: string; + capCheckTrigger?: string; + creditCodeItemsTableId?: string; + creditCodesTableId?: string; + creditRedemptionsTableId?: string; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + eventsTableId?: string; + limitAggregateCheckSoftFunction?: string; + limitCapsDefaultsTableId?: string; + limitCapsTableId?: string; + limitCheckFunction?: string; + limitCheckSoftFunction?: string; + limitCreditsTableId?: string; + limitDecrementFunction?: string; + limitDecrementTrigger?: string; + limitDefaults?: Record; + limitIncrementFunction?: string; + limitIncrementTrigger?: string; + limitUpdateTrigger?: string; + limitWarningStateTableId?: string; + limitWarningsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + resolveCapFunction?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; }; } export interface LimitsModulePatch { @@ -14434,6 +15418,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 +15610,7 @@ export interface CreateMerkleStoreModuleInput { commitTableId?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; objectTableId?: string; prefix?: string; @@ -14583,6 +15630,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; @@ -15196,6 +16244,96 @@ 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; + 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; + 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: { @@ -15214,6 +16352,8 @@ export interface CreateResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -15252,6 +16392,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 +16485,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -15371,6 +16515,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; @@ -15418,8 +16564,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 +16579,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; @@ -15591,11 +16741,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 +16752,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -15613,11 +16762,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 +16773,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; @@ -15741,11 +16889,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 +16900,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -15763,11 +16910,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 +16921,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; @@ -16169,7 +17315,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -16182,6 +17327,7 @@ export const connectionFieldsMap = { contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -16190,16 +17336,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 +17500,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 +17554,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 +17608,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 +17674,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 +17681,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -16581,13 +17710,16 @@ export interface AgentModuleInput { 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 { @@ -16840,12 +17972,16 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -16865,15 +18001,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; @@ -16883,22 +18047,12 @@ 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 { - apiName?: string; - databaseId: string; - entityField?: string; - id?: string; - privateApiName?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `ConnectedAccountsModule` */ export interface ConnectedAccountsModuleInput { apiName?: string; @@ -17703,30 +18857,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 +18885,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 +18927,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -17833,6 +18988,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 +19048,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,8 +19110,35 @@ export interface LimitsModuleInput { tableId?: string; tableName?: string; } -/** An input for mutations affecting `MembershipTypesModule` */ -export interface MembershipTypesModuleInput { +/** 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; id?: string; schemaId?: string; @@ -17976,6 +19198,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -18335,6 +19558,47 @@ 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; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; @@ -18353,6 +19617,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -18411,6 +19677,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -18437,10 +19705,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. */ @@ -18513,11 +19785,9 @@ export interface SiteSurfaceModuleInput { } /** 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 +19797,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -18580,11 +19851,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 +19863,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -19138,6 +20408,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. */ @@ -19368,69 +20642,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 +20840,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. */ @@ -19696,10 +20954,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 +20988,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. */ @@ -20215,6 +21473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -20231,6 +21493,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 +21627,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. */ @@ -20500,80 +21762,54 @@ export interface NamespaceModuleFilter { /** `webhookModules` exist. */ webhookModulesExist?: boolean; } -/** 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. */ - allowedOrigins?: StringListFilter; +/** 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?: StorageModuleFilter[]; + and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `catalogModuleId` field. */ - catalogModuleId?: UUIDFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; + /** 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 `defaultCapabilities` field. */ - defaultCapabilities?: StringListFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; + /** 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 `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. */ - filesTableName?: StringFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - 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 `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 `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ - not?: StorageModuleFilter; + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; /** 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; + 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. */ @@ -20582,65 +21818,91 @@ export interface StorageModuleFilter { 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 `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 `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; } -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleFilter { +/** 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. */ + allowedOrigins?: StringListFilter; /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; + and?: StorageModuleFilter[]; /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `catalogModuleId` field. */ + catalogModuleId?: UUIDFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** 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 `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + 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. */ + filesTableName?: StringFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** 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?: 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 +21911,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 { @@ -21178,6 +22442,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 +22532,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 +23702,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 +23792,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 +24017,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 +24152,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 +24242,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. */ @@ -23563,6 +24962,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 +26027,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 +26363,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 +26387,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 +26447,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 +26483,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 +26507,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; @@ -25219,6 +26699,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..9f631eee88 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'; @@ -66,6 +69,7 @@ export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; 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/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..f2236fd4e4 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; diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 25ead43ac0..6a75f4e59a 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, @@ -68,6 +71,7 @@ import type { RateLimitsModule, RealtimeModule, RelationProvision, + RepositoryModule, ResourceModule, RlsModule, RouteModule, @@ -118,16 +122,26 @@ 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_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -169,12 +183,14 @@ export type AgentModuleOrderBy = | '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 +198,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' @@ -589,6 +609,10 @@ 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' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -604,6 +628,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 +668,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 +717,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 +726,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' @@ -1770,85 +1834,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 +1921,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 +1970,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 +2087,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 +2204,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 +2326,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 +2497,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' @@ -2813,6 +3012,87 @@ export type RelationProvisionOrderBy = | 'TARGET_TABLE_ID_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC'; +/** 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' + | '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' + | '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' @@ -2850,6 +3130,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 +3248,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' @@ -3003,11 +3291,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' @@ -3135,16 +3427,12 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_NAME_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 +3454,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' @@ -3267,16 +3557,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 +3584,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' @@ -3593,16 +3881,26 @@ 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 `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. */ @@ -3645,12 +3943,14 @@ export interface AgentModuleFilter { 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 +3959,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 +3971,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -3691,13 +4000,16 @@ export interface AgentModuleInput { 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 +4018,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -3730,13 +4047,16 @@ export interface AgentModulePatch { 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 { @@ -4724,6 +5044,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -4740,6 +5064,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. */ @@ -4804,12 +5132,16 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: unknown; privateApiName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -4848,12 +5180,16 @@ export interface CatalogModulePatch { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: 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 +5254,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 +5306,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 +5316,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 +5667,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 +5807,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 +5817,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 +5842,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 +5857,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. */ @@ -5524,6 +5947,11 @@ export interface CreateRelationProvisionInput { /** 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. */ @@ -6451,11 +6879,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 +6992,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 +7020,10 @@ export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } +export interface DeleteInternalConfigModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; @@ -6600,10 +7032,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; @@ -6665,6 +7105,10 @@ export interface DeleteRelationProvisionInput { /** 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 +8684,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. */ @@ -8334,15 +8774,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,117 +9101,6 @@ 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 { - /** 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` */ -export interface HttpRouteModuleInput { - 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; -} -/** Represents an update to a `HttpRouteModule`. Fields that are set will be updated. */ -export interface HttpRouteModulePatch { - 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; -} /** 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. */ @@ -8897,62 +9217,165 @@ export interface IdentityProvidersModulePatch { 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; +/** 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?: InferenceLogModuleFilter[]; + 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 `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; + /** 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?: InferenceLogModuleFilter; + not?: ImageModuleFilter; /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; + 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 `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 `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 `usageSummaryTableId` field. */ - usageSummaryTableId?: UUIDFilter; - /** Filter by the object’s `usageSummaryTableName` field. */ - usageSummaryTableName?: StringFilter; } -/** An input for mutations affecting `InferenceLogModule` */ -export interface InferenceLogModuleInput { - actorFkTableId?: 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?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope: string; +} +/** 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; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaName?: string; + registriesTableId?: string; + registriesTableName?: string; + registryGrantsTableId?: string; + registryGrantsTableName?: string; + schemaId?: string; + scope?: string; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** 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 `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 `InferenceLogModule` */ +export interface InferenceLogModuleInput { apiName?: string; databaseId: string; entityField?: string; - entityFkTableId?: string; id?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; @@ -8964,6 +9387,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -8971,11 +9395,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 +9409,7 @@ export interface InferenceLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; usageSummaryTableId?: string; @@ -9234,6 +9657,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 +9989,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. */ @@ -9577,82 +10168,193 @@ export interface LimitsModuleInput { actorTableId?: string; aggregateTableId?: string; apiName?: string; - capCheckTrigger?: string; - creditCodeItemsTableId?: string; - creditCodesTableId?: string; - creditRedemptionsTableId?: string; + capCheckTrigger?: string; + creditCodeItemsTableId?: string; + creditCodesTableId?: string; + creditRedemptionsTableId?: string; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + eventsTableId?: string; + id?: string; + limitAggregateCheckSoftFunction?: string; + limitCapsDefaultsTableId?: string; + limitCapsTableId?: string; + limitCheckFunction?: string; + limitCheckSoftFunction?: string; + limitCreditsTableId?: string; + limitDecrementFunction?: string; + limitDecrementTrigger?: string; + limitDefaults?: unknown; + limitIncrementFunction?: string; + limitIncrementTrigger?: string; + limitUpdateTrigger?: string; + limitWarningStateTableId?: string; + limitWarningsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + resolveCapFunction?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} +/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ +export interface LimitsModulePatch { + actorTableId?: string; + aggregateTableId?: string; + apiName?: string; + capCheckTrigger?: string; + creditCodeItemsTableId?: string; + creditCodesTableId?: string; + creditRedemptionsTableId?: string; + databaseId?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + eventsTableId?: string; + id?: string; + limitAggregateCheckSoftFunction?: string; + limitCapsDefaultsTableId?: string; + limitCapsTableId?: string; + limitCheckFunction?: string; + limitCheckSoftFunction?: string; + limitCreditsTableId?: string; + limitDecrementFunction?: string; + limitDecrementTrigger?: string; + limitDefaults?: unknown; + limitIncrementFunction?: string; + limitIncrementTrigger?: string; + limitUpdateTrigger?: string; + limitWarningStateTableId?: string; + limitWarningsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + resolveCapFunction?: string; + schemaId?: string; + scope?: string; + 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; - defaultTableId?: string; - defaultTableName?: string; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; - eventsTableId?: string; id?: string; - limitAggregateCheckSoftFunction?: string; - limitCapsDefaultsTableId?: string; - limitCapsTableId?: string; - limitCheckFunction?: string; - limitCheckSoftFunction?: string; - limitCreditsTableId?: string; - limitDecrementFunction?: string; - limitDecrementTrigger?: string; - limitDefaults?: unknown; - limitIncrementFunction?: string; - limitIncrementTrigger?: string; - limitUpdateTrigger?: string; - limitWarningStateTableId?: string; - limitWarningsTableId?: 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; - resolveCapFunction?: string; + retention?: string; schemaId?: string; scope: string; - tableId?: string; - tableName?: string; } -/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ -export interface LimitsModulePatch { - actorTableId?: string; - aggregateTableId?: string; +/** Represents an update to a `MachineModule`. Fields that are set will be updated. */ +export interface MachineModulePatch { apiName?: string; - capCheckTrigger?: string; - creditCodeItemsTableId?: string; - creditCodesTableId?: string; - creditRedemptionsTableId?: string; databaseId?: string; - defaultTableId?: string; - defaultTableName?: string; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; - eventsTableId?: string; id?: string; - limitAggregateCheckSoftFunction?: string; - limitCapsDefaultsTableId?: string; - limitCapsTableId?: string; - limitCheckFunction?: string; - limitCheckSoftFunction?: string; - limitCreditsTableId?: string; - limitDecrementFunction?: string; - limitDecrementTrigger?: string; - limitDefaults?: unknown; - limitIncrementFunction?: string; - limitIncrementTrigger?: string; - limitUpdateTrigger?: string; - limitWarningStateTableId?: string; - limitWarningsTableId?: 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; - resolveCapFunction?: string; + retention?: string; schemaId?: string; scope?: string; - tableId?: string; - tableName?: string; } /** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypesModuleFilter { @@ -9896,6 +10598,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 +10608,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 +10653,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -9966,6 +10675,7 @@ export interface MerkleStoreModulePatch { createdAt?: string; databaseId?: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -10006,6 +10716,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. */ @@ -11304,6 +12023,173 @@ 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 `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; + 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; + 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. */ @@ -11318,10 +12204,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 +12238,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. */ @@ -11415,6 +12301,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -11454,6 +12342,8 @@ export interface ResourceModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -11475,15 +12365,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 +12486,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. */ @@ -11641,6 +12526,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -11670,6 +12557,8 @@ export interface RouteModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -11725,6 +12614,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 +12624,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 +12647,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 +12676,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. */ @@ -12069,8 +12970,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 +12978,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 +13000,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 +13017,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 +13029,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -12141,11 +13039,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 +13051,7 @@ export interface StorageLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; storageLogTableId?: string; @@ -12216,10 +13113,6 @@ 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 `maxBulkFiles` field. */ @@ -12358,19 +13251,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 +13261,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 +13283,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 +13300,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 +13312,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -12441,11 +13322,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 +13334,7 @@ export interface TransferLogModulePatch { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope?: string; transferLogTableId?: string; @@ -12525,16 +13405,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 +13574,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 +13586,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 +13616,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 +13634,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; @@ -12845,6 +13743,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; @@ -13641,6 +14545,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 +14559,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 +14741,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 +14755,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 +14790,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 +14811,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 +14825,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[]; @@ -14012,6 +14937,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 +15152,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 +15320,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 +15332,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 +15362,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 +15380,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. */ @@ -14538,6 +15488,12 @@ export interface CreateRelationProvisionPayload { 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 +15674,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 +15842,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 +15854,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 +15884,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 +15902,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. */ @@ -15036,6 +16010,12 @@ export interface DeleteRelationProvisionPayload { 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. */ @@ -15230,18 +16210,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 +16378,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 +16390,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 +16420,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 +16438,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. */ @@ -15548,6 +16546,12 @@ export interface UpdateRelationProvisionPayload { 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 +16770,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 +16938,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 +16950,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 +16980,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 +16998,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; @@ -16084,6 +17106,12 @@ export interface RelationProvisionEdge { /** 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; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index eea5320eec..07811aee5a 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -9,11 +9,16 @@ 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; hasResources: boolean | null; + hasRuns: boolean | null; id: string | null; messageTableId: string | null; messageTableName: string | null; @@ -33,13 +38,16 @@ export interface AgentModule { 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; @@ -240,12 +248,16 @@ export interface CatalogModule { functionsTableId: string | null; functionsTableName: string | null; id: string | null; + imagesTableId: string | null; + imagesTableName: 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 +277,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; @@ -816,60 +846,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 +911,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 +969,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 +1026,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 +1086,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 +1170,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; @@ -1325,6 +1421,46 @@ 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; + schemaId: string | null; + scope: string | null; + search: unknown | null; + workflowsTableId: string | null; + workflowsTableName: string | null; +} export interface ResourceModule { apiName: string | null; databaseId: string | null; @@ -1342,6 +1478,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 +1536,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; @@ -1418,8 +1558,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; @@ -1482,11 +1624,9 @@ export interface SiteSurfaceModule { sitesTableName: 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 +1636,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; @@ -1547,11 +1688,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 +1700,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; diff --git a/sdk/constructive-react/src/remote/README.md b/sdk/constructive-react/src/remote/README.md new file mode 100644 index 0000000000..67c511fbe0 --- /dev/null +++ b/sdk/constructive-react/src/remote/README.md @@ -0,0 +1,44 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 3 +- **Custom queries:** 0 +- **Custom mutations:** 1 + +**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..17a0b36d0b --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/README.md @@ -0,0 +1,134 @@ +# 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 | +| `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. | + +## 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 + +### `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. + +- **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..1dace1412d --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutation-keys.ts @@ -0,0 +1,85 @@ +/** + * 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 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..ec0ea2d4fa --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/mutations/index.ts @@ -0,0 +1,15 @@ +/** + * 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 './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/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..b71ca52e1b --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/README.md @@ -0,0 +1,187 @@ +# 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.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. + +- **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..622e69f23f --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/input-types.ts @@ -0,0 +1,1621 @@ +/** + * 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 (NULL until enrollment completes) */ + 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 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 (NULL until enrollment completes) */ + 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 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 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..989afbcbd6 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * 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 { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + 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..4f056fcb12 --- /dev/null +++ b/sdk/constructive-react/src/remote/schema-types.ts @@ -0,0 +1,952 @@ +/** + * 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 (NULL until enrollment completes) */ + 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 (NULL until enrollment completes) */ + 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 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 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 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 { + /** Whether this table is a storage buckets table */ + isBucketsTable: boolean; + /** Whether this table is a storage files table */ + isFilesTable: boolean; +} +/** 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; +} +/** 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..f4fdefcb33 --- /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:** 5 + +**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..564a00d091 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/README.md @@ -0,0 +1,208 @@ +# 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 | 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. | +| `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` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (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..d032a8ae13 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutation-keys.ts @@ -0,0 +1,110 @@ +/** + * 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 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..077677efa6 --- /dev/null +++ b/sdk/constructive-react/src/storage/hooks/mutations/index.ts @@ -0,0 +1,22 @@ +/** + * 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 './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/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..c01b7b9f7c --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/README.md @@ -0,0 +1,293 @@ +# 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` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).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..8f092228bf --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/input-types.ts @@ -0,0 +1,2175 @@ +/** + * 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 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 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 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 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 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..d7ef722242 --- /dev/null +++ b/sdk/constructive-react/src/storage/orm/mutation/index.ts @@ -0,0 +1,205 @@ +/** + * 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, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * 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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * 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' + ), + }), + 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..e94113b93c --- /dev/null +++ b/sdk/constructive-react/src/storage/schema-types.ts @@ -0,0 +1,1376 @@ +/** + * 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 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 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 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 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 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 { + /** Whether this table is a storage buckets table */ + isBucketsTable: boolean; + /** Whether this table is a storage files table */ + isFilesTable: boolean; +} +/** 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; +} +/** 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..8c28c02e86 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,19 @@ 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 | | `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 +345,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 +513,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,51 +529,6 @@ 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. @@ -1117,28 +543,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 +565,6 @@ seedAppLimitDefaults |----------|------| | `input` | SeedAppLimitDefaultsInput (required) | -### `useSeedMeterDefaultsMutation` - -seedMeterDefaults - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SeedMeterDefaultsInput (required) | - ### `useSeedOrgLimitCapsDefaultsMutation` seedOrgLimitCapsDefaults @@ -1193,25 +586,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..c0c63ccafe 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,67 +700,6 @@ 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. @@ -1509,36 +718,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 +748,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 +777,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..330559a4a4 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 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 AppLimitDefaultPatch { + max?: string | null; + name?: string | null; + softMax?: string | null; +} +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. */ @@ -4314,198 +2183,16 @@ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** 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; + 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,144 +2804,57 @@ 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; @@ -5671,20 +2874,8 @@ export type ProvisionBucketPayloadSelect = { 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; -} -export type RevokeAchievementPayloadSelect = { - clientMutationId?: boolean; + provider?: boolean; + success?: boolean; }; export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; @@ -5702,14 +2893,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 +2909,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 +3354,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 +3719,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 +3839,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 +3935,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..176d63791b 100644 --- a/sdk/constructive-react/src/usage/orm/mutation/index.ts +++ b/sdk/constructive-react/src/usage/orm/mutation/index.ts @@ -7,44 +7,23 @@ 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. @@ -55,64 +34,20 @@ and lifecycle settings. 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 +77,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 +135,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 +193,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..51a517fc23 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. */ @@ -2250,403 +1133,41 @@ export interface IntervalFilter { 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; + /** 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; @@ -3768,129 +1797,38 @@ export interface UpdateOrgLimitCreditInput { clientMutationId?: string; id: string; /** 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; + orgLimitCreditPatch: OrgLimitCreditPatch; } -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,51 +2171,6 @@ 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; @@ -4581,12 +2185,6 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } -export interface RecomputeCapabilitiesPayload { - clientMutationId?: string | null; -} -export interface RevokeAchievementPayload { - clientMutationId?: string | null; -} export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; result?: boolean | null; @@ -4595,10 +2193,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 +2201,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 +2261,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 +2309,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 +2336,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 +2353,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 +2407,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 +2455,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[]; 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..63e984f273 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,1201 @@ 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 +"""Storage metadata for a table""" +type MetaStorage { + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! - """The `OrgProfileCapability` to be created by this mutation.""" - orgProfileCapability: OrgProfileCapabilityInput! + """Whether this table is a storage files table""" + isFilesTable: Boolean! } -"""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. - """ - clientMutationId: String - - """The `OrgProfileCapability` that was created 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 +"""Information about a database table""" +type MetaTable { + constraints: MetaConstraints! + fields: [MetaField!]! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + indexes: [MetaIndex!]! + inflection: MetaInflection! -"""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 + """Final GraphQL output type name""" + name: String! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + query: MetaQuery! - """The `OrgProfileDefinitionGrant` to be created by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrantInput! -} + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime + relations: MetaRelations! + schemaName: String! -"""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 + """Provisioning scope metadata (null if no @scope tag)""" + scope: MetaScope - """The `OrgProfileDefinitionGrant` that was created by this mutation.""" - orgProfileDefinitionGrant: OrgProfileDefinitionGrant + """Search metadata (null if no search configured)""" + search: MetaSearch - """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 + """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!]! } -"""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 - - """The `OrgProfileGrant` to be created by this mutation.""" - orgProfileGrant: OrgProfileGrantInput! +"""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 } -"""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 - - """The `OrgProfileGrant` that was created 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 +"""Information about a unique constraint""" +type MetaUniqueConstraint { + fields: [MetaField!]! + name: String! } -"""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 +""" +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 - """The `OrgProfile` to be created by this mutation.""" - orgProfile: OrgProfileInput! -} + """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 -"""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 + """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 - """The `OrgProfile` that was created by this mutation.""" - orgProfile: OrgProfile + """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 - """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 + """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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """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 -"""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 + """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 - """The `OrgProfileTemplate` to be created by this mutation.""" - orgProfileTemplate: OrgProfileTemplateInput! -} + """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 -"""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 + """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 - """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 + """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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """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 -"""A location in a connection that can be used for resuming pagination.""" -scalar Cursor + """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 -""" -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 + """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 -""" -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 `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 - """Equal to the specified value.""" - equalTo: Datetime + """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 - """Greater than the specified value.""" - greaterThan: Datetime + """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 - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + """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 - """Included in the specified list.""" - in: [Datetime!] + """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 - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """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 - """Less than the specified value.""" - lessThan: Datetime + """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 - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + """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 - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """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 - """Not equal to the specified value.""" - notEqualTo: Datetime + """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 - """Not included in the specified list.""" - notIn: [Datetime!] -} + """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 -"""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! -} + """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 output of our delete `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { - """The `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant + """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 - """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 + """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 - """ - The 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 `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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """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 -"""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! -} + """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 output of our delete `AppCapabilityDefaultCapability` mutation.""" -type DeleteAppCapabilityDefaultCapabilityPayload { - """ - The `AppCapabilityDefaultCapability` that was deleted by this mutation. - """ - appCapabilityDefaultCapability: AppCapabilityDefaultCapability + """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 - """ - An edge for our `AppCapabilityDefaultCapability`. May be used by Relay 1. - """ - appCapabilityDefaultCapabilityEdge( - """The method to use when ordering `AppCapabilityDefaultCapability`.""" - orderBy: [AppCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityDefaultCapabilityEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteAppCapabilityDefaultGrant` mutation.""" -input DeleteAppCapabilityDefaultGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppCapabilityDefaultGrant` mutation.""" -type DeleteAppCapabilityDefaultGrantPayload { - """The `AppCapabilityDefaultGrant` that was deleted by this mutation.""" - appCapabilityDefaultGrant: AppCapabilityDefaultGrant - - """An edge for our `AppCapabilityDefaultGrant`. May be used by Relay 1.""" - appCapabilityDefaultGrantEdge( - """The method to use when ordering `AppCapabilityDefaultGrant`.""" - orderBy: [AppCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppCapabilityDefaultGrantEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `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! -} - -"""The output of our delete `AppCapabilityDefault` mutation.""" -type DeleteAppCapabilityDefaultPayload { - """The `AppCapabilityDefault` that was deleted 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 `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! -} - -"""The output of our delete `AppCapability` mutation.""" -type DeleteAppCapabilityPayload { - """The `AppCapability` that was deleted 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 `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! -} - -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { - """The `AppClaimedInvite` that was deleted 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 - - """ - The 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 `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 delete `AppGrant` mutation.""" -type DeleteAppGrantPayload { - """The `AppGrant` that was deleted 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 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 `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 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 -} + """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 -""" -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 + """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 - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime + """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 - """Organization this grant applies to""" - entityId: UUID + """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 - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - id: UUID + """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 - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """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 - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: 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 - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """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 - """Job title or role name being assigned in this grant""" - positionTitle: String -} + """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 -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - createdAt: Datetime + """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 - """Organization this hierarchy edge belongs to""" - entityId: UUID! - id: UUID + """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 - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: 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 - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """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 - """Job title or role name for this position in the org chart""" - positionTitle: String - updatedAt: Datetime -} + """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 -"""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 -} + """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 -""" -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 + """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 - """Organization this hierarchy edge belongs to""" - entityId: UUID - id: UUID + """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 """ - User ID of the manager; NULL indicates a top-level position with no direct report + 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. """ - 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 +4626,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 +4675,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 +5014,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 +6008,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 +6689,495 @@ 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!] - - """Filter by the object’s `orgInvitesByProfileId` relation.""" - orgInvitesByProfileId: OrgProfileToManyOrgInviteFilter - - """`orgInvitesByProfileId` exist.""" - orgInvitesByProfileIdExist: Boolean - - """Filter by the object’s `orgMembershipProfilesByProfileId` relation.""" - orgMembershipProfilesByProfileId: OrgProfileToManyOrgMembershipProfileFilter + granted: BitString + id: UUID - """`orgMembershipProfilesByProfileId` exist.""" - orgMembershipProfilesByProfileIdExist: Boolean + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Filter by the object’s `orgMembershipsByProfileId` relation.""" - orgMembershipsByProfileId: OrgProfileToManyOrgMembershipFilter + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """`orgMembershipsByProfileId` exist.""" - orgMembershipsByProfileIdExist: Boolean + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """Filter by the object’s `orgProfileCapabilitiesByProfileId` relation.""" - orgProfileCapabilitiesByProfileId: OrgProfileToManyOrgProfileCapabilityFilter + """Whether this member has been banned from the entity""" + isBanned: Boolean - """`orgProfileCapabilitiesByProfileId` exist.""" - orgProfileCapabilitiesByProfileIdExist: Boolean + """Whether this membership is temporarily disabled""" + isDisabled: Boolean """ - Filter by the object’s `orgProfileDefinitionGrantsByProfileId` relation. + Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. """ - orgProfileDefinitionGrantsByProfileId: OrgProfileToManyOrgProfileDefinitionGrantFilter + isExternal: Boolean - """`orgProfileDefinitionGrantsByProfileId` exist.""" - orgProfileDefinitionGrantsByProfileIdExist: Boolean + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Filter by the object’s `orgProfileGrantsByProfileId` relation.""" - orgProfileGrantsByProfileId: OrgProfileToManyOrgProfileGrantFilter + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """`orgProfileGrantsByProfileId` exist.""" - orgProfileGrantsByProfileIdExist: Boolean +"""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! - """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 + """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 - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """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 -} + or: [OrgMembershipSettingFilter!] -""" -Represents an update to a `OrgProfileGrant`. Fields that are set will be updated. -""" -input OrgProfileGrantPatch { - createdAt: Datetime + """Filter by the object’s `populateMemberEmail` field.""" + populateMemberEmail: BooleanFilter - """The entity (org or group) scope for this profile grant""" - entityId: UUID - grantorId: UUID - id: UUID + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """True to assign the profile, false to revoke it""" - isGrant: Boolean + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { """ - References the membership that received or lost this profile; NULL if membership was deleted + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - membershipId: UUID + allowExternalMembers: 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 admins as child-entity admins """ - profileId: UUID - updatedAt: Datetime -} + createChildCascadeAdmins: 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 members (non-admin, non-owner) as child-entity members """ - capabilities: BitString - createdAt: Datetime + createChildCascadeMembers: Boolean - """Human-readable description of this profile and its intended use""" - description: String + """ + 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 """ - 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 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 + """ + 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 - 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 + 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 } """ -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.""" @@ -12344,54 +7262,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 +7293,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 +7315,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 +7344,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 +7373,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 +7402,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 +7431,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 +7460,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 +7489,14 @@ 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 """Reads and enables pagination through a set of `MembershipType`.""" membershipTypes( @@ -12891,54 +7556,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 +7618,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 +7889,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 +7975,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 +8324,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 +8383,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 +8400,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 +8415,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 +8438,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 +8453,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 +8476,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 +8491,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 +8514,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 +8529,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 +8712,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 +9054,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 +9130,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..8c88275ed7 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,5082 @@ 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 { + """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 `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 + + """ + 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 + + """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 + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter +} + +"""An input for mutations affecting `PlatformAgentThread`""" +input PlatformAgentThreadInput { + """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 + + """Parent thread that spawned this sub-conversation""" + parentThreadId: UUID + + """Optional FK to a shared prompt template""" + promptTemplateId: UUID + + """Current status of this thread""" + status: String - """Name of the translation table""" - translationTable: String! -} + """System prompt active for this thread""" + systemPrompt: String -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! + """User-defined labels for organizing and filtering threads""" + tags: [String] - """PostgreSQL column type (text, citext)""" - type: String! -} + """Human-readable conversation title""" + title: String + updatedAt: Datetime -"""Information about a database index""" -type MetaIndex { - columns: [String!]! - fields: [MetaField!] - isPrimary: Boolean! - isUnique: Boolean! - name: String! + """ + Who may read this thread: private (owner only) or entity (the scope's members) + """ + visibility: 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 +"""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 } -"""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 -} +""" +Represents an update to a `PlatformAgentThread`. Fields that are set will be updated. +""" +input PlatformAgentThreadPatch { + """Agent instance assigned to this thread""" + agentId: UUID -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - fields: [MetaField!]! - name: String! -} + """Timestamp when this record was archived, NULL if active""" + archivedAt: Datetime + createdAt: Datetime + id: UUID -"""Table query/mutation names""" -type MetaQuery { - all: String - create: String - delete: String - one: String - update: String -} + """Whether this record has been archived by the user""" + isArchived: Boolean -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! -} + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String -"""Reference to a related table""" -type MetaRefTable { - name: String! -} + """LLM model id this thread is bound to""" + model: String -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! -} + """User who owns this thread""" + ownerId: UUID -""" -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 + """Parent thread that spawned this sub-conversation""" + parentThreadId: UUID - """For 'ltree': values are dot-separated path strings.""" - dotPath: Boolean + """Optional FK to a shared prompt template""" + promptTemplateId: UUID - """For 'vector': element scalar (e.g. 'float').""" - elementType: String + """Current status of this thread""" + status: String - """For 'geojson': Point/LineString/Polygon/…, else null.""" - geometrySubtype: 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 """ - Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. + Who may read this thread: private (owner only) or entity (the scope's members) """ - kind: String! - - """For 'geojson': spatial reference id, else null.""" - srid: Int + visibility: String } -"""Root meta schema type""" -type MetaSchema { - tables: [MetaTable!]! -} +""" +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 -"""Provisioning scope metadata for a table""" -type MetaScope { - """SQL name of the entity table for entity scopes, else null""" - entityTable: String + """Filters to entities where no related entity matches.""" + none: PlatformAgentMessageFilter - """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers - """ - keyColumn: String + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentMessageFilter +} - """ - Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') - """ - scope: 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 - """Provenance of the scope metadata (always 'smartTag')""" - source: String! + """Filters to entities where no related entity matches.""" + none: PlatformAgentPlanFilter - """Coarse bucket: 'global', 'database', or 'entity'""" - tier: String! + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentPlanFilter } -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! +""" +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 - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! + """Filters to entities where no related entity matches.""" + none: PlatformAgentRunFilter - """Per-table search configuration""" - config: MetaSearchConfig + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentRunFilter +} - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! +""" +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 searchable column with its algorithm""" -type MetaSearchColumn { - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! +""" +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 + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentFilter } -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """Exponential decay factor per day""" - boostRecencyDecay: Float +""" +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 - """Field used for recency decay""" - boostRecencyField: String + """Filters to entities where no related entity matches.""" + none: PlatformAgentMessageFilter - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentMessageFilter +} + +""" +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 - """JSON-encoded per-adapter score weights""" - weights: String + """Filters to entities where no related entity matches.""" + none: PlatformAgentThreadFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformAgentThreadFilter } -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! - """Whether this table is a storage files table""" - isFilesTable: Boolean! + """ + Owner entity ID for entity-scoped bucket provisioning. + Omit for app-level (database-wide) storage. + """ + ownerId: UUID } -"""Information about a database table""" -type MetaTable { - constraints: MetaConstraints! - fields: [MetaField!]! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! +type ProvisionBucketPayload { + """The access type applied""" + accessType: String! - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n - indexes: [MetaIndex!]! - inflection: MetaInflection! + """The S3 bucket name that was provisioned""" + bucketName: String! - """Final GraphQL output type name""" - name: String! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - query: MetaQuery! + """The S3 endpoint (null for AWS S3 default)""" + endpoint: String - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime - relations: MetaRelations! - schemaName: String! + """Error message if provisioning failed""" + error: String - """Provisioning scope metadata (null if no @scope tag)""" - scope: MetaScope + """The storage provider used""" + provider: String! - """Search metadata (null if no search configured)""" - search: MetaSearch + """Whether provisioning succeeded""" + success: Boolean! +} - """Storage metadata (null if not a storage table)""" - storage: MetaStorage +"""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 - """PostgreSQL table name""" - tableName: String! - uniqueConstraints: [MetaUniqueConstraint!]! -} + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( + """Read all values in the set after (below) this cursor.""" + after: 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 -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Information about a unique constraint""" -type MetaUniqueConstraint { - fields: [MetaField!]! - name: String! -} + """Only read the first `n` values of the set.""" + first: 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. - """ - input: CreateAgentInput! - ): CreateAgentPayload + """Only read the last `n` values of the set.""" + last: 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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateAgentMessageInput! - ): CreateAgentMessagePayload + offset: Int - """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 + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateAgentPlanInput! - ): CreateAgentPlanPayload + where: AgentMessageFilter + ): AgentMessageConnection - """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 + """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 `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 + """Read all values in the set before (above) this cursor.""" + before: Cursor - """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 first `n` values of the set.""" + first: Int + + """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 + + """The method to use when ordering `AgentPersona`.""" + orderBy: [AgentPersonaOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateAgentThreadInput! - ): CreateAgentThreadPayload + 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 `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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: DeleteAgentInput! - ): DeleteAgentPayload + offset: Int + + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: DeleteAgentMessageInput! - ): DeleteAgentMessagePayload + 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 `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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: DeleteAgentPersonaInput! - ): DeleteAgentPersonaPayload + offset: Int + + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: DeleteAgentPlanInput! - ): DeleteAgentPlanPayload + 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 - """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 + """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] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformAgentPersonaFilter + ): PlatformAgentPersonaConnection -type ProvisionBucketPayload { - """The access type applied""" - accessType: 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 bucket name that was provisioned""" - bucketName: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The S3 endpoint (null for AWS S3 default)""" - endpoint: String + """Only read the first `n` values of the set.""" + first: Int - """Error message if provisioning failed""" - error: String + """Only read the last `n` values of the set.""" + last: Int - """The storage provider used""" - 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 - """Whether provisioning succeeded""" - success: Boolean! -} + """The method to use when ordering `PlatformAgentPlan`.""" + orderBy: [PlatformAgentPlanOrderBy!] = [PRIMARY_KEY_ASC] -"""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 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 `AgentMessage`.""" - agentMessages( + """Reads and enables pagination through a set of `PlatformAgentPrompt`.""" + platformAgentPrompts( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -4026,17 +9581,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 +9612,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 +9641,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 +9672,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 +9701,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 +9730,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 +9759,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 +9788,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 +10118,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 +10180,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..5b67d58b9e 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 """ @@ -867,337 +892,93 @@ input ApiToManyCorsSettingFilter { 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! - - """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope - """ - componentApiId: UUID - - """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope - """ - componentDomainId: UUID - - """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope - """ - componentInstallationId: UUID - - """ - Typed catalog site row of the component surface; must be owner-matched or visible cross-scope - """ - componentSiteId: UUID - - """ - Which kind of catalog row this component binds (api, site, domain, installation) - """ - 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 { +"""All input for the `applyRls` mutation.""" +input ApplyRlsInput { """ - A list of edges which contains the `AppComponent` 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: [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 + clientMutationId: String + fieldIds: [UUID] + grants: JSON + name: String + permissive: Boolean + policyType: String + tableId: UUID + vars: JSON } -"""An input for mutations affecting `AppComponent`""" -input AppComponentInput { - """App this component belongs to""" - appId: UUID! - - """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope - """ - componentApiId: UUID - - """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope - """ - componentDomainId: UUID - - """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope - """ - componentInstallationId: UUID - +"""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 - - """Component-specific configuration inside this app""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID - 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 + query: Query } -""" -Represents an update to a `AppComponent`. Fields that are set will be updated. -""" -input AppComponentPatch { - """App this component belongs to""" - appId: UUID - - """ - Typed catalog api row of the component surface; must be owner-matched or visible cross-scope - """ - componentApiId: UUID - - """ - Typed catalog domain row of the component surface; must be owner-matched or visible cross-scope - """ - componentDomainId: UUID - - """ - Typed catalog resource installation row of the component release; must be owner-matched or visible cross-scope - """ - componentInstallationId: UUID - - """ - Typed catalog site row of the component surface; must be owner-matched or visible cross-scope - """ - componentSiteId: UUID - - """ - Which kind of catalog row this component binds (api, site, domain, installation) - """ - componentType: String - - """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 +986,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!] + or: [AstMigrationFilter!] - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `payload` field.""" + payload: JSONFilter - """Filter by the object’s `title` field.""" - title: StringFilter + """Filter by the object’s `requires` field.""" + requires: StringListFilter - """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 + """Filter by the object’s `revert` field.""" + revert: JSONFilter - """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 + """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 +1139,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 +1807,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,41 +2684,6 @@ type CreateHostnameBindingPayload { query: Query } -"""All input for the create `HttpRoute` mutation.""" -input CreateHttpRouteInput { - """ - An arbitrary 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 output of our create `HttpRoute` mutation.""" -type CreateHttpRoutePayload { - """ - The exact 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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `Index` mutation.""" input CreateIndexInput { """ @@ -4147,6 +3666,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 { """ @@ -7773,72 +7327,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,39 +8154,6 @@ type DeleteHostnameBindingPayload { query: Query } -"""All input for the `deleteHttpRoute` mutation.""" -input DeleteHttpRouteInput { - """ - An arbitrary string value 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 `HttpRoute` mutation.""" -type DeleteHttpRoutePayload { - """ - The exact 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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deleteIndex` mutation.""" input DeleteIndexInput { """ @@ -9629,6 +9084,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 { """ @@ -10527,6 +10015,7 @@ type Derive { database: Database databaseId: UUID! id: UUID! + includeGrants: Boolean! includeMutations: Boolean! kind: String! policyPrefix: String! @@ -10586,6 +10075,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 +10114,7 @@ input DeriveInput { createdAt: Datetime databaseId: UUID id: UUID + includeGrants: Boolean includeMutations: Boolean kind: String! policyPrefix: String @@ -10638,6 +10131,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 +10157,7 @@ input DerivePatch { createdAt: Datetime databaseId: UUID id: UUID + includeGrants: Boolean includeMutations: Boolean kind: String policyPrefix: String @@ -10677,6 +10173,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 +10238,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 +10294,7 @@ type Domain { """Certificate lifecycle state for this hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String! @@ -11096,6 +10565,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 +10586,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 +10625,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 +10640,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 +10674,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 +10689,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 +10716,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 +10731,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 +10765,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 +10802,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.’ """ @@ -14879,233 +14342,6 @@ 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 -} - -"""A connection to a list of `HttpRoute` values.""" -type HttpRouteConnection { - """ - A list of edges which contains the `HttpRoute` and cursor to aid in pagination. - """ - edges: [HttpRouteEdge]! - - """A list of `HttpRoute` objects.""" - nodes: [HttpRoute]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `HttpRoute` you could get from the connection.""" - totalCount: Int! -} - -"""A `HttpRoute` edge in the connection.""" -type HttpRouteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `HttpRoute` at the end of the edge.""" - node: HttpRoute -} - -""" -A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ -""" -input HttpRouteFilter { - """Checks for all expressions in this list.""" - and: [HttpRouteFilter!] - - """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 -} - -"""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 -} - -"""Methods to use when ordering `HttpRoute`.""" -enum HttpRouteOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DOMAIN_ID_ASC - DOMAIN_ID_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METHOD_ASC - METHOD_DESC - NATURAL - PATH_ASC - PATH_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - TARGET_ID_ASC - TARGET_ID_DESC - TARGET_KIND_ASC - TARGET_KIND_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC -} - -""" -Represents an update to a `HttpRoute`. 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 -} - type Index { accessMethod: String! category: ObjectCategory! @@ -15431,6 +14667,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 +14745,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 +14799,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 +14841,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 +14862,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 +14882,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 +14901,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 +14920,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 +14941,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 +14961,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 @@ -16057,30 +15309,24 @@ type MetaUniqueConstraint { The root mutation type which contains root level fields which mutate data. """ type Mutation { - applyRls( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ApplyRlsInput! - ): ApplyRlsPayload - appsInstallApp( + acceptDatabaseTransfer( """ 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 +15352,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,14 +15552,6 @@ type Mutation { input: CreateHostnameBindingInput! ): CreateHostnameBindingPayload - """Creates a single `HttpRoute`.""" - createHttpRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateHttpRouteInput! - ): CreateHttpRoutePayload - """Creates a single `Index`.""" createIndex( """ @@ -16554,6 +15776,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( """ @@ -16794,22 +16024,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,14 +16224,6 @@ type Mutation { input: DeleteHostnameBindingInput! ): DeleteHostnameBindingPayload - """Deletes a single `HttpRoute` using a unique key.""" - deleteHttpRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteHttpRouteInput! - ): DeleteHttpRoutePayload - """Deletes a single `Index` using a unique key.""" deleteIndex( """ @@ -17242,6 +16448,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( """ @@ -17488,6 +16702,12 @@ type Mutation { """ input: ProvisionBucketInput! ): ProvisionBucketPayload + rejectDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RejectDatabaseTransferInput! + ): RejectDatabaseTransferPayload """ Requests a database and returns a ticket (database_provision_module row) to poll. @@ -17541,22 +16761,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,14 +16967,6 @@ type Mutation { input: UpdateHostnameBindingInput! ): UpdateHostnameBindingPayload - """Updates a single `HttpRoute` using a unique key and a patch.""" - updateHttpRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateHttpRouteInput! - ): UpdateHttpRoutePayload - """Updates a single `Index` using a unique key and a patch.""" updateIndex( """ @@ -18015,6 +17211,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( """ @@ -19705,6 +18909,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 +19000,7 @@ type PlatformDomain { """Certificate lifecycle state for this hostname""" tlsStatus: String! updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String! @@ -20057,6 +19263,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 +19316,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 +19331,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 +19362,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 +19377,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 +19402,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 +19417,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 +19448,7 @@ input PlatformDomainPatch { """Certificate lifecycle state for this hostname""" tlsStatus: String updatedAt: Datetime + updatedByPrincipal: UUID """Ownership verification state of this hostname""" verificationStatus: String @@ -21369,6 +20589,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 +20666,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 +20722,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 +20765,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 +20786,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 +20803,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 +20822,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 +20839,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 +20860,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 +20877,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 @@ -21921,6 +21157,11 @@ type PlatformRoute { """ targetFunctionId: UUID + """ + Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend + """ + targetRedirectId: UUID + """ Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope """ @@ -21947,6 +21188,7 @@ type PlatformSite { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String @@ -22165,6 +21407,7 @@ type PlatformSite { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """ @@ -22778,6 +22021,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 @@ -22864,6 +22110,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`""" @@ -22878,6 +22127,7 @@ input PlatformSiteInput { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String @@ -22907,6 +22157,7 @@ input PlatformSiteInput { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """SEO and social sharing metadata for a site surface""" @@ -23351,6 +22602,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 +22625,8 @@ enum PlatformSiteOrderBy { TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -23388,6 +22643,7 @@ input PlatformSitePatch { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Human-readable site description""" description: String @@ -23417,6 +22673,7 @@ input PlatformSitePatch { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """Theme (colors, fonts, design tokens) for a site surface""" @@ -23906,6 +23163,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 +23239,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 +23321,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 +23353,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 +23399,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 @@ -24737,39 +24014,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 +24036,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( @@ -25524,35 +24772,6 @@ type Query { where: HostnameBindingFilter ): HostnameBindingConnection - """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 - """Reads and enables pagination through a set of `Index`.""" indices( """Read all values in the set after (below) this cursor.""" @@ -26370,8 +25589,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 @@ -26781,6 +26028,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.""" @@ -27161,6 +26437,216 @@ 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! + + """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 `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 +} + +"""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 { """ @@ -27191,16 +26677,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 @@ -27598,6 +27074,11 @@ type Route { """ targetFunctionId: UUID + """ + Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend + """ + targetRedirectId: UUID + """ Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope """ @@ -27639,6 +27120,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 @@ -27715,6 +27199,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 @@ -27752,6 +27239,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 @@ -27785,6 +27275,8 @@ enum RouteBindingOrderBy { 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 @@ -27822,6 +27314,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 @@ -27910,6 +27405,9 @@ input RouteFilter { """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 @@ -27965,99 +27463,111 @@ input RouteInput { targetFunctionId: UUID """ - Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend + """ + targetRedirectId: UUID + + """ + Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope + """ + targetServiceId: UUID + + """ + Site catalog row this route targets; must be owner-matched or visible cross-scope + """ + targetSiteId: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `Route`.""" +enum RouteOrderBy { + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DOMAIN_ID_ASC + DOMAIN_ID_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + METHOD_ASC + METHOD_DESC + NATURAL + PATH_ASC + PATH_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + TARGET_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 + TARGET_SITE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `Route`. Fields that are set will be updated. +""" +input RoutePatch { + """ + Route metadata; target configuration is read live from the typed catalog, never copied here + """ + config: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Domain whose hostname this route serves""" + domainId: UUID + id: UUID + + """Inactive routes are excluded from resolution""" + isActive: Boolean + + """Uppercase HTTP method this route matches; NULL matches any method""" + method: String + + """ + Path prefix this route matches; must begin with / and carry no trailing slash + """ + path: String + + """Higher priority wins between otherwise-equal matches""" + priority: Int + + """ + Api catalog row this route targets; must be owner-matched or visible cross-scope + """ + targetApiId: UUID + + """ + Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope + """ + targetBucketId: UUID + + """ + Function catalog row this route targets; must be owner-matched or visible cross-scope + """ + targetFunctionId: UUID + + """ + Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend """ - targetServiceId: UUID - - """ - Site catalog row this route targets; must be owner-matched or visible cross-scope - """ - targetSiteId: UUID - updatedAt: Datetime -} - -"""Methods to use when ordering `Route`.""" -enum RouteOrderBy { - CONFIG_ASC - CONFIG_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DOMAIN_ID_ASC - DOMAIN_ID_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METHOD_ASC - METHOD_DESC - NATURAL - PATH_ASC - PATH_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - TARGET_API_ID_ASC - TARGET_API_ID_DESC - TARGET_BUCKET_ID_ASC - TARGET_BUCKET_ID_DESC - TARGET_FUNCTION_ID_ASC - TARGET_FUNCTION_ID_DESC - TARGET_SERVICE_ID_ASC - TARGET_SERVICE_ID_DESC - TARGET_SITE_ID_ASC - TARGET_SITE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `Route`. Fields that are set will be updated. -""" -input RoutePatch { - """ - Route metadata; target configuration is read live from the typed catalog, never copied here - """ - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Domain whose hostname this route serves""" - domainId: UUID - id: UUID - - """Inactive routes are excluded from resolution""" - isActive: Boolean - - """Uppercase HTTP method this route matches; NULL matches any method""" - method: String - - """ - Path prefix this route matches; must begin with / and carry no trailing slash - """ - path: String - - """Higher priority wins between otherwise-equal matches""" - priority: Int - - """ - Api catalog row this route targets; must be owner-matched or visible cross-scope - """ - targetApiId: UUID - - """ - Bucket catalog row this route targets; must be a public bucket that is owner-matched or visible cross-scope - """ - targetBucketId: UUID - - """ - Function catalog row this route targets; must be owner-matched or visible cross-scope - """ - targetFunctionId: UUID + targetRedirectId: UUID """ Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope @@ -28889,6 +28399,7 @@ type Site { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29104,6 +28615,7 @@ type Site { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """ @@ -29747,6 +29259,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 @@ -29836,6 +29351,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`""" @@ -29850,6 +29368,7 @@ input SiteInput { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29882,6 +29401,7 @@ input SiteInput { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """SEO and social sharing metadata for a site surface""" @@ -30346,6 +29866,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 +29891,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.""" @@ -30383,6 +29907,7 @@ input SitePatch { """ bucketId: UUID createdAt: Datetime + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -30415,6 +29940,7 @@ input SitePatch { """Human-readable site title""" title: String updatedAt: Datetime + updatedByPrincipal: UUID } """Theme (colors, fonts, design tokens) for a site surface""" @@ -31118,6 +30644,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.’ """ @@ -33788,82 +33437,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,44 +34389,6 @@ type UpdateHostnameBindingPayload { query: Query } -"""All input for the `updateHttpRoute` mutation.""" -input UpdateHttpRouteInput { - """ - An arbitrary 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 `HttpRoute` being updated. - """ - httpRoutePatch: HttpRoutePatch! - id: UUID! -} - -"""The output of our update `HttpRoute` mutation.""" -type UpdateHttpRoutePayload { - """ - The exact 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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateIndex` mutation.""" input UpdateIndexInput { """ @@ -35924,6 +35459,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 { """ diff --git a/sdk/constructive-sdk/schemas/cluster.graphql b/sdk/constructive-sdk/schemas/cluster.graphql new file mode 100644 index 0000000000..a643b5f292 --- /dev/null +++ b/sdk/constructive-sdk/schemas/cluster.graphql @@ -0,0 +1,368 @@ +"""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 { + """ + 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 +} + +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 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! +} + +"""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..24e445dfd3 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -293,6 +293,653 @@ input BooleanFilter { notIn: [Boolean!] } +""" +One run of a repository workflow: its commit, its job, and what it produced +""" +type Build { + """Authenticated actor this build is attributed to""" + actorId: UUID + + """Reads a single `Image` that is related to this `Build`.""" + catalogImage: Image + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Reads a single `RepositoryEvent` that is related to this `Build`.""" + event: RepositoryEvent + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID! + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """Build detail (step results, durations, failure reason)""" + metadata: JSON + + """Reads a single `Proposal` that is related to this `Build`.""" + proposal: Proposal + + """Proposal this build checks (NULL for builds not tied to a proposal)""" + proposalId: UUID + + """Ref this build built""" + ref: String + + """Reads a single `Repository` that is related to this `Build`.""" + repository: Repository + + """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 `RepositoryWorkflow` that is related to this `Build`.""" + workflow: RepositoryWorkflow + + """Workflow whose firing produced this build (NULL for a manual build)""" + workflowId: UUID +} + +"""A connection to a list of `Build` values.""" +type BuildConnection { + """ + A list of edges which contains the `Build` and cursor to aid in pagination. + """ + edges: [BuildEdge]! + + """A list of `Build` objects.""" + nodes: [Build]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Build` you could get from the connection.""" + totalCount: Int! +} + +"""A `Build` edge in the connection.""" +type BuildEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Build` at the end of the edge.""" + node: Build +} + +""" +A filter to be used against `Build` object types. All fields are combined with a logical ‘and.’ +""" +input BuildFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [BuildFilter!] + + """Filter by the object’s `catalogImage` relation.""" + catalogImage: ImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 `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 `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `logs` field.""" + logs: ConstructiveInternalTypeUploadFilter + + """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`""" +input BuildInput { + """Authenticated actor this build is attributed to""" + actorId: UUID + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """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 `Build`.""" +enum BuildOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_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 + EVENT_ID_ASC + EVENT_ID_DESC + FINISHED_AT_ASC + FINISHED_AT_DESC + ID_ASC + ID_DESC + JOB_ID_ASC + JOB_ID_DESC + LOGS_ASC + LOGS_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 `Build`. Fields that are set will be updated. +""" +input BuildPatch { + """Authenticated actor this build is attributed to""" + actorId: UUID + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Event that triggered this build (NULL for a manual build)""" + eventId: UUID + + """When the build reached a terminal status""" + finishedAt: Datetime + id: UUID + + """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 + + """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 BuildStep { + """Build these results belong to""" + buildId: UUID! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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 `BuildStep` values.""" +type BuildStepConnection { + """ + A list of edges which contains the `BuildStep` and cursor to aid in pagination. + """ + edges: [BuildStepEdge]! + + """A list of `BuildStep` objects.""" + nodes: [BuildStep]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `BuildStep` you could get from the connection.""" + totalCount: Int! +} + +"""A `BuildStep` edge in the connection.""" +type BuildStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BuildStep` at the end of the edge.""" + node: BuildStep +} + +""" +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!] + + """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`""" +input BuildStepInput { + """Build these results belong to""" + buildId: UUID! + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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 `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 +} + +""" +Represents an update to a `BuildStep`. Fields that are set will be updated. +""" +input BuildStepPatch { + """Build these results belong to""" + buildId: UUID + + """Acting principal (agent, API key, or user) who created this record""" + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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 +} + scalar ConstructiveInternalTypeImage """ @@ -352,6 +999,128 @@ input ConstructiveInternalTypeImageFilter { notIn: [ConstructiveInternalTypeImage!] } +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!] +} + +""" +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 + + """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] +} + """ Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store """ @@ -623,104 +1392,104 @@ type CopyGraphPayload { result: UUID } -"""All input for the create `ContentPreset` mutation.""" -input CreateContentPresetInput { +"""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 `ContentPreset` to be created by this mutation.""" - contentPreset: ContentPresetInput! } -"""The output of our create `ContentPreset` mutation.""" -type CreateContentPresetPayload { +"""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 `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 { +"""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 `DbPreset` to be created by this mutation.""" - dbPreset: DbPresetInput! } -"""The output of our create `DbPreset` mutation.""" -type CreateDbPresetPayload { +"""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 `DbPreset` that was created 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 - """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the create `FunctionApiBinding` mutation.""" -input CreateFunctionApiBindingInput { +"""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 `FunctionApiBinding` to be created by this mutation.""" - functionApiBinding: FunctionApiBindingInput! + """The `ContentPreset` to be created by this mutation.""" + contentPreset: ContentPresetInput! } -"""The output of our create `FunctionApiBinding` mutation.""" -type CreateFunctionApiBindingPayload { +"""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 `FunctionApiBinding` that was created by this mutation.""" - functionApiBinding: FunctionApiBinding + """The `ContentPreset` that was created by this mutation.""" + contentPreset: ContentPreset - """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 `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. @@ -728,43 +1497,386 @@ type CreateFunctionApiBindingPayload { query: Query } -"""All input for the create `FunctionCapabilityBinding` mutation.""" -input CreateFunctionCapabilityBindingInput { +"""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 `FunctionCapabilityBinding` to be created by this mutation.""" - functionCapabilityBinding: FunctionCapabilityBindingInput! + """The `DatabaseFunctionGraphExecution` to be created by this mutation.""" + databaseFunctionGraphExecution: DatabaseFunctionGraphExecutionInput! } -"""The output of our create `FunctionCapabilityBinding` mutation.""" -type CreateFunctionCapabilityBindingPayload { +""" +All input for the create `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +input CreateDatabaseFunctionGraphExecutionNodeStateInput { """ - 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 `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. + The `DatabaseFunctionGraphExecutionNodeState` to be created by this mutation. """ - query: Query + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeStateInput! } -"""All input for the create `FunctionDefinition` mutation.""" -input CreateFunctionDefinitionInput { +""" +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 `DatabaseFunctionGraphExecutionNodeState` that was created 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 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 `DatabaseFunctionGraphExecutionOutput` to be created by this mutation. + """ + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutputInput! +} + +""" +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 `DatabaseFunctionGraphExecutionOutput` that was created 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 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 `DatabaseFunctionGraphExecution` that was created 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 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 `DatabaseGraphCommit` to be created by this mutation.""" + databaseGraphCommit: DatabaseGraphCommitInput! +} + +"""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 `DatabaseGraphCommit` that was created 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 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 `DatabaseGraphObject` to be created by this mutation.""" + databaseGraphObject: DatabaseGraphObjectInput! +} + +"""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 `DatabaseGraphObject` that was created 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 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 `DatabaseGraphRef` to be created by this mutation.""" + databaseGraphRef: DatabaseGraphRefInput! +} + +"""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 `DatabaseGraphRef` that was created 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 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 `DatabaseGraphStore` to be created by this mutation.""" + databaseGraphStore: DatabaseGraphStoreInput! +} + +"""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 `DatabaseGraphStore` that was created 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 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 `DbPreset` to be created by this mutation.""" + dbPreset: DbPresetInput! +} + +"""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 `DbPreset` that was created 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""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 `FunctionApiBinding` to be created by this mutation.""" + functionApiBinding: FunctionApiBindingInput! +} + +"""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 +} + +"""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 `FunctionCapabilityBinding` to be created by this mutation.""" + functionCapabilityBinding: FunctionCapabilityBindingInput! +} + +"""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 +} + +"""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. @@ -1254,6 +2366,76 @@ type CreateFunctionInvocationPayload { query: Query } +"""All input for the create `ImageGrant` mutation.""" +input CreateImageGrantInput { + """ + An arbitrary 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 `ImageGrant` to be created by this mutation.""" + imageGrant: ImageGrantInput! +} + +"""The output of our create `ImageGrant` mutation.""" +type CreateImageGrantPayload { + """ + The exact 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 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `Image` mutation.""" +input CreateImageInput { + """ + An arbitrary 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 `Image` to be created by this mutation.""" + image: ImageInput! +} + +"""The output of our create `Image` mutation.""" +type CreateImagePayload { + """ + The exact 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 created 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 create `InfraCommit` mutation.""" input CreateInfraCommitInput { """ @@ -1499,6 +2681,76 @@ type CreateNamespacePayload { query: Query } +"""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 + + """The `PlatformBuild` to be created by this mutation.""" + platformBuild: PlatformBuildInput! +} + +"""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 `PlatformBuild` that was created 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 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 + + """The `PlatformBuildStep` to be created by this mutation.""" + platformBuildStep: PlatformBuildStepInput! +} + +"""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 `PlatformBuildStep` that was created 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 create `PlatformFunctionApiBinding` mutation.""" input CreatePlatformFunctionApiBindingInput { """ @@ -1797,6 +3049,76 @@ type CreatePlatformFunctionInvocationPayload { query: Query } +"""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 + + """The `PlatformImageGrant` to be created by this mutation.""" + platformImageGrant: PlatformImageGrantInput! +} + +"""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 `PlatformImageGrant` that was created 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 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 + + """The `PlatformImage` to be created by this mutation.""" + platformImage: PlatformImageInput! +} + +"""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 `PlatformImage` that was created 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 create `PlatformInfraCommit` mutation.""" input CreatePlatformInfraCommitInput { """ @@ -1937,6 +3259,76 @@ type CreatePlatformInfraStorePayload { query: Query } +"""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 + + """The `PlatformK8sResourceKind` to be created by this mutation.""" + platformK8sResourceKind: PlatformK8sResourceKindInput! +} + +"""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 `PlatformK8sResourceKind` that was created 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 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 + + """The `PlatformK8sSpecRule` to be created by this mutation.""" + platformK8sSpecRule: PlatformK8sSpecRuleInput! +} + +"""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 `PlatformK8sSpecRule` that was created 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 create `PlatformNamespaceEvent` mutation.""" input CreatePlatformNamespaceEventInput { """ @@ -2007,6 +3399,426 @@ type CreatePlatformNamespacePayload { query: Query } +"""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 + + """The `PlatformProposalComment` to be created by this mutation.""" + platformProposalComment: PlatformProposalCommentInput! +} + +"""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 `PlatformProposalComment` that was created 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 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 + + """The `PlatformProposalFileView` to be created by this mutation.""" + platformProposalFileView: PlatformProposalFileViewInput! +} + +"""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 `PlatformProposalFileView` that was created 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 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 + + """The `PlatformProposal` to be created by this mutation.""" + platformProposal: PlatformProposalInput! +} + +"""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 `PlatformProposal` that was created 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 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 + + """The `PlatformProposalReaction` to be created by this mutation.""" + platformProposalReaction: PlatformProposalReactionInput! +} + +"""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 `PlatformProposalReaction` that was created 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 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 + + """The `PlatformProposalReview` to be created by this mutation.""" + platformProposalReview: PlatformProposalReviewInput! +} + +"""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 `PlatformProposalReview` that was created 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 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 + + """The `PlatformProposalsChunk` to be created by this mutation.""" + platformProposalsChunk: PlatformProposalsChunkInput! +} + +"""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 `PlatformProposalsChunk` that was created 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 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 + + """The `PlatformRegistryBinding` to be created by this mutation.""" + platformRegistryBinding: PlatformRegistryBindingInput! +} + +"""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 `PlatformRegistryBinding` that was created 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 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 + + """The `PlatformRegistryGrant` to be created by this mutation.""" + platformRegistryGrant: PlatformRegistryGrantInput! +} + +"""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 `PlatformRegistryGrant` that was created 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 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 + + """The `PlatformRegistry` to be created by this mutation.""" + platformRegistry: PlatformRegistryInput! +} + +"""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 `PlatformRegistry` that was created 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 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 + + """The `PlatformRepositoryEvent` to be created by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEventInput! +} + +"""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 `PlatformRepositoryEvent` that was created 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 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 + + """The `PlatformRepository` to be created by this mutation.""" + platformRepository: PlatformRepositoryInput! +} + +"""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 `PlatformRepository` that was created 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 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 + + """The `PlatformRepositoryWorkflow` to be created by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflowInput! +} + +"""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 `PlatformRepositoryWorkflow` that was created 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 create `PlatformResourceDefinition` mutation.""" input CreatePlatformResourceDefinitionInput { """ @@ -2326,6 +4138,426 @@ type CreatePlatformWebhookEventPayload { query: Query } +"""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 + + """The `ProposalComment` to be created by this mutation.""" + proposalComment: ProposalCommentInput! +} + +"""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 +} + +"""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 + + """The `ProposalFileView` to be created by this mutation.""" + proposalFileView: ProposalFileViewInput! +} + +"""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 +} + +"""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 + + """The `Proposal` to be created by this mutation.""" + proposal: ProposalInput! +} + +"""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 + + """The `ProposalReaction` to be created by this mutation.""" + proposalReaction: ProposalReactionInput! +} + +"""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 +} + +"""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 + + """The `ProposalReview` to be created by this mutation.""" + proposalReview: ProposalReviewInput! +} + +"""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 +} + +"""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 + + """The `ProposalsChunk` to be created by this mutation.""" + proposalsChunk: ProposalsChunkInput! +} + +"""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 +} + +"""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 + + """The `RegistryBinding` to be created by this mutation.""" + registryBinding: RegistryBindingInput! +} + +"""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. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `RegistryBinding` that was created 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 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 + + """The `RegistryGrant` to be created by this mutation.""" + registryGrant: RegistryGrantInput! +} + +"""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. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `RegistryGrant` that was created 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 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 + + """The `Registry` to be created by this mutation.""" + registry: RegistryInput! +} + +"""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. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `Registry` that was created 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 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 + + """The `RepositoryEvent` to be created by this mutation.""" + repositoryEvent: RepositoryEventInput! +} + +"""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. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `RepositoryEvent` that was created 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 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 + + """The `Repository` to be created by this mutation.""" + repository: RepositoryInput! +} + +"""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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `Repository` that was created 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 create `RepositoryWorkflow` mutation.""" +input CreateRepositoryWorkflowInput { + """ + An arbitrary 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 `RepositoryWorkflow` to be created by this mutation.""" + repositoryWorkflow: RepositoryWorkflowInput! +} + +"""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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `RepositoryWorkflow` that was created 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 create `ResourceDefinition` mutation.""" input CreateResourceDefinitionInput { """ @@ -2644,2186 +4876,1751 @@ type CreateWebhookEventPayload { """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 { +"""All input for the `databaseAddEdgeAndSave` mutation.""" +input DatabaseAddEdgeAndSaveInput { """ - 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: Date - - """Equal to the specified value.""" - equalTo: Date - - """Greater than the specified value.""" - greaterThan: Date - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Date - - """Included in the specified list.""" - in: [Date!] + clientMutationId: String + dstNode: String + dstPort: String + graphId: UUID + message: String + srcNode: String + srcPort: String +} +"""The output of our `databaseAddEdgeAndSave` mutation.""" +type DatabaseAddEdgeAndSavePayload { """ - 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: Date - - """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 + clientMutationId: String - """Not included in the specified list.""" - notIn: [Date!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID } -""" -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 `databaseAddEdge` mutation.""" +input DatabaseAddEdgeInput { """ - 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 - - """Included in the specified list.""" - in: [Datetime!] + clientMutationId: String + context: String + databaseId: UUID + dstNode: String + dstPort: String + graphName: String + rootHash: UUID + srcNode: String + srcPort: String +} +"""The output of our `databaseAddEdge` mutation.""" +type DatabaseAddEdgePayload { """ - 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 - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime - - """Not equal to the specified value.""" - notEqualTo: Datetime + clientMutationId: String - """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 + result: UUID } -""" -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 `databaseAddNodeAndSave` mutation.""" +input DatabaseAddNodeAndSaveInput { """ - 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 - - """Timestamp of preset creation""" - createdAt: Datetime! + clientMutationId: String + graphId: UUID + message: String + meta: JSON + nodeName: String + nodeType: String + props: JSON +} +"""The output of our `databaseAddNodeAndSave` mutation.""" +type DatabaseAddNodeAndSavePayload { """ - 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 - - """Unique preset identifier""" - id: UUID! - - """Human-readable preset name""" - label: String + clientMutationId: String """ - 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 + result: UUID +} +"""All input for the `databaseAddNode` mutation.""" +input DatabaseAddNodeInput { """ - 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 + context: String + databaseId: UUID + graphName: String + meta: JSON + nodeName: String + nodeType: String + props: JSON + rootHash: UUID +} +"""The output of our `databaseAddNode` mutation.""" +type DatabaseAddNodePayload { """ - 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! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID } -"""A connection to a list of `DbPreset` values.""" -type DbPresetConnection { +"""All input for the `databaseCopyGraph` mutation.""" +input DatabaseCopyGraphInput { """ - A list of edges which contains the `DbPreset` 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: [DbPresetEdge]! + clientMutationId: String + databaseId: UUID + graphId: UUID + name: String +} - """A list of `DbPreset` objects.""" - nodes: [DbPreset]! +"""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 - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} - """The count of *all* `DbPreset` you could get from the connection.""" - totalCount: Int! +"""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 } -"""A `DbPreset` edge in the connection.""" -type DbPresetEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""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 - """The `DbPreset` at the end of the edge.""" - node: DbPreset + """ + 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 `DbPreset` object types. All fields are combined with a logical ‘and.’ +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store """ -input DbPresetFilter { - """Filter by the object’s `active` field.""" - active: BooleanFilter +type DatabaseFunctionGraph { + """Evaluator/runtime context (function, js, sql, system)""" + context: String! - """Checks for all expressions in this list.""" - and: [DbPresetFilter!] + """Timestamp of graph creation""" + createdAt: Datetime! - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Actor who created this graph""" + createdBy: UUID - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Reads and enables pagination through a set of `DatabaseFunctionGraphExecution`. + """ + databaseFunctionGraphExecutionsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `definition` field.""" - definition: JSONFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `description` field.""" - description: 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 `label` field.""" - label: 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 `modulesHash` field.""" - modulesHash: UUIDFilter + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] - """Negates the expression.""" - not: DbPresetFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseFunctionGraphExecutionFilter + ): DatabaseFunctionGraphExecutionConnection! - """Checks for any expressions in this list.""" - or: [DbPresetFilter!] + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Filter by the object’s `slug` field.""" - slug: StringFilter + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Human-readable description of the graph""" + description: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitionsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""An input for mutations affecting `DbPreset`""" -input DbPresetInput { - """Whether this preset is selectable for new databases""" - active: Boolean + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) - """ - commitId: UUID + """Only read the first `n` values of the set.""" + first: Int - """Timestamp of preset creation""" - createdAt: Datetime + """Only read the last `n` values of the set.""" + last: Int - """ - Preset definition (modules + options) — the readily-cached head; history lives in the infra store - """ - definition: 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 description of the preset""" - description: String + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - """Unique preset identifier""" - id: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDefinitionFilter + ): FunctionDefinitionConnection! - """Human-readable preset name""" - label: String + """Unique graph identifier""" + id: UUID! - """ - 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 + """Whether graph passes structural validation""" + isValid: Boolean! - """ - Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] - """ - slug: String! + """Graph name (unique per database)""" + name: String! - """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) - """ - storeId: UUID + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflowsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Timestamp of last modification""" - updatedAt: Datetime -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `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 -} + """Only read the first `n` values of the set.""" + first: Int -""" -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 + """Only read the last `n` values of the set.""" + last: Int - """ - Infra store commit for the current definition (stamped by the versioned trigger on every write) - """ - commitId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Timestamp of preset creation""" - createdAt: Datetime + """The method to use when ordering `RepositoryWorkflow`.""" + orderBy: [RepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] - """ - Preset definition (modules + options) — the readily-cached head; history lives in the infra store - """ - definition: JSON + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection! - """Human-readable description of the preset""" - description: String + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID! - """Unique preset identifier""" - id: UUID + """Timestamp of last modification""" + updatedAt: Datetime! - """Human-readable preset name""" - label: String + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} +"""A connection to a list of `DatabaseFunctionGraph` values.""" +type DatabaseFunctionGraphConnection { """ - Content-address of definition->modules via metaschema_private.modules_hash (stamped by the versioned trigger); fast exact-match lookup key for provisioning requests + A list of edges which contains the `DatabaseFunctionGraph` and cursor to aid in pagination. """ - modulesHash: UUID + edges: [DatabaseFunctionGraphEdge]! - """ - Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] - """ - slug: String + """A list of `DatabaseFunctionGraph` objects.""" + nodes: [DatabaseFunctionGraph]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Infra Merkle store holding this preset's history (stamped by the versioned trigger) + The count of *all* `DatabaseFunctionGraph` you could get from the connection. """ - storeId: UUID - - """Timestamp of last modification""" - updatedAt: Datetime + totalCount: Int! } -"""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 +"""A `DatabaseFunctionGraph` edge in the connection.""" +type DatabaseFunctionGraphEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Unique preset identifier""" - id: UUID! + """The `DatabaseFunctionGraph` at the end of the edge.""" + node: DatabaseFunctionGraph } -"""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 +"""Ephemeral execution state for flow graph evaluation""" +type DatabaseFunctionGraphExecution { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """The `ContentPreset` that was deleted by this mutation.""" - contentPreset: ContentPreset + """Execution completion timestamp""" + completedAt: Datetime - """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 + """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 -} + """Database scope for multi-tenant isolation""" + databaseId: UUID! -"""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 + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Unique preset identifier""" - id: UUID! -} + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID -"""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 + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String - """The `DbPreset` that was deleted by this mutation.""" - dbPreset: DbPreset + """Machine-readable error code when status = failed""" + errorCode: String - """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 + """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 `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. + Reads a single `DatabaseFunctionGraph` that is related to this `DatabaseFunctionGraphExecution`. """ - clientMutationId: String - id: UUID! -} + graph: DatabaseFunctionGraph -"""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 + """FK to the graph definition being executed""" + graphId: UUID! - """The `FunctionApiBinding` that was deleted by this mutation.""" - functionApiBinding: FunctionApiBinding + """Unique execution identifier""" + id: UUID! - """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 + """Initial inputs provided at invocation time""" + inputPayload: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Partition coordinate for the function invocation that launched this graph execution """ - query: Query -} + invocationCreatedAt: 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! -} + """Function invocation that launched this top-level graph execution""" + invocationId: UUID -"""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. + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - clientMutationId: String + lastProgressAt: Datetime! - """The `FunctionCapabilityBinding` that was deleted by this mutation.""" - functionCapabilityBinding: FunctionCapabilityBinding + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int! - """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 + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int! """ - Our root query field type. Allows us to run any query from our mutation payload. + Map of node_name → execution output id (content-addressed hash reference) """ - query: Query -} + nodeOutputs: JSON! + + """Organization context propagated to asynchronous graph jobs""" + organizationId: 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. + Selected graphOutput portName values; NULL or empty returns all graph outputs """ - clientMutationId: String - id: UUID! -} + outputNames: [String] -"""The output of our delete `FunctionDefinition` mutation.""" -type DeleteFunctionDefinitionPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes """ - clientMutationId: String + outputNode: String - """The `FunctionDefinition` that was deleted by this mutation.""" - functionDefinition: FunctionDefinition + """Final result extracted from terminal output node""" + outputPayload: JSON - """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 + """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 -} + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID -"""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. + Function invocation parent assigned to node invocations spawned by this execution """ - clientMutationId: String - - """Event timestamp (partition key)""" - createdAt: Datetime! + parentInvocationId: UUID - """Unique event identifier""" - id: UUID! -} + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String -"""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 + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """The `FunctionDeploymentEvent` that was deleted by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """Execution start timestamp""" + startedAt: Datetime! - """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 + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Number of evaluate_step ticks executed""" + tickCount: Int! -"""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! + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime! } -"""The output of our delete `FunctionDeployment` mutation.""" -type DeleteFunctionDeploymentPayload { +"""A connection to a list of `DatabaseFunctionGraphExecution` values.""" +type DatabaseFunctionGraphExecutionConnection { """ - 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 `DatabaseFunctionGraphExecution` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseFunctionGraphExecutionEdge]! - """The `FunctionDeployment` that was deleted by this mutation.""" - functionDeployment: FunctionDeployment + """A list of `DatabaseFunctionGraphExecution` objects.""" + nodes: [DatabaseFunctionGraphExecution]! - """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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseFunctionGraphExecution` you could get from the connection. """ - query: Query + totalCount: Int! } -"""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 - - """Log entry timestamp (partition key)""" - createdAt: Datetime! +"""A `DatabaseFunctionGraphExecution` edge in the connection.""" +type DatabaseFunctionGraphExecutionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Unique log entry identifier""" - id: UUID! + """The `DatabaseFunctionGraphExecution` at the end of the edge.""" + node: DatabaseFunctionGraphExecution } -"""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 +""" +A filter to be used against `DatabaseFunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphExecutionFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """The `FunctionExecutionLog` that was deleted by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """Checks for all expressions in this list.""" + and: [DatabaseFunctionGraphExecutionFilter!] - """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 + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `currentWave` field.""" + currentWave: IntFilter -"""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 + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Unique commit identifier""" - id: UUID! + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter - """Opaque store partition key for the global tier""" - scopeId: UUID! -} - -"""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 + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """The `FunctionGraphCommit` that was deleted by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """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 + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter -"""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 + """Filter by the object’s `executionPlan` field.""" + executionPlan: JSONFilter - """Unique execution identifier""" - id: UUID! + """Filter by the object’s `graph` relation.""" + graph: DatabaseFunctionGraphFilter - """Execution start timestamp""" - startedAt: Datetime! -} + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter -"""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 + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! + """Filter by the object’s `inputPayload` field.""" + inputPayload: JSONFilter - """Unique node state identifier""" - id: UUID! -} + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter -"""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 + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter - """ - The `FunctionGraphExecutionNodeState` that was deleted by this mutation. - """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + """Filter by the object’s `lastProgressAt` field.""" + lastProgressAt: DatetimeFilter - """ - 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 + """Filter by the object’s `maxPendingJobs` field.""" + maxPendingJobs: IntFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `maxTicks` field.""" + maxTicks: IntFilter -"""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 + """Filter by the object’s `nodeOutputs` field.""" + nodeOutputs: JSONFilter - """Timestamp of output creation""" - createdAt: Datetime! + """Negates the expression.""" + not: DatabaseFunctionGraphExecutionFilter - """Unique execution output identifier""" - id: UUID! -} + """Checks for any expressions in this list.""" + or: [DatabaseFunctionGraphExecutionFilter!] -"""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 + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """Filter by the object’s `outputNames` field.""" + outputNames: StringListFilter - """ - 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 + """Filter by the object’s `outputNode` field.""" + outputNode: StringFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `outputPayload` field.""" + outputPayload: JSONFilter -"""The output of our delete `FunctionGraphExecution` mutation.""" -type DeleteFunctionGraphExecutionPayload { - """ - The 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 `outputPort` field.""" + outputPort: StringFilter - """The `FunctionGraphExecution` that was deleted by this mutation.""" - functionGraphExecution: FunctionGraphExecution + """Filter by the object’s `parentExecutionId` field.""" + parentExecutionId: UUIDFilter - """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 + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `parentNodeName` field.""" + parentNodeName: StringFilter -"""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 + """Filter by the object’s `principalId` field.""" + principalId: UUIDFilter - """Unique graph identifier""" - id: UUID! -} + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter -"""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 `status` field.""" + status: StringFilter - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Filter by the object’s `tickCount` field.""" + tickCount: IntFilter - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Filter by the object’s `timeoutAt` field.""" + timeoutAt: DatetimeFilter } -"""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 - - """The `FunctionGraphObject` that was deleted by this mutation.""" - functionGraphObject: FunctionGraphObject +"""An input for mutations affecting `DatabaseFunctionGraphExecution`""" +input DatabaseFunctionGraphExecutionInput { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """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 + """Execution completion timestamp""" + completedAt: Datetime - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Index into execution_plan — tick only processes this wave""" + currentWave: Int -"""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 + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """The `FunctionGraph` that was deleted by this mutation.""" - functionGraph: FunctionGraph + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """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 + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String -"""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 + """Machine-readable error code when status = failed""" + errorCode: String - """Unique ref identifier""" - id: UUID! + """Human-readable error description when status = failed""" + errorMessage: String - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON -"""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 + """FK to the graph definition being executed""" + graphId: UUID! - """The `FunctionGraphRef` that was deleted by this mutation.""" - functionGraphRef: FunctionGraphRef + """Unique execution identifier""" + id: 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 + """Initial inputs provided at invocation time""" + inputPayload: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Partition coordinate for the function invocation that launched this graph execution """ - query: Query -} + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: 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. + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - clientMutationId: String + lastProgressAt: Datetime - """Unique store identifier""" - id: UUID! -} + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int + + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int -"""The output of our delete `FunctionGraphStore` mutation.""" -type DeleteFunctionGraphStorePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Map of node_name → execution output id (content-addressed hash reference) """ - clientMutationId: String - - """The `FunctionGraphStore` that was deleted by this mutation.""" - functionGraphStore: FunctionGraphStore + nodeOutputs: JSON - """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 + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + Selected graphOutput portName values; NULL or empty returns all graph outputs """ - query: Query -} + outputNames: [String] -"""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. + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes """ - clientMutationId: String + outputNode: String - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! + """Final result extracted from terminal output node""" + outputPayload: JSON - """Unique attempt identifier""" - id: UUID! -} + """Target output port name (default: value)""" + outputPort: String + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID -"""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. + Function invocation parent assigned to node invocations spawned by this execution """ - clientMutationId: String + parentInvocationId: UUID - """The `FunctionInvocationAttempt` that was deleted by this mutation.""" - functionInvocationAttempt: FunctionInvocationAttempt + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """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 + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Execution start timestamp""" + startedAt: Datetime -"""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 + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """Number of evaluate_step ticks executed""" + tickCount: Int - """Unique invocation identifier""" - id: UUID! + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime } -"""The output of our delete `FunctionInvocation` mutation.""" -type DeleteFunctionInvocationPayload { +""" +Per-node execution state — tracks individual node lifecycle for debugging +""" +type DatabaseFunctionGraphExecutionNodeState { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - 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 + callbackInputs: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + 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 """ - query: Query -} + callbackMeta: JSON -"""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. + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks """ - clientMutationId: String + callbackTokenHash: String + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! """Database scope for multi-tenant isolation""" databaseId: UUID! - """Unique commit identifier""" - id: UUID! -} + """Machine-readable error code when status = failed""" + errorCode: String -"""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 + """Human-readable error description when status = failed""" + errorMessage: String - """The `InfraCommit` that was deleted by this mutation.""" - infraCommit: InfraCommit + """FK to the parent graph execution""" + executionId: 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 + """Unique node state identifier""" + id: UUID! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! -"""All input for the `deleteInfraObject` mutation.""" -input DeleteInfraObjectInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - clientMutationId: String + nodePath: [String] - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Timestamp when the node began executing""" + startedAt: Datetime + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String! } -"""The output of our delete `InfraObject` mutation.""" -type DeleteInfraObjectPayload { +""" +A connection to a list of `DatabaseFunctionGraphExecutionNodeState` values. +""" +type DatabaseFunctionGraphExecutionNodeStateConnection { """ - 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 `DatabaseFunctionGraphExecutionNodeState` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseFunctionGraphExecutionNodeStateEdge]! - """The `InfraObject` that was deleted by this mutation.""" - infraObject: InfraObject + """A list of `DatabaseFunctionGraphExecutionNodeState` objects.""" + nodes: [DatabaseFunctionGraphExecutionNodeState]! - """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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseFunctionGraphExecutionNodeState` you could get from the connection. """ - query: Query + totalCount: Int! } -"""All input for the `deleteInfraRef` mutation.""" -input DeleteInfraRefInput { - """ - An arbitrary 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 `DatabaseFunctionGraphExecutionNodeState` edge in the connection.""" +type DatabaseFunctionGraphExecutionNodeStateEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Unique ref identifier""" - id: UUID! + """The `DatabaseFunctionGraphExecutionNodeState` at the end of the edge.""" + node: DatabaseFunctionGraphExecutionNodeState } -"""The output of our delete `InfraRef` mutation.""" -type DeleteInfraRefPayload { - """ - The 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 `DatabaseFunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphExecutionNodeStateFilter { + """Checks for all expressions in this list.""" + and: [DatabaseFunctionGraphExecutionNodeStateFilter!] - """The `InfraRef` that was deleted by this mutation.""" - infraRef: InfraRef + """Filter by the object’s `callbackInputs` field.""" + callbackInputs: JSONFilter - """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 + """Filter by the object’s `callbackMeta` field.""" + callbackMeta: JSONFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `callbackTokenHash` field.""" + callbackTokenHash: StringFilter -"""All input for the `deleteInfraStore` mutation.""" -input DeleteInfraStoreInput { - """ - An arbitrary 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 `completedAt` field.""" + completedAt: DatetimeFilter - """Unique store identifier""" - id: UUID! -} + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter -"""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 + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """The `InfraStore` that was deleted by this mutation.""" - infraStore: InfraStore + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter - """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 + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `executionId` field.""" + executionId: UUIDFilter -"""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! -} + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""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 + """Filter by the object’s `nodeName` field.""" + nodeName: StringFilter - """The `IntegrationProvider` that was deleted by this mutation.""" - integrationProvider: IntegrationProvider + """Filter by the object’s `nodePath` field.""" + nodePath: StringListFilter - """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 + """Negates the expression.""" + not: DatabaseFunctionGraphExecutionNodeStateFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Checks for any expressions in this list.""" + or: [DatabaseFunctionGraphExecutionNodeStateFilter!] -"""All input for the `deleteNamespaceEvent` mutation.""" -input DeleteNamespaceEventInput { - """ - An arbitrary 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 `outputId` field.""" + outputId: UUIDFilter - """Event timestamp (partition key)""" - createdAt: Datetime! + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter - """Unique event identifier""" - id: UUID! + """Filter by the object’s `status` field.""" + status: StringFilter } -"""The output of our delete `NamespaceEvent` mutation.""" -type DeleteNamespaceEventPayload { +""" +An input for mutations affecting `DatabaseFunctionGraphExecutionNodeState` +""" +input DatabaseFunctionGraphExecutionNodeStateInput { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - clientMutationId: String - - """The `NamespaceEvent` that was deleted by this mutation.""" - namespaceEvent: NamespaceEvent - - """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 + callbackInputs: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + 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 """ - query: Query -} + callbackMeta: JSON -"""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. + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks """ - clientMutationId: String - id: UUID! -} + callbackTokenHash: String -"""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 + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime - """The `Namespace` that was deleted by this mutation.""" - namespace: Namespace + """Timestamp of node state creation (partition key)""" + createdAt: Datetime - """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 + """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 -} + """Machine-readable error code when status = failed""" + errorCode: 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! -} + """Human-readable error description when status = failed""" + errorMessage: String -"""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 + """FK to the parent graph execution""" + executionId: UUID! - """The `PlatformFunctionApiBinding` that was deleted by this mutation.""" - platformFunctionApiBinding: PlatformFunctionApiBinding + """Unique node state identifier""" + id: UUID - """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 + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - query: Query + nodePath: [String] + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID + + """Timestamp when the node began executing""" + startedAt: Datetime + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String } -"""All input for the `deletePlatformFunctionCapabilityBinding` mutation.""" -input DeletePlatformFunctionCapabilityBindingInput { - """ - An arbitrary string value 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 `DatabaseFunctionGraphExecutionNodeState`. +""" +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 + 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 } -"""The output of our delete `PlatformFunctionCapabilityBinding` mutation.""" -type DeletePlatformFunctionCapabilityBindingPayload { +""" +Represents an update to a `DatabaseFunctionGraphExecutionNodeState`. Fields that are set will be updated. +""" +input DatabaseFunctionGraphExecutionNodeStatePatch { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint """ - clientMutationId: String + callbackInputs: JSON """ - The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. + 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 """ - platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding + callbackMeta: JSON """ - An edge for our `PlatformFunctionCapabilityBinding`. May be used by Relay 1. + SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks """ - platformFunctionCapabilityBindingEdge( - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFunctionCapabilityBindingEdge + callbackTokenHash: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime -"""All input for the `deletePlatformFunctionDefinition` mutation.""" -input DeletePlatformFunctionDefinitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} + """Timestamp of node state creation (partition key)""" + createdAt: Datetime -"""The output of our delete `PlatformFunctionDefinition` mutation.""" -type DeletePlatformFunctionDefinitionPayload { - """ - The 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 `PlatformFunctionDefinition` that was deleted by this mutation.""" - platformFunctionDefinition: PlatformFunctionDefinition + """Machine-readable error code when status = failed""" + errorCode: String - """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 + """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 -} + """FK to the parent graph execution""" + executionId: UUID + + """Unique node state identifier""" + id: UUID + + """Name of the node within the graph (e.g. send-email1)""" + nodeName: String -"""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. + Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking """ - clientMutationId: String + nodePath: [String] - """Event timestamp (partition key)""" - createdAt: Datetime! + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID - """Unique event identifier""" - id: UUID! + """Timestamp when the node began executing""" + startedAt: Datetime + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String } -"""The output of our delete `PlatformFunctionDeploymentEvent` mutation.""" -type DeletePlatformFunctionDeploymentEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String +"""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 +} - """ - The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. - """ - platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent +""" +Content-addressed store for execution outputs — hash-referenced from node_outputs +""" +type DatabaseFunctionGraphExecutionOutput { + """Timestamp of output creation""" + createdAt: Datetime! - """ - 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 + """The actual output payload from a completed node""" + data: JSON! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Database scope for multi-tenant isolation""" + databaseId: UUID! -"""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 + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! + + """Unique execution output identifier""" id: UUID! } -"""The output of our delete `PlatformFunctionDeployment` mutation.""" -type DeletePlatformFunctionDeploymentPayload { +""" +A connection to a list of `DatabaseFunctionGraphExecutionOutput` values. +""" +type DatabaseFunctionGraphExecutionOutputConnection { """ - 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 `DatabaseFunctionGraphExecutionOutput` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseFunctionGraphExecutionOutputEdge]! - """The `PlatformFunctionDeployment` that was deleted by this mutation.""" - platformFunctionDeployment: PlatformFunctionDeployment + """A list of `DatabaseFunctionGraphExecutionOutput` objects.""" + nodes: [DatabaseFunctionGraphExecutionOutput]! - """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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseFunctionGraphExecutionOutput` you could get from the connection. """ - query: Query + totalCount: Int! } -"""All input for the `deletePlatformFunctionExecutionLog` mutation.""" -input DeletePlatformFunctionExecutionLogInput { - """ - An arbitrary 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! +"""A `DatabaseFunctionGraphExecutionOutput` edge in the connection.""" +type DatabaseFunctionGraphExecutionOutputEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Unique log entry identifier""" - id: UUID! + """The `DatabaseFunctionGraphExecutionOutput` at the end of the edge.""" + node: DatabaseFunctionGraphExecutionOutput } -"""The output of our delete `PlatformFunctionExecutionLog` mutation.""" -type DeletePlatformFunctionExecutionLogPayload { - """ - The 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 `DatabaseFunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphExecutionOutputFilter { + """Checks for all expressions in this list.""" + and: [DatabaseFunctionGraphExecutionOutputFilter!] - """The `PlatformFunctionExecutionLog` that was deleted by this mutation.""" - platformFunctionExecutionLog: PlatformFunctionExecutionLog + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - 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 + """Filter by the object’s `data` field.""" + data: JSONFilter - """ - 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 `deletePlatformFunctionInvocationAttempt` mutation.""" -input DeletePlatformFunctionInvocationAttemptInput { - """ - An arbitrary 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 `hash` field.""" + hash: Base64EncodedBinaryFilter - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Unique attempt identifier""" - id: UUID! -} + """Negates the expression.""" + not: DatabaseFunctionGraphExecutionOutputFilter -"""The output of our delete `PlatformFunctionInvocationAttempt` mutation.""" -type DeletePlatformFunctionInvocationAttemptPayload { - """ - The 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: [DatabaseFunctionGraphExecutionOutputFilter!] +} - """ - The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. - """ - platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt +""" +An input for mutations affecting `DatabaseFunctionGraphExecutionOutput` +""" +input DatabaseFunctionGraphExecutionOutputInput { + """Timestamp of output creation""" + createdAt: Datetime - """ - 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 + """The actual output payload from a completed node""" + data: JSON! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Database scope for multi-tenant isolation""" + databaseId: UUID! -"""All input for the `deletePlatformFunctionInvocation` mutation.""" -input DeletePlatformFunctionInvocationInput { - """ - An arbitrary 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! - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """Unique execution output identifier""" + id: UUID +} - """Unique invocation identifier""" - id: UUID! +"""Methods to use when ordering `DatabaseFunctionGraphExecutionOutput`.""" +enum 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 } -"""The output of our delete `PlatformFunctionInvocation` mutation.""" -type DeletePlatformFunctionInvocationPayload { - """ - The 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 `DatabaseFunctionGraphExecutionOutput`. Fields that are set will be updated. +""" +input DatabaseFunctionGraphExecutionOutputPatch { + """Timestamp of output creation""" + createdAt: Datetime - """The `PlatformFunctionInvocation` that was deleted by this mutation.""" - platformFunctionInvocation: PlatformFunctionInvocation + """The actual output payload from a completed node""" + data: JSON - """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 + """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 + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary + + """Unique execution output identifier""" + id: UUID } -"""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 +""" +Represents an update to a `DatabaseFunctionGraphExecution`. Fields that are set will be updated. +""" +input DatabaseFunctionGraphExecutionPatch { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """Unique commit identifier""" - id: UUID! + """Execution completion timestamp""" + completedAt: Datetime - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Index into execution_plan — tick only processes this wave""" + currentWave: Int -"""The output of our delete `PlatformInfraCommit` mutation.""" -type DeletePlatformInfraCommitPayload { - """ - The 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 `PlatformInfraCommit` that was deleted by this mutation.""" - platformInfraCommit: PlatformInfraCommit + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """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 + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String -"""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 + """Machine-readable error code when status = failed""" + errorCode: String - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Human-readable error description when status = failed""" + errorMessage: String - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON -"""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 + """FK to the graph definition being executed""" + graphId: UUID - """The `PlatformInfraObject` that was deleted by this mutation.""" - platformInfraObject: PlatformInfraObject + """Unique execution identifier""" + id: UUID - """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 + """Initial inputs provided at invocation time""" + inputPayload: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Partition coordinate for the function invocation that launched this graph execution """ - query: Query -} + invocationCreatedAt: Datetime + + """Function invocation that launched this top-level graph execution""" + invocationId: UUID -"""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. + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - clientMutationId: String + lastProgressAt: Datetime - """Unique ref identifier""" - id: UUID! + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int -"""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. + Map of node_name → execution output id (content-addressed hash reference) """ - clientMutationId: String - - """The `PlatformInfraRef` that was deleted by this mutation.""" - platformInfraRef: PlatformInfraRef + nodeOutputs: JSON - """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 + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + Selected graphOutput portName values; NULL or empty returns all graph outputs """ - query: Query -} + outputNames: [String] -"""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. + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes """ - clientMutationId: String + outputNode: String - """Unique store identifier""" - id: UUID! -} + """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 -"""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. + Function invocation parent assigned to node invocations spawned by this execution """ - clientMutationId: String + parentInvocationId: UUID - """The `PlatformInfraStore` that was deleted by this mutation.""" - platformInfraStore: PlatformInfraStore + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: 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 + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Execution start timestamp""" + startedAt: Datetime -"""All input for the `deletePlatformNamespaceEvent` mutation.""" -input DeletePlatformNamespaceEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String - """Event timestamp (partition key)""" - createdAt: Datetime! + """Number of evaluate_step ticks executed""" + tickCount: Int - """Unique event identifier""" - id: UUID! + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime } -"""The output of our delete `PlatformNamespaceEvent` mutation.""" -type DeletePlatformNamespaceEventPayload { - """ - The exact 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 +""" +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!] - """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 + """Filter by the object’s `context` field.""" + context: StringFilter - """ - 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 -"""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 - id: UUID! -} + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter -"""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. + Filter by the object’s `databaseFunctionGraphExecutionsByGraphId` relation. """ - clientMutationId: String + databaseFunctionGraphExecutionsByGraphId: DatabaseFunctionGraphToManyDatabaseFunctionGraphExecutionFilter - """The `PlatformNamespace` that was deleted by this mutation.""" - platformNamespace: PlatformNamespace + """`databaseFunctionGraphExecutionsByGraphId` exist.""" + databaseFunctionGraphExecutionsByGraphIdExist: Boolean - """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 + """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 `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter -"""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! -} + """Filter by the object’s `description` field.""" + description: StringFilter -"""The output of our delete `PlatformResourceDefinition` mutation.""" -type DeletePlatformResourceDefinitionPayload { - """ - The 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 `functionDefinitionsByGraphId` relation.""" + functionDefinitionsByGraphId: DatabaseFunctionGraphToManyFunctionDefinitionFilter - """The `PlatformResourceDefinition` that was deleted by this mutation.""" - platformResourceDefinition: PlatformResourceDefinition + """`functionDefinitionsByGraphId` exist.""" + functionDefinitionsByGraphIdExist: Boolean - """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 + """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 `isValid` field.""" + isValid: BooleanFilter -"""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 + """Filter by the object’s `name` field.""" + name: StringFilter - """Event timestamp (partition key)""" - createdAt: Datetime! + """Negates the expression.""" + not: DatabaseFunctionGraphFilter - """Unique event identifier""" - id: UUID! -} + """Checks for any expressions in this list.""" + or: [DatabaseFunctionGraphFilter!] -"""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 + """Filter by the object’s `repositoryWorkflowsByGraphId` relation.""" + repositoryWorkflowsByGraphId: DatabaseFunctionGraphToManyRepositoryWorkflowFilter - """The `PlatformResourceEvent` that was deleted by this mutation.""" - platformResourceEvent: PlatformResourceEvent + """`repositoryWorkflowsByGraphId` exist.""" + repositoryWorkflowsByGraphIdExist: Boolean - """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 + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter -"""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! + """Filter by the object’s `validationErrors` field.""" + validationErrors: JSONFilter } -"""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 - id: UUID! +"""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 + 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 } -"""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 +""" +Represents an update to a `DatabaseFunctionGraph`. Fields that are set will be updated. +""" +input DatabaseFunctionGraphPatch { + """Evaluator/runtime context (function, js, sql, system)""" + context: String - """The `PlatformResourceInstallation` that was deleted by this mutation.""" - platformResourceInstallation: PlatformResourceInstallation + """Timestamp of graph creation""" + createdAt: Datetime - """ - An edge for our `PlatformResourceInstallation`. May be used by Relay 1. - """ - platformResourceInstallationEdge( - """The method to use when ordering `PlatformResourceInstallation`.""" - orderBy: [PlatformResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformResourceInstallationEdge + """Actor who created this graph""" + createdBy: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Database scope for multi-tenant isolation""" + databaseId: UUID -"""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 + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """The `PlatformResource` that was deleted by this mutation.""" - platformResource: PlatformResource + """Human-readable description of the graph""" + description: String - """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 + """Unique graph identifier""" + id: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Whether graph passes structural validation""" + isValid: Boolean -"""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 + """Graph name (unique per database)""" + name: String - """Unique status check identifier""" - id: UUID! -} + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID -"""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 + """Timestamp of last modification""" + updatedAt: Datetime - """The `PlatformResourceStatusCheck` that was deleted by this mutation.""" - platformResourceStatusCheck: PlatformResourceStatusCheck + """Array of validation error objects when is_valid = false""" + validationErrors: JSON +} - """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 +""" +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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Filters to entities where no related entity matches.""" + none: DatabaseFunctionGraphExecutionFilter + + """Filters to entities where at least one related entity matches.""" + some: DatabaseFunctionGraphExecutionFilter } -"""All input for the `deletePlatformResourceUsageLog` mutation.""" -input DeletePlatformResourceUsageLogInput { - """ - An arbitrary 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFunctionGraphToManyFunctionDefinitionFilter { + """Filters to entities where every related entity matches.""" + every: FunctionDefinitionFilter - """Unique sample identifier""" - id: UUID! + """Filters to entities where no related entity matches.""" + none: FunctionDefinitionFilter - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime! + """Filters to entities where at least one related entity matches.""" + some: FunctionDefinitionFilter } -"""The output of our delete `PlatformResourceUsageLog` mutation.""" -type DeletePlatformResourceUsageLogPayload { - """ - The exact 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.""" - platformResourceUsageLog: PlatformResourceUsageLog +""" +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 - """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 + """Filters to entities where no related entity matches.""" + none: RepositoryWorkflowFilter - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Filters to entities where at least one related entity matches.""" + some: RepositoryWorkflowFilter } -"""All input for the `deletePlatformResourceUsageSummary` mutation.""" -input DeletePlatformResourceUsageSummaryInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String +"""Commit history — each commit snapshots a tree root for a store""" +type DatabaseGraphCommit { + """User who authored the changes""" + authorId: UUID - """Day this summary covers (partition key)""" - date: Date! + """User who committed (may differ from author)""" + committerId: UUID - """Unique usage summary identifier""" + """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 } -"""The output of our delete `PlatformResourceUsageSummary` mutation.""" -type DeletePlatformResourceUsageSummaryPayload { +"""A connection to a list of `DatabaseGraphCommit` values.""" +type DatabaseGraphCommitConnection { """ - 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 `DatabaseGraphCommit` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseGraphCommitEdge]! - """The `PlatformResourceUsageSummary` that was deleted by this mutation.""" - platformResourceUsageSummary: PlatformResourceUsageSummary + """A list of `DatabaseGraphCommit` objects.""" + nodes: [DatabaseGraphCommit]! - """ - 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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseGraphCommit` you could get from the connection. """ - query: Query + totalCount: Int! } -"""All input for the `deletePlatformWebhookEndpoint` mutation.""" -input DeletePlatformWebhookEndpointInput { - """ - An arbitrary string value 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 `DatabaseGraphCommit` edge in the connection.""" +type DatabaseGraphCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseGraphCommit` at the end of the edge.""" + node: DatabaseGraphCommit } -"""The output of our delete `PlatformWebhookEndpoint` mutation.""" -type DeletePlatformWebhookEndpointPayload { - """ - The 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 `DatabaseGraphCommit` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseGraphCommitFilter { + """Checks for all expressions in this list.""" + and: [DatabaseGraphCommitFilter!] - """The `PlatformWebhookEndpoint` that was deleted by this mutation.""" - platformWebhookEndpoint: PlatformWebhookEndpoint + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter - """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 + """Filter by the object’s `committerId` field.""" + committerId: 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 `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! + """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 } -"""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 +"""An input for mutations affecting `DatabaseGraphCommit`""" +input DatabaseGraphCommitInput { + """User who authored the changes""" + authorId: UUID - """The `PlatformWebhookEvent` that was deleted by this mutation.""" - platformWebhookEvent: PlatformWebhookEvent + """User who committed (may differ from author)""" + committerId: UUID - """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 + """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 + + """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 } -"""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! +"""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 + 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 `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 +""" +Represents an update to a `DatabaseGraphCommit`. Fields that are set will be updated. +""" +input DatabaseGraphCommitPatch { + """User who authored the changes""" + authorId: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """User who committed (may differ from author)""" + committerId: UUID - """The `ResourceDefinition` that was deleted by this mutation.""" - resourceDefinition: ResourceDefinition + """Database scope for multi-tenant isolation""" + databaseId: UUID - """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 -} + """Commit timestamp""" + date: Datetime -"""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 + """Unique commit identifier""" + id: UUID - """Event timestamp (partition key)""" - createdAt: Datetime! + """Optional commit message""" + message: String - """Unique event identifier""" - id: UUID! + """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 } -"""The output of our delete `ResourceEvent` mutation.""" -type DeleteResourceEventPayload { +"""A connection to a list of `DatabaseGraphGetAllTreeNodesRecord` values.""" +type DatabaseGraphGetAllTreeNodesConnection { """ - 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 `DatabaseGraphGetAllTreeNodesRecord` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseGraphGetAllTreeNodesEdge]! + + """A list of `DatabaseGraphGetAllTreeNodesRecord` objects.""" + nodes: [DatabaseGraphGetAllTreeNodesRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseGraphGetAllTreeNodesRecord` you could get from the connection. """ - query: Query + totalCount: Int! +} - """The `ResourceEvent` that was deleted by this mutation.""" - resourceEvent: ResourceEvent +"""A `DatabaseGraphGetAllTreeNodesRecord` edge in the connection.""" +type DatabaseGraphGetAllTreeNodesEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """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 `DatabaseGraphGetAllTreeNodesRecord` at the end of the edge.""" + node: DatabaseGraphGetAllTreeNodesRecord } -"""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! +type DatabaseGraphGetAllTreeNodesRecord { + data: JSON + path: [String] } -"""All input for the `deleteResourceInstallation` mutation.""" -input DeleteResourceInstallationInput { +"""All input for the `databaseGraphInitEmptyRepo` mutation.""" +input DatabaseGraphInitEmptyRepoInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! + sId: UUID + storeId: UUID } -"""The output of our delete `ResourceInstallation` mutation.""" -type DeleteResourceInstallationPayload { +"""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. @@ -4834,19 +6631,25 @@ type DeleteResourceInstallationPayload { 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 - - """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 +"""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 } -"""The output of our delete `Resource` mutation.""" -type DeleteResourcePayload { +"""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. @@ -4857,31 +6660,26 @@ type DeleteResourcePayload { 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 + result: UUID } -"""All input for the `deleteResourceStatusCheck` mutation.""" -input DeleteResourceStatusCheckInput { +"""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 - - """Unique status check identifier""" - id: UUID! + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID } -"""The output of our delete `ResourceStatusCheck` mutation.""" -type DeleteResourceStatusCheckPayload { +"""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. @@ -4892,437 +6690,440 @@ type DeleteResourceStatusCheckPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + result: UUID +} - """The `ResourceStatusCheck` that was deleted by this mutation.""" - resourceStatusCheck: ResourceStatusCheck +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type DatabaseGraphObject { + """Timestamp of object creation""" + createdAt: Datetime - """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 -} + """Payload data for this object node""" + data: JSON -"""All input for the `deleteResourceUsageLog` mutation.""" -input DeleteResourceUsageLogInput { - """ - An arbitrary 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 sample identifier""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! - """Sample timestamp (partition key) — end of the measured interval""" - sampledAt: Datetime! + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] } -"""The output of our delete `ResourceUsageLog` mutation.""" -type DeleteResourceUsageLogPayload { +"""A connection to a list of `DatabaseGraphObject` values.""" +type DatabaseGraphObjectConnection { """ - 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 `DatabaseGraphObject` and cursor to aid in pagination. """ - clientMutationId: String + edges: [DatabaseGraphObjectEdge]! + + """A list of `DatabaseGraphObject` objects.""" + nodes: [DatabaseGraphObject]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Our root query field type. Allows us to run any query from our mutation payload. + The count of *all* `DatabaseGraphObject` you could get from the connection. """ - query: Query + totalCount: Int! +} - """The `ResourceUsageLog` that was deleted by this mutation.""" - resourceUsageLog: ResourceUsageLog +"""A `DatabaseGraphObject` edge in the connection.""" +type DatabaseGraphObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """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 `DatabaseGraphObject` at the end of the edge.""" + node: DatabaseGraphObject } -"""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 +""" +A filter to be used against `DatabaseGraphObject` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseGraphObjectFilter { + """Checks for all expressions in this list.""" + and: [DatabaseGraphObjectFilter!] - """Day this summary covers (partition key)""" - date: Date! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Unique usage summary identifier""" - id: UUID! -} + """Filter by the object’s `data` field.""" + data: JSONFilter -"""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 + """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 - """The `ResourceUsageSummary` that was deleted by this mutation.""" - resourceUsageSummary: ResourceUsageSummary + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter - """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 -} + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter -"""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! -} + """Negates the expression.""" + not: DatabaseGraphObjectFilter -"""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 + """Checks for any expressions in this list.""" + or: [DatabaseGraphObjectFilter!] +} - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query +"""An input for mutations affecting `DatabaseGraphObject`""" +input DatabaseGraphObjectInput { + """Timestamp of object creation""" + createdAt: Datetime - """The `WebhookEndpoint` that was deleted by this mutation.""" - webhookEndpoint: WebhookEndpoint + """Payload data for this object node""" + data: JSON - """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 -} + """Database scope for multi-tenant isolation""" + databaseId: UUID! -"""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 + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! -} - -"""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 - """ - 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] - """The `WebhookEvent` that was deleted by this mutation.""" - webhookEvent: WebhookEvent + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} - """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 +"""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 + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC } """ -Join table binding function definitions to API endpoints with per-binding alias and config +Represents an update to a `DatabaseGraphObject`. Fields that are set will be updated. """ -type FunctionApiBinding { - """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! +input DatabaseGraphObjectPatch { + """Timestamp of object creation""" createdAt: Datetime - """ - Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. - """ - functionDefinition: FunctionDefinition - - """Function definition this binding belongs to""" - functionDefinitionId: UUID! + """Payload data for this object node""" + data: JSON - """Reads and enables pagination through a set of `FunctionInvocation`.""" - functionInvocationsByApiBindingId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Database scope for multi-tenant isolation""" + databaseId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID - """Only read the first `n` values of the set.""" - first: Int + """Ordered array of child object IDs""" + kids: [UUID] - """Only read the last `n` values of the set.""" - last: Int + """Ordered array of child path names (parallel to kids)""" + ktree: [String] +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""Branch heads — mutable pointers into the commit chain""" +type DatabaseGraphRef { + """Commit this ref points to""" + commitId: UUID - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionInvocationFilter - ): FunctionInvocationConnection! + """Unique ref identifier""" id: UUID! - updatedAt: Datetime + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Store this ref belongs to""" + storeId: UUID! } -"""A connection to a list of `FunctionApiBinding` values.""" -type FunctionApiBindingConnection { +"""A connection to a list of `DatabaseGraphRef` values.""" +type DatabaseGraphRefConnection { """ - A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphRef` and cursor to aid in pagination. """ - edges: [FunctionApiBindingEdge]! + edges: [DatabaseGraphRefEdge]! - """A list of `FunctionApiBinding` objects.""" - nodes: [FunctionApiBinding]! + """A list of `DatabaseGraphRef` objects.""" + nodes: [DatabaseGraphRef]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionApiBinding` you could get from the connection. + The count of *all* `DatabaseGraphRef` you could get from the connection. """ totalCount: Int! } -"""A `FunctionApiBinding` edge in the connection.""" -type FunctionApiBindingEdge { +"""A `DatabaseGraphRef` edge in the connection.""" +type DatabaseGraphRefEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionApiBinding` at the end of the edge.""" - node: FunctionApiBinding + """The `DatabaseGraphRef` at the end of the edge.""" + node: DatabaseGraphRef } """ -A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseGraphRef` object types. All fields are combined with a logical ‘and.’ """ -input FunctionApiBindingFilter { - """Filter by the object’s `alias` field.""" - alias: StringFilter - +input DatabaseGraphRefFilter { """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 + and: [DatabaseGraphRefFilter!] - """Filter by the object’s `functionInvocationsByApiBindingId` relation.""" - functionInvocationsByApiBindingId: FunctionApiBindingToManyFunctionInvocationFilter + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter - """`functionInvocationsByApiBindingId` exist.""" - functionInvocationsByApiBindingIdExist: Boolean + """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: FunctionApiBindingFilter + not: DatabaseGraphRefFilter """Checks for any expressions in this list.""" - or: [FunctionApiBindingFilter!] + or: [DatabaseGraphRefFilter!] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter } -"""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! +"""An input for mutations affecting `DatabaseGraphRef`""" +input DatabaseGraphRefInput { + """Commit this ref points to""" + commitId: UUID - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON - createdAt: Datetime + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Function definition this binding belongs to""" - functionDefinitionId: UUID! + """Unique ref identifier""" id: UUID - updatedAt: Datetime + + """Ref name (e.g. HEAD, main)""" + name: String! + + """Store this ref belongs to""" + storeId: UUID! } -"""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 +"""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 - UPDATED_AT_ASC - UPDATED_AT_DESC + STORE_ID_ASC + STORE_ID_DESC } """ -Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. +Represents an update to a `DatabaseGraphRef`. Fields that are set will be updated. """ -input FunctionApiBindingPatch { - """Binding alias (e.g. default, staging, production)""" - alias: String - - """API endpoint this function is bound to""" - apiId: UUID +input DatabaseGraphRefPatch { + """Commit this ref points to""" + commitId: UUID - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON - createdAt: Datetime + """Database scope for multi-tenant isolation""" + databaseId: UUID - """Function definition this binding belongs to""" - functionDefinitionId: UUID + """Unique ref identifier""" id: UUID - updatedAt: Datetime -} -""" -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 + """Ref name (e.g. HEAD, main)""" + name: String - """Filters to entities where no related entity matches.""" - none: FunctionInvocationFilter + """Store this ref belongs to""" + storeId: UUID +} - """Filters to entities where at least one related entity matches.""" - some: FunctionInvocationFilter +"""All input for the `databaseGraphSetAndCommit` mutation.""" +input DatabaseGraphSetAndCommitInput { + """ + An arbitrary 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 } -""" -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 +"""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 - """Database that owns this resource (database-scoped isolation)""" - databaseId: 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 """ - Reads a single `FunctionDefinition` that is related to this `FunctionCapabilityBinding`. + Our root query field type. Allows us to run any query from our mutation payload. """ - function: FunctionDefinition + query: Query + result: DatabaseGraphCommit +} +"""All input for the `databaseGraphSetDataAtPath` mutation.""" +input DatabaseGraphSetDataAtPathInput { """ - 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 + data: JSON + path: [String] + root: UUID + sId: UUID +} +"""The output of our `databaseGraphSetDataAtPath` mutation.""" +type DatabaseGraphSetDataAtPathPayload { """ - 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 `databaseGraphSetManyAndCommit` mutation.""" +input DatabaseGraphSetManyAndCommitInput { """ - 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! + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} - """Per-binding annotations (no runtime semantics)""" - metadata: JSON - updatedAt: Datetime +"""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 + + """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 + result: DatabaseGraphCommit } -"""A connection to a list of `FunctionCapabilityBinding` values.""" -type FunctionCapabilityBindingConnection { +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type DatabaseGraphStore { + """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 `DatabaseGraphStore` values.""" +type DatabaseGraphStoreConnection { """ - A list of edges which contains the `FunctionCapabilityBinding` and cursor to aid in pagination. + A list of edges which contains the `DatabaseGraphStore` and cursor to aid in pagination. """ - edges: [FunctionCapabilityBindingEdge]! + edges: [DatabaseGraphStoreEdge]! - """A list of `FunctionCapabilityBinding` objects.""" - nodes: [FunctionCapabilityBinding]! + """A list of `DatabaseGraphStore` objects.""" + nodes: [DatabaseGraphStore]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionCapabilityBinding` you could get from the connection. + The count of *all* `DatabaseGraphStore` you could get from the connection. """ totalCount: Int! } -"""A `FunctionCapabilityBinding` edge in the connection.""" -type FunctionCapabilityBindingEdge { +"""A `DatabaseGraphStore` edge in the connection.""" +type DatabaseGraphStoreEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionCapabilityBinding` at the end of the edge.""" - node: FunctionCapabilityBinding + """The `DatabaseGraphStore` at the end of the edge.""" + node: DatabaseGraphStore } """ -A filter to be used against `FunctionCapabilityBinding` 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 FunctionCapabilityBindingFilter { +input DatabaseGraphStoreFilter { """Checks for all expressions in this list.""" - and: [FunctionCapabilityBindingFilter!] - - """Filter by the object’s `bucketId` field.""" - bucketId: UUIDFilter + and: [DatabaseGraphStoreFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -5330,7933 +7131,25319 @@ input FunctionCapabilityBindingFilter { """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 `hash` field.""" + hash: 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: DatabaseGraphStoreFilter """Checks for any expressions in this list.""" - or: [FunctionCapabilityBindingFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + or: [DatabaseGraphStoreFilter!] } -"""An input for mutations affecting `FunctionCapabilityBinding`""" -input FunctionCapabilityBindingInput { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID +"""An input for mutations affecting `DatabaseGraphStore`""" +input DatabaseGraphStoreInput { + """Timestamp of store creation""" createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - """ - Function definition holding this capability (exactly one of function_id / graph_id is set) - """ - functionId: UUID + """Current root object hash of this store""" + hash: UUID - """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) - """ - graphId: UUID + """Unique store identifier""" 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 + """Human-readable store name""" + name: String! } -"""Methods to use when ordering `FunctionCapabilityBinding`.""" -enum FunctionCapabilityBindingOrderBy { - BUCKET_ID_ASC - BUCKET_ID_DESC +"""Methods to use when ordering `DatabaseGraphStore`.""" +enum DatabaseGraphStoreOrderBy { CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - FUNCTION_ID_ASC - FUNCTION_ID_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC + HASH_ASC + HASH_DESC ID_ASC ID_DESC - KEY_ASC - KEY_DESC - LIFECYCLE_ASC - LIFECYCLE_DESC - METADATA_ASC - METADATA_DESC + NAME_ASC + NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. +Represents an update to a `DatabaseGraphStore`. Fields that are set will be updated. """ -input FunctionCapabilityBindingPatch { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID +input DatabaseGraphStorePatch { + """Timestamp of store creation""" createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" + """Database scope for multi-tenant isolation""" databaseId: UUID - """ - Function definition holding this capability (exactly one of function_id / graph_id is set) - """ - functionId: UUID + """Current root object hash of this store""" + hash: UUID - """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) - """ - graphId: UUID + """Unique store identifier""" 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 + """Human-readable store name""" + name: String } -""" -Function definitions — registered cloud functions with routing, queue, and retry configuration -""" -type FunctionDefinition { +"""All input for the `databaseImportDefinitions` mutation.""" +input DatabaseImportDefinitionsInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - accessChannels: [String]! - - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! + clientMutationId: String + contexts: [String] + graphId: UUID + sourceCommitId: UUID + sourceScopeId: UUID +} +"""The output of our `databaseImportDefinitions` mutation.""" +type DatabaseImportDefinitionsPayload { """ - Knative containerConcurrency — max concurrent requests per pod instance + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - concurrency: Int! + clientMutationId: String """ - CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + Our root query field type. Allows us to run any query from our mutation payload. """ - cpuLimitMillicores: BigInt + query: Query +} +"""All input for the `databaseImportGraphJson` mutation.""" +input DatabaseImportGraphJsonInput { """ - Requested CPU in millicores, derived from resources.requests.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. """ - cpuRequestMillicores: BigInt - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Human-readable description of what this function does""" + clientMutationId: String + context: String + createdBy: UUID + databaseId: UUID + definitionsCommitId: UUID description: String + graphJson: JSON + name: String +} - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String - - """Reads and enables pagination through a set of `FunctionApiBinding`.""" - functionApiBindings( - """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 `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionApiBindingFilter - ): FunctionApiBindingConnection! - +"""The output of our `databaseImportGraphJson` mutation.""" +type DatabaseImportGraphJsonPayload { """ - Reads and enables pagination through a set of `FunctionCapabilityBinding`. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - functionCapabilityBindingsByFunctionId( - """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 `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionCapabilityBindingFilter - ): FunctionCapabilityBindingConnection! + clientMutationId: 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - functionColumns: JSON + query: Query + result: UUID +} +"""All input for the `databaseSaveGraph` mutation.""" +input DatabaseSaveGraphInput { """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + An arbitrary 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 + message: String + rootHash: UUID +} - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID! - +"""The output of our `databaseSaveGraph` mutation.""" +type DatabaseSaveGraphPayload { """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - image: String + clientMutationId: String """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Our root query field type. Allows us to run any query from our mutation payload. """ - inputs: JSON! + query: Query + result: UUID +} +"""All input for the `databaseStartExecution` mutation.""" +input DatabaseStartExecutionInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - integrations: [String]! + clientMutationId: String + graphId: UUID + inputPayload: JSON + maxPendingJobs: Int + maxTicks: Int + outputNames: [String] + outputNode: String + outputPort: String + parentExecutionId: UUID + parentNodeName: String + timeoutInterval: IntervalInput +} +"""The output of our `databaseStartExecution` mutation.""" +type DatabaseStartExecutionPayload { """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isPublished: Boolean! - - """Maximum retry attempts for the underlying job""" - maxAttempts: Int! + clientMutationId: String """ - Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) + Our root query field type. Allows us to run any query from our mutation payload. """ - memoryLimitBytes: BigInt + query: Query + result: UUID +} +"""All input for the `databaseValidateFunctionGraph` mutation.""" +input DatabaseValidateFunctionGraphInput { """ - Requested memory in bytes, derived from resources.requests.memory (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. """ - memoryRequestBytes: BigInt + clientMutationId: String + graphId: UUID +} +"""The output of our `databaseValidateFunctionGraph` mutation.""" +type DatabaseValidateFunctionGraphPayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - moduleTable: String + clientMutationId: String """ - Function name within category (e.g. send_verification_link, process_file_embedding) + Our root query field type. Allows us to run any query from our mutation payload. """ - name: String! + query: Query + result: Boolean +} - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON! +"""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 { """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + Not equal to the specified value, treating null like an ordinary value. """ - payloadArgs: JSON! + distinctFrom: Date - """Job priority (lower = higher priority)""" - priority: Int! + """Equal to the specified value.""" + equalTo: Date - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON! + """Greater than the specified value.""" + greaterThan: Date - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Date + + """Included in the specified list.""" + in: [Date!] """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + Is null (if `true` is specified) or is not null (if `false` is specified). """ - publishedAt: Datetime + isNull: Boolean - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String! + """Less than the specified value.""" + lessThan: Date - """ - 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]! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Date - """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredConfigs: [ResourceRequirement]! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Date - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String]! + """Not equal to the specified value.""" + notEqualTo: Date - """ - 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]! + """Not included in the specified list.""" + notIn: [Date!] +} - """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. - """ - requiredSecrets: [ResourceRequirement]! +""" +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 { """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + Not equal to the specified value, treating null like an ordinary value. """ - resources: JSON! + distinctFrom: 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) - """ - runtime: String! + """Equal to the specified value.""" + equalTo: Datetime - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int! + """Greater than the specified value.""" + greaterThan: Datetime - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime - """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetFunction: String + """Included in the specified list.""" + in: [Datetime!] """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - targetSchema: String + 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! """ - Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + Infra store commit for the current definition (stamped by the versioned trigger on every write) """ - taskIdentifier: String + commitId: UUID - """Knative request timeout in seconds""" - timeoutSeconds: Int! - updatedAt: Datetime + """Timestamp of preset creation""" + createdAt: Datetime! """ - Whether this function has side effects and cannot be cached or memoized + Preset definition (modules + options) — the readily-cached head; history lives in the infra store """ - volatile: Boolean! + definition: JSON! - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Human-readable description of the preset""" + description: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Unique preset identifier""" + id: UUID! - """Only read the first `n` values of the set.""" - first: Int + """Human-readable preset name""" + label: String - """Only read the last `n` values of the set.""" - last: Int + """ + 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 - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: WebhookEndpointFilter - ): WebhookEndpointConnection! + """Timestamp of last modification""" + updatedAt: Datetime! } -"""A connection to a list of `FunctionDefinition` values.""" -type FunctionDefinitionConnection { +"""A connection to a list of `DbPreset` values.""" +type DbPresetConnection { """ - A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. + A list of edges which contains the `DbPreset` and cursor to aid in pagination. """ - edges: [FunctionDefinitionEdge]! + edges: [DbPresetEdge]! - """A list of `FunctionDefinition` objects.""" - nodes: [FunctionDefinition]! + """A list of `DbPreset` objects.""" + nodes: [DbPreset]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `FunctionDefinition` you could get from the connection. - """ + """The count of *all* `DbPreset` you could get from the connection.""" totalCount: Int! } -"""A `FunctionDefinition` edge in the connection.""" -type FunctionDefinitionEdge { +"""A `DbPreset` edge in the connection.""" +type DbPresetEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionDefinition` at the end of the edge.""" - node: FunctionDefinition + """The `DbPreset` at the end of the edge.""" + node: DbPreset } """ -A filter to be used against `FunctionDefinition` 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 FunctionDefinitionFilter { - """Filter by the object’s `accessChannels` field.""" - accessChannels: StringListFilter +input DbPresetFilter { + """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 + and: [DbPresetFilter!] - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """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 + """Filter by the object’s `id` field.""" + id: UUIDFilter - """`functionApiBindings` exist.""" - functionApiBindingsExist: Boolean + """Filter by the object’s `label` field.""" + label: StringFilter - """ - Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. - """ - functionCapabilityBindingsByFunctionId: FunctionDefinitionToManyFunctionCapabilityBindingFilter + """Filter by the object’s `modulesHash` field.""" + modulesHash: UUIDFilter - """`functionCapabilityBindingsByFunctionId` exist.""" - functionCapabilityBindingsByFunctionIdExist: Boolean + """Negates the expression.""" + not: DbPresetFilter - """Filter by the object’s `functionColumns` field.""" - functionColumns: JSONFilter + """Checks for any expressions in this list.""" + or: [DbPresetFilter!] - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `icon` field.""" - icon: StringFilter + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} - """Filter by the object’s `image` field.""" - image: StringFilter +"""An input for mutations affecting `DbPreset`""" +input DbPresetInput { + """Whether this preset is selectable for new databases""" + active: Boolean - """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 + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID - """Filter by the object’s `moduleTable` field.""" - moduleTable: StringFilter + """Timestamp of preset creation""" + createdAt: Datetime - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! - """Negates the expression.""" - not: FunctionDefinitionFilter + """Human-readable description of the preset""" + description: String - """Checks for any expressions in this list.""" - or: [FunctionDefinitionFilter!] + """Unique preset identifier""" + id: UUID - """Filter by the object’s `outputs` field.""" - outputs: JSONFilter + """Human-readable preset name""" + label: String - """Filter by the object’s `payloadArgs` field.""" - payloadArgs: JSONFilter + """ + 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 - """Filter by the object’s `priority` field.""" - priority: IntFilter + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! - """Filter by the object’s `props` field.""" - props: JSONFilter + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """Filter by the object’s `protected` field.""" - protected: BooleanFilter + """Timestamp of last modification""" + updatedAt: Datetime +} - """Filter by the object’s `publishedAt` field.""" - publishedAt: DatetimeFilter +"""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 +} - """Filter by the object’s `queueName` field.""" - queueName: StringFilter +""" +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 - """Filter by the object’s `requiredBuckets` field.""" - requiredBuckets: StringListFilter + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID - """Filter by the object’s `requiredModels` field.""" - requiredModels: StringListFilter + """Timestamp of preset creation""" + createdAt: Datetime - """Filter by the object’s `requiredModules` field.""" - requiredModules: StringListFilter + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """Human-readable description of the preset""" + description: String - """Filter by the object’s `runtime` field.""" - runtime: StringFilter + """Unique preset identifier""" + id: UUID - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """Human-readable preset name""" + label: String - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """ + 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 - """Filter by the object’s `targetFunction` field.""" - targetFunction: StringFilter + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String - """Filter by the object’s `targetSchema` field.""" - targetSchema: StringFilter + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Timestamp of last modification""" + updatedAt: Datetime +} - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter +"""All input for the `deleteBuild` mutation.""" +input DeleteBuildInput { + """ + An arbitrary string value 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 `updatedAt` field.""" - updatedAt: DatetimeFilter +"""The output of our delete `Build` mutation.""" +type DeleteBuildPayload { + """The `Build` that was deleted by this mutation.""" + build: Build - """Filter by the object’s `volatile` field.""" - volatile: BooleanFilter + """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 - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: FunctionDefinitionToManyWebhookEndpointFilter + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionDefinition`""" -input FunctionDefinitionInput { +"""All input for the `deleteBuildStep` mutation.""" +input DeleteBuildStepInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - accessChannels: [String] + clientMutationId: String - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! + """Unique identifier (uuidv7 provides temporal ordering)""" + id: UUID! - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int - createdAt: Datetime + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +"""The output of our delete `BuildStep` mutation.""" +type DeleteBuildStepPayload { + """The `BuildStep` that was deleted by this mutation.""" + buildStep: BuildStep - """Human-readable description of what this function does""" - description: String + """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 - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: 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 """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - functionColumns: JSON + query: Query +} +"""All input for the `deleteContentPreset` mutation.""" +input DeleteContentPresetInput { """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + 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 + clientMutationId: String - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Unique preset identifier""" + id: UUID! +} +"""The output of our delete `ContentPreset` mutation.""" +type DeleteContentPresetPayload { """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - image: String + 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 """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Our root query field type. Allows us to run any query from our mutation payload. """ - inputs: JSON + query: Query +} +"""All input for the `deleteDatabaseFunctionGraphExecution` mutation.""" +input DeleteDatabaseFunctionGraphExecutionInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - integrations: [String] + clientMutationId: String + + """Unique execution identifier""" + id: UUID! + + """Execution start timestamp""" + startedAt: Datetime! +} +""" +All input for the `deleteDatabaseFunctionGraphExecutionNodeState` mutation. +""" +input DeleteDatabaseFunctionGraphExecutionNodeStateInput { """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - isPublished: Boolean + clientMutationId: String - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! + + """Unique node state identifier""" + id: UUID! +} +""" +The output of our delete `DatabaseFunctionGraphExecutionNodeState` mutation. +""" +type DeleteDatabaseFunctionGraphExecutionNodeStatePayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - moduleTable: String + clientMutationId: String """ - Function name within category (e.g. send_verification_link, process_file_embedding) + The `DatabaseFunctionGraphExecutionNodeState` that was deleted by this mutation. """ - name: String! + databaseFunctionGraphExecutionNodeState: DatabaseFunctionGraphExecutionNodeState """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] + An edge for our `DatabaseFunctionGraphExecutionNodeState`. May be used by Relay 1. """ - outputs: JSON + databaseFunctionGraphExecutionNodeStateEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionNodeState`. + """ + orderBy: [DatabaseFunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionNodeStateEdge """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + Our root query field type. Allows us to run any query from our mutation payload. """ - payloadArgs: JSON - - """Job priority (lower = higher priority)""" - priority: Int + query: Query +} +""" +All input for the `deleteDatabaseFunctionGraphExecutionOutput` mutation. +""" +input DeleteDatabaseFunctionGraphExecutionOutputInput { """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - props: JSON + clientMutationId: String + + """Timestamp of output creation""" + createdAt: Datetime! + + """Unique execution output identifier""" + id: UUID! +} +""" +The output of our delete `DatabaseFunctionGraphExecutionOutput` mutation. +""" +type DeleteDatabaseFunctionGraphExecutionOutputPayload { """ - Protected platform definition: narrower scopes cannot register the same task_identifier + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - protected: Boolean + clientMutationId: String """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + The `DatabaseFunctionGraphExecutionOutput` that was deleted by this mutation. """ - publishedAt: Datetime - - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + databaseFunctionGraphExecutionOutput: DatabaseFunctionGraphExecutionOutput """ - 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. + An edge for our `DatabaseFunctionGraphExecutionOutput`. May be used by Relay 1. """ - requiredBuckets: [String] + databaseFunctionGraphExecutionOutputEdge( + """ + The method to use when ordering `DatabaseFunctionGraphExecutionOutput`. + """ + orderBy: [DatabaseFunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionOutputEdge """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredConfigs: [ResourceRequirementInput] + query: Query +} +"""The output of our delete `DatabaseFunctionGraphExecution` mutation.""" +type DeleteDatabaseFunctionGraphExecutionPayload { """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredModels: [String] + clientMutationId: 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. + The `DatabaseFunctionGraphExecution` that was deleted by this mutation. """ - requiredModules: [String] + databaseFunctionGraphExecution: DatabaseFunctionGraphExecution """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + An edge for our `DatabaseFunctionGraphExecution`. May be used by Relay 1. """ - requiredSecrets: [ResourceRequirementInput] + databaseFunctionGraphExecutionEdge( + """The method to use when ordering `DatabaseFunctionGraphExecution`.""" + orderBy: [DatabaseFunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseFunctionGraphExecutionEdge """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + Our root query field type. Allows us to run any query from our mutation payload. """ - resources: JSON + query: Query +} +"""All input for the `deleteDatabaseFunctionGraph` mutation.""" +input DeleteDatabaseFunctionGraphInput { """ - 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) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - runtime: String - - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + clientMutationId: String - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """Unique graph identifier""" + id: UUID! +} +"""The output of our delete `DatabaseFunctionGraph` mutation.""" +type DeleteDatabaseFunctionGraphPayload { """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - targetFunction: String + clientMutationId: String - """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetSchema: String + """The `DatabaseFunctionGraph` that was deleted by this mutation.""" + databaseFunctionGraph: DatabaseFunctionGraph - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + """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 """ - Whether this function has side effects and cannot be cached or memoized + Our root query field type. Allows us to run any query from our mutation payload. """ - volatile: Boolean -} - -"""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 + query: Query } -""" -Represents an update to a `FunctionDefinition`. Fields that are set will be updated. -""" -input FunctionDefinitionPatch { +"""All input for the `deleteDatabaseGraphCommit` mutation.""" +input DeleteDatabaseGraphCommitInput { """ - 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. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - accessChannels: [String] + clientMutationId: String - """Function task category (e.g. email, embed, chunk, custom)""" - category: String + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique commit identifier""" + id: UUID! +} +"""The output of our delete `DatabaseGraphCommit` mutation.""" +type DeleteDatabaseGraphCommitPayload { """ - Knative containerConcurrency — max concurrent requests per pod instance + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - concurrency: Int - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + clientMutationId: String - """Human-readable description of what this function does""" - description: String + """The `DatabaseGraphCommit` that was deleted by this mutation.""" + databaseGraphCommit: DatabaseGraphCommit - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String + """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 """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - functionColumns: JSON + query: Query +} +"""All input for the `deleteDatabaseGraphObject` mutation.""" +input DeleteDatabaseGraphObjectInput { """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + 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 + clientMutationId: String - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID + """Database scope for multi-tenant isolation""" + databaseId: 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 + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! +} +"""The output of our delete `DatabaseGraphObject` mutation.""" +type DeleteDatabaseGraphObjectPayload { """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - inputs: JSON + clientMutationId: String + + """The `DatabaseGraphObject` that was deleted 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 """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - integrations: [String] + query: Query +} +"""All input for the `deleteDatabaseGraphRef` mutation.""" +input DeleteDatabaseGraphRefInput { """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - isPublished: Boolean + clientMutationId: String - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """ - 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 + """Unique ref identifier""" + id: UUID! +} +"""The output of our delete `DatabaseGraphRef` mutation.""" +type DeleteDatabaseGraphRefPayload { """ - Function name within category (e.g. send_verification_link, process_file_embedding) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - name: String + clientMutationId: String + + """The `DatabaseGraphRef` that was deleted 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 """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] + Our root query field type. Allows us to run any query from our mutation payload. """ - outputs: JSON + query: Query +} +"""All input for the `deleteDatabaseGraphStore` mutation.""" +input DeleteDatabaseGraphStoreInput { """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - payloadArgs: JSON + clientMutationId: String - """Job priority (lower = higher priority)""" - priority: Int + """Unique store identifier""" + id: UUID! +} +"""The output of our delete `DatabaseGraphStore` mutation.""" +type DeleteDatabaseGraphStorePayload { """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - props: JSON + clientMutationId: String + + """The `DatabaseGraphStore` that was deleted 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 """ - Protected platform definition: narrower scopes cannot register the same task_identifier + Our root query field type. Allows us to run any query from our mutation payload. """ - protected: Boolean + query: Query +} +"""All input for the `deleteDbPreset` mutation.""" +input DeleteDbPresetInput { """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - publishedAt: Datetime + clientMutationId: String - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Unique preset identifier""" + id: UUID! +} +"""The output of our delete `DbPreset` mutation.""" +type DeleteDbPresetPayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredBuckets: [String] + 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 """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredConfigs: [ResourceRequirementInput] + query: Query +} +"""All input for the `deleteFunctionApiBinding` mutation.""" +input DeleteFunctionApiBindingInput { """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - requiredModels: [String] + clientMutationId: String + id: UUID! +} +"""The output of our delete `FunctionApiBinding` mutation.""" +type DeleteFunctionApiBindingPayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredModules: [String] + clientMutationId: String + + """The `FunctionApiBinding` that was deleted 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 """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredSecrets: [ResourceRequirementInput] + query: Query +} +"""All input for the `deleteFunctionCapabilityBinding` mutation.""" +input DeleteFunctionCapabilityBindingInput { """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - resources: JSON + clientMutationId: String + id: UUID! +} +"""The output of our delete `FunctionCapabilityBinding` mutation.""" +type DeleteFunctionCapabilityBindingPayload { """ - 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 exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - runtime: String + clientMutationId: String - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + """The `FunctionCapabilityBinding` that was deleted by this mutation.""" + functionCapabilityBinding: FunctionCapabilityBinding - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """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 """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Our root query field type. Allows us to run any query from our mutation payload. """ - targetFunction: String + query: Query +} +"""All input for the `deleteFunctionDefinition` mutation.""" +input DeleteFunctionDefinitionInput { """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - targetSchema: String - - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + clientMutationId: String + id: UUID! +} +"""The output of our delete `FunctionDefinition` mutation.""" +type DeleteFunctionDefinitionPayload { """ - Whether this function has side effects and cannot be cached or memoized + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - 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 -} + clientMutationId: 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 + """The `FunctionDefinition` that was deleted by this mutation.""" + functionDefinition: FunctionDefinition - """Filters to entities where no related entity matches.""" - none: FunctionCapabilityBindingFilter + """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 - """Filters to entities where at least one related entity matches.""" - some: FunctionCapabilityBindingFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -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 +"""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 - """Filters to entities where no related entity matches.""" - none: WebhookEndpointFilter + """Event timestamp (partition key)""" + createdAt: Datetime! - """Filters to entities where at least one related entity matches.""" - some: WebhookEndpointFilter + """Unique event identifier""" + id: UUID! } -""" -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! +"""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 - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """The `FunctionDeploymentEvent` that was deleted by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """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 - """Cumulative error count for this deployment""" - errorCount: Int! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} +"""All input for the `deleteFunctionDeployment` mutation.""" +input DeleteFunctionDeploymentInput { """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - handlerName: String + clientMutationId: String id: UUID! +} +"""The output of our delete `FunctionDeployment` mutation.""" +type DeleteFunctionDeploymentPayload { """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - 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! + clientMutationId: String - """Most recent provisioning or runtime error message""" - lastError: String + """The `FunctionDeployment` that was deleted by this mutation.""" + functionDeployment: FunctionDeployment - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """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 """ - Reads a single `Namespace` that is related to this `FunctionDeployment`. + Our root query field type. Allows us to run any query from our mutation payload. """ - namespace: Namespace - - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + query: Query +} +"""All input for the `deleteFunctionExecutionLog` mutation.""" +input DeleteFunctionExecutionLogInput { """ - 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). + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - realm: String + clientMutationId: String - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Log entry timestamp (partition key)""" + createdAt: Datetime! - """Deployment revision number (incremented on each redeployment)""" - revision: Int! + """Unique log entry identifier""" + id: UUID! +} +"""The output of our delete `FunctionExecutionLog` mutation.""" +type DeleteFunctionExecutionLogPayload { """ - Maximum replica count (NULL = inherit from definition or Knative default) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - scaleMax: Int + clientMutationId: String - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """The `FunctionExecutionLog` that was deleted by this mutation.""" + functionExecutionLog: FunctionExecutionLog - """ - 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 + """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 """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + Our root query field type. Allows us to run any query from our mutation payload. """ - serviceUrl: String + query: Query +} +"""All input for the `deleteFunctionGraphCommit` mutation.""" +input DeleteFunctionGraphCommitInput { """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - status: String! + clientMutationId: String - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + """Unique commit identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""A connection to a list of `FunctionDeployment` values.""" -type FunctionDeploymentConnection { +"""The output of our delete `FunctionGraphCommit` mutation.""" +type DeleteFunctionGraphCommitPayload { """ - A list of edges which contains the `FunctionDeployment` 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: [FunctionDeploymentEdge]! + clientMutationId: String - """A list of `FunctionDeployment` objects.""" - nodes: [FunctionDeployment]! + """The `FunctionGraphCommit` that was deleted by this mutation.""" + functionGraphCommit: FunctionGraphCommit - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 """ - The count of *all* `FunctionDeployment` 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 `FunctionDeployment` edge in the connection.""" -type FunctionDeploymentEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""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 - """The `FunctionDeployment` at the end of the edge.""" - node: FunctionDeployment + """Unique execution identifier""" + id: UUID! + + """Execution start timestamp""" + startedAt: Datetime! } -""" -Deployment lifecycle events — audit log of provisioning, scaling, and failure events -""" -type FunctionDeploymentEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +"""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 - """Event timestamp (partition key)""" + """Timestamp of node state creation (partition key)""" createdAt: Datetime! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Deployment this event belongs to""" - deploymentId: UUID! + """Unique node state identifier""" + id: UUID! +} +"""The output of our delete `FunctionGraphExecutionNodeState` mutation.""" +type DeleteFunctionGraphExecutionNodeStatePayload { """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - eventType: String! + clientMutationId: String - """Unique event identifier""" - id: UUID! + """ + The `FunctionGraphExecutionNodeState` that was deleted by this mutation. + """ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState - """Human-readable description of the event""" - message: String + """ + 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 - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A connection to a list of `FunctionDeploymentEvent` values.""" -type FunctionDeploymentEventConnection { +"""All input for the `deleteFunctionGraphExecutionOutput` mutation.""" +input DeleteFunctionGraphExecutionOutputInput { """ - A list of edges which contains the `FunctionDeploymentEvent` 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: [FunctionDeploymentEventEdge]! + clientMutationId: String - """A list of `FunctionDeploymentEvent` objects.""" - nodes: [FunctionDeploymentEvent]! + """Timestamp of output creation""" + createdAt: Datetime! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Unique execution output identifier""" + id: UUID! +} +"""The output of our delete `FunctionGraphExecutionOutput` mutation.""" +type DeleteFunctionGraphExecutionOutputPayload { """ - The count of *all* `FunctionDeploymentEvent` 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 `FunctionDeploymentEvent` edge in the connection.""" -type FunctionDeploymentEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput - """The `FunctionDeploymentEvent` at the end of the edge.""" - node: FunctionDeploymentEvent + """ + 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 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 +"""The output of our delete `FunctionGraphExecution` mutation.""" +type DeleteFunctionGraphExecutionPayload { + """ + The 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 `databaseId` field.""" - databaseId: UUIDFilter + """The `FunctionGraphExecution` that was deleted by this mutation.""" + functionGraphExecution: FunctionGraphExecution - """Filter by the object’s `deploymentId` field.""" - deploymentId: UUIDFilter + """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 - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """ + 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 `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 - """Filter by the object’s `message` field.""" - message: StringFilter + """Unique graph identifier""" + id: UUID! +} - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter +"""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 - """Negates the expression.""" - not: FunctionDeploymentEventFilter + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Checks for any expressions in this list.""" - or: [FunctionDeploymentEventFilter!] + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""An input for mutations affecting `FunctionDeploymentEvent`""" -input FunctionDeploymentEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" - createdAt: Datetime +"""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 - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """The `FunctionGraphObject` that was deleted by this mutation.""" + functionGraphObject: FunctionGraphObject - """Deployment this event belongs to""" - deploymentId: UUID! + """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 """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + Our root query field type. Allows us to run any query from our mutation payload. """ - eventType: String! + query: Query +} - """Unique event identifier""" - id: UUID +"""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 - """Human-readable description of the event""" - message: String + """The `FunctionGraph` that was deleted by this mutation.""" + functionGraph: FunctionGraph - """Structured context (old/new values, error details, etc.)""" - metadata: JSON -} + """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 -"""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 + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. -""" -input FunctionDeploymentEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" - createdAt: Datetime +"""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 - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Unique ref identifier""" + id: UUID! - """Deployment this event belongs to""" - deploymentId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID! +} +"""The output of our delete `FunctionGraphRef` mutation.""" +type DeleteFunctionGraphRefPayload { """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - eventType: String + clientMutationId: String - """Unique event identifier""" - id: UUID + """The `FunctionGraphRef` that was deleted by this mutation.""" + functionGraphRef: FunctionGraphRef - """Human-readable description of the event""" - message: String + """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 - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -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 +"""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 - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Unique store identifier""" + id: UUID! +} - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +"""The output of our delete `FunctionGraphStore` mutation.""" +type DeleteFunctionGraphStorePayload { + """ + The 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 `errorCount` field.""" - errorCount: IntFilter + """The `FunctionGraphStore` that was deleted by this mutation.""" + functionGraphStore: FunctionGraphStore - """Filter by the object’s `handlerName` field.""" - handlerName: StringFilter + """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 - """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 `image` field.""" - image: StringFilter +"""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 - """Filter by the object’s `imageVersion` field.""" - imageVersion: StringFilter + """When the attempt result was recorded (partition key)""" + createdAt: Datetime! - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Unique attempt identifier""" + id: UUID! +} - """Filter by the object’s `lastError` field.""" - lastError: StringFilter +"""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 `lastErrorAt` field.""" - lastErrorAt: DatetimeFilter + """The `FunctionInvocationAttempt` that was deleted by this mutation.""" + functionInvocationAttempt: FunctionInvocationAttempt - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """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 `namespaceId` field.""" - namespaceId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Negates the expression.""" - not: FunctionDeploymentFilter +"""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 - """Checks for any expressions in this list.""" - or: [FunctionDeploymentFilter!] + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! - """Filter by the object’s `realm` field.""" - realm: StringFilter + """Unique invocation identifier""" + id: UUID! +} - """Filter by the object’s `resources` field.""" - resources: JSONFilter +"""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 - """Filter by the object’s `revision` field.""" - revision: IntFilter + """The `FunctionInvocation` that was deleted by this mutation.""" + functionInvocation: FunctionInvocation - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """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 - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `serviceName` field.""" - serviceName: StringFilter +"""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! +} - """Filter by the object’s `serviceUrl` field.""" - serviceUrl: StringFilter +"""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 - """Filter by the object’s `status` field.""" - status: StringFilter + """The `ImageGrant` that was deleted by this mutation.""" + imageGrant: ImageGrant - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """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 - """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 `FunctionDeployment`""" -input FunctionDeploymentInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +"""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! +} - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime +"""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 - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """The `Image` that was deleted by this mutation.""" + image: Image - """Cumulative error count for this deployment""" - errorCount: Int + """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 """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + Our root query field type. Allows us to run any query from our mutation payload. """ - handlerName: String - id: UUID + query: Query +} +"""All input for the `deleteInfraCommit` mutation.""" +input DeleteInfraCommitInput { """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - image: String! + clientMutationId: String - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """Database scope for multi-tenant isolation""" + databaseId: UUID! - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """Unique commit identifier""" + id: UUID! +} - """Most recent provisioning or runtime error message""" - lastError: String +"""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 - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """The `InfraCommit` that was deleted by this mutation.""" + infraCommit: InfraCommit - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: 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 """ - 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). + Our root query field type. Allows us to run any query from our mutation payload. """ - realm: String + query: Query +} +"""All input for the `deleteInfraObject` mutation.""" +input DeleteInfraObjectInput { """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - resources: JSON + clientMutationId: String - """Deployment revision number (incremented on each redeployment)""" - revision: Int + """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 { """ - Maximum replica count (NULL = inherit from definition or Knative default) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - scaleMax: Int + clientMutationId: String + + """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 """ - Minimum replica count (NULL = inherit from definition or Knative default) + Our root query field type. Allows us to run any query from our mutation payload. """ - scaleMin: Int + query: Query +} +"""All input for the `deleteInfraRef` mutation.""" +input DeleteInfraRefInput { """ - 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 + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - serviceName: String + clientMutationId: String + """Database scope for multi-tenant isolation""" + databaseId: UUID! + + """Unique ref identifier""" + id: UUID! +} + +"""The output of our delete `InfraRef` mutation.""" +type DeleteInfraRefPayload { """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - serviceUrl: String + clientMutationId: String + + """The `InfraRef` that was deleted 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 """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Our root query field type. Allows us to run any query from our mutation payload. """ - status: String - - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + query: Query } -"""Methods to use when ordering `FunctionDeployment`.""" -enum FunctionDeploymentOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CONCURRENCY_ASC - CONCURRENCY_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 - 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 +"""All input for the `deleteInfraStore` mutation.""" +input DeleteInfraStoreInput { + """ + An arbitrary 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! } -""" -Represents an update to a `FunctionDeployment`. Fields that are set will be updated. -""" -input FunctionDeploymentPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +"""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 - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """The `InfraStore` that was deleted by this mutation.""" + infraStore: InfraStore - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """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 - """Cumulative error count for this deployment""" - errorCount: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} +"""All input for the `deleteIntegrationProvider` mutation.""" +input DeleteIntegrationProviderInput { """ - Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - handlerName: String - id: UUID + clientMutationId: String + id: UUID! +} +"""The output of our delete `IntegrationProvider` mutation.""" +type DeleteIntegrationProviderPayload { """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - image: String + clientMutationId: String - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """The `IntegrationProvider` that was deleted by this mutation.""" + integrationProvider: IntegrationProvider - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """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 - """Most recent provisioning or runtime error message""" - lastError: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Timestamp of the most recent error""" - lastErrorAt: Datetime +"""All input for the `deleteNamespaceEvent` mutation.""" +input DeleteNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! +} +"""The output of our delete `NamespaceEvent` mutation.""" +type DeleteNamespaceEventPayload { """ - 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). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - realm: String + clientMutationId: String + + """The `NamespaceEvent` that was deleted by this mutation.""" + namespaceEvent: NamespaceEvent + + """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 """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Our root query field type. Allows us to run any query from our mutation payload. """ - resources: JSON - - """Deployment revision number (incremented on each redeployment)""" - revision: Int + query: Query +} +"""All input for the `deleteNamespace` mutation.""" +input DeleteNamespaceInput { """ - Maximum replica count (NULL = inherit from definition or Knative default) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - scaleMax: Int + clientMutationId: String + id: UUID! +} +"""The output of our delete `Namespace` mutation.""" +type DeleteNamespacePayload { """ - Minimum replica count (NULL = inherit from definition or Knative default) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - scaleMin: Int + clientMutationId: String + + """The `Namespace` that was deleted by this mutation.""" + namespace: Namespace + + """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 """ - 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 + Our root query field type. Allows us to run any query from our mutation payload. """ - serviceName: String + query: Query +} +"""All input for the `deletePlatformBuild` mutation.""" +input DeletePlatformBuildInput { """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - serviceUrl: String + clientMutationId: String + id: UUID! +} +"""The output of our delete `PlatformBuild` mutation.""" +type DeletePlatformBuildPayload { """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - status: String + clientMutationId: String - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime -} + """The `PlatformBuild` that was deleted by this mutation.""" + platformBuild: PlatformBuild -"""Function execution logs — structured console output per invocation""" -type FunctionExecutionLog { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """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 - """Log entry timestamp (partition key)""" - createdAt: Datetime! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +"""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 - """Unique log entry identifier""" + """Unique identifier (uuidv7 provides temporal ordering)""" id: UUID! - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """When the result was recorded (partition key)""" + recordedAt: Datetime! +} - """Log severity: debug, info, warn, error""" - logLevel: String! +"""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 - """Log message text""" - message: String! + """The `PlatformBuildStep` that was deleted by this mutation.""" + platformBuildStep: PlatformBuildStep - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """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 - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""A connection to a list of `FunctionExecutionLog` values.""" -type FunctionExecutionLogConnection { +"""All input for the `deletePlatformFunctionApiBinding` mutation.""" +input DeletePlatformFunctionApiBindingInput { """ - A list of edges which contains the `FunctionExecutionLog` 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: [FunctionExecutionLogEdge]! + clientMutationId: String + id: UUID! +} - """A list of `FunctionExecutionLog` objects.""" - nodes: [FunctionExecutionLog]! +"""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 - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 """ - The count of *all* `FunctionExecutionLog` 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 `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 +"""All input for the `deletePlatformFunctionCapabilityBinding` mutation.""" +input DeletePlatformFunctionCapabilityBindingInput { + """ + An arbitrary string value 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 `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionExecutionLogFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +"""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 - """Checks for all expressions in this list.""" - and: [FunctionExecutionLogFilter!] + """ + The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. + """ + platformFunctionCapabilityBinding: PlatformFunctionCapabilityBinding - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + 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 - """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 `deletePlatformFunctionDefinition` mutation.""" +input DeletePlatformFunctionDefinitionInput { + """ + An arbitrary string value 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 `invocationId` field.""" - invocationId: UUIDFilter +"""The output of our delete `PlatformFunctionDefinition` mutation.""" +type DeletePlatformFunctionDefinitionPayload { + """ + The 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 `logLevel` field.""" - logLevel: StringFilter + """The `PlatformFunctionDefinition` that was deleted by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition - """Filter by the object’s `message` field.""" - message: StringFilter + """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 - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Negates the expression.""" - not: FunctionExecutionLogFilter +"""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 - """Checks for any expressions in this list.""" - or: [FunctionExecutionLogFilter!] + """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 `FunctionExecutionLog`""" -input FunctionExecutionLogInput { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID - - """Log entry timestamp (partition key)""" - createdAt: Datetime +"""The output of our delete `PlatformFunctionDeploymentEvent` mutation.""" +type DeletePlatformFunctionDeploymentEventPayload { + """ + The 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 `PlatformFunctionDeploymentEvent` that was deleted by this mutation. + """ + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent - """Unique log entry identifier""" - id: UUID + """ + 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 - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Log severity: debug, info, warn, error""" - logLevel: String +"""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! +} - """Log message text""" - message: String! +"""The output of our delete `PlatformFunctionDeployment` mutation.""" +type DeletePlatformFunctionDeploymentPayload { + """ + The 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 context (labels, trace data, extra fields)""" - metadata: JSON + """The `PlatformFunctionDeployment` that was deleted by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String -} + """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 -"""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 + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. -""" -input FunctionExecutionLogPatch { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +"""All input for the `deletePlatformFunctionExecutionLog` mutation.""" +input DeletePlatformFunctionExecutionLogInput { + """ + An arbitrary 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 - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + createdAt: Datetime! """Unique log entry identifier""" - id: UUID - - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + id: UUID! +} - """Log severity: debug, info, warn, error""" - logLevel: String +"""The output of our delete `PlatformFunctionExecutionLog` mutation.""" +type DeletePlatformFunctionExecutionLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Log message text""" - message: String + """The `PlatformFunctionExecutionLog` that was deleted by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """ + 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 - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store -""" -type FunctionGraph { - """Evaluator/runtime context (function, js, sql, system)""" - context: String! +"""All input for the `deletePlatformFunctionInvocationAttempt` mutation.""" +input DeletePlatformFunctionInvocationAttemptInput { + """ + An arbitrary 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 graph creation""" + """When the attempt result was recorded (partition key)""" 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 attempt identifier""" + id: UUID! +} +"""The output of our delete `PlatformFunctionInvocationAttempt` mutation.""" +type DeletePlatformFunctionInvocationAttemptPayload { """ - Reads and enables pagination through a set of `FunctionGraphExecution`. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - 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 + clientMutationId: String - """Only read the first `n` values of the set.""" - first: Int + """ + The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. + """ + platformFunctionInvocationAttempt: PlatformFunctionInvocationAttempt - """Only read the last `n` values of the set.""" - last: Int + """ + 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 - """ - 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 `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] +"""All input for the `deletePlatformFunctionInvocation` mutation.""" +input DeletePlatformFunctionInvocationInput { + """ + An arbitrary 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 in determining which values should be returned by the collection. - """ - where: FunctionGraphExecutionFilter - ): FunctionGraphExecutionConnection! + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! - """Unique graph identifier""" + """Unique invocation identifier""" id: UUID! +} - """Whether graph passes structural validation""" - isValid: Boolean! +"""The output of our delete `PlatformFunctionInvocation` mutation.""" +type DeletePlatformFunctionInvocationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Graph name (unique per database)""" - name: String! + """The `PlatformFunctionInvocation` that was deleted by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation + + """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 """ - Reads and enables pagination through a set of `PlatformFunctionDefinition`. + Our root query field type. Allows us to run any query from our mutation payload. """ - platformFunctionDefinitionsByGraphId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + query: Query +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""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 + id: UUID! +} - """Only read the first `n` values of the set.""" - first: Int +"""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 - """Only read the last `n` values of the set.""" - last: Int + """The `PlatformImageGrant` that was deleted by this mutation.""" + platformImageGrant: PlatformImageGrant - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """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 - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionDefinitionFilter - ): PlatformFunctionDefinitionConnection! +"""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 + id: UUID! +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""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 - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID! + """The `PlatformImage` that was deleted by this mutation.""" + platformImage: PlatformImage - """Timestamp of last modification""" - updatedAt: Datetime! + """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 - """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 } -"""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! +"""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] - """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 { +"""The output of our delete `PlatformInfraCommit` mutation.""" +type DeletePlatformInfraCommitPayload { """ - A list of edges which contains the `FunctionGraphCommit` 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: [FunctionGraphCommitEdge]! + clientMutationId: String - """A list of `FunctionGraphCommit` objects.""" - nodes: [FunctionGraphCommit]! + """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* `FunctionGraphCommit` 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 `FunctionGraphCommit` edge in the connection.""" -type FunctionGraphCommitEdge { - """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 `FunctionGraphCommit` at the end of the edge.""" - node: FunctionGraphCommit -} + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! -""" -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!] + """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 `date` field.""" - date: DatetimeFilter + """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 `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 `message` field.""" - message: StringFilter +"""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 - """Negates the expression.""" - not: FunctionGraphCommitFilter + """Unique ref identifier""" + id: UUID! - """Checks for any expressions in this list.""" - or: [FunctionGraphCommitFilter!] + """Opaque store partition key for the global tier""" + scopeId: UUID! +} - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter +"""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 `scopeId` field.""" - scopeId: UUIDFilter + """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 `FunctionGraphCommit`""" -input FunctionGraphCommitInput { - """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 - """Commit timestamp""" - date: Datetime + """Unique store identifier""" + id: UUID! +} - """Unique commit identifier""" - id: UUID +"""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 - """Optional commit message""" - message: String + """The `PlatformInfraStore` that was deleted by this mutation.""" + platformInfraStore: PlatformInfraStore - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """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 - """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 +} - """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 `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 -} +"""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 `FunctionGraphCommit`. Fields that are set will be updated. -""" -input FunctionGraphCommitPatch { - """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 - """Commit timestamp""" - date: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Unique commit identifier""" - id: UUID +"""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 - """Optional commit message""" - message: String + """Unique spec rule identifier""" + id: UUID! +} - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] +"""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 - """Opaque store partition key for the global tier""" - scopeId: 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 `FunctionGraph` values.""" -type FunctionGraphConnection { +"""All input for the `deletePlatformNamespaceEvent` mutation.""" +input DeletePlatformNamespaceEventInput { """ - A list of edges which contains the `FunctionGraph` 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: [FunctionGraphEdge]! - - """A list of `FunctionGraph` objects.""" - nodes: [FunctionGraph]! + clientMutationId: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Event timestamp (partition key)""" + createdAt: Datetime! - """The count of *all* `FunctionGraph` you could get from the connection.""" - totalCount: Int! + """Unique event identifier""" + id: UUID! } -"""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 -} +"""The output of our delete `PlatformNamespaceEvent` mutation.""" +type DeletePlatformNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String -"""Ephemeral execution state for flow graph evaluation""" -type FunctionGraphExecution { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID + """The `PlatformNamespaceEvent` that was deleted by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent - """Execution completion timestamp""" - completedAt: Datetime + """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 - """Index into execution_plan — tick only processes this wave""" - currentWave: Int! - - """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 +"""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 + id: UUID! +} - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String +"""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 - """Machine-readable error code when status = failed""" - errorCode: String + """The `PlatformNamespace` that was deleted by this mutation.""" + platformNamespace: PlatformNamespace - """Human-readable error description when status = failed""" - errorMessage: String + """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 - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} +"""All input for the `deletePlatformProposalComment` mutation.""" +input DeletePlatformProposalCommentInput { """ - Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - graph: FunctionGraph + clientMutationId: String + id: UUID! +} - """FK to the graph definition being executed""" - graphId: UUID! +"""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 - """Unique execution identifier""" - id: UUID! + """The `PlatformProposalComment` that was deleted by this mutation.""" + platformProposalComment: PlatformProposalComment - """Initial inputs provided at invocation time""" - inputPayload: JSON + """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 """ - 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 + query: Query +} - """Function invocation that launched this top-level graph execution""" - invocationId: UUID +"""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 + id: UUID! +} +"""The output of our delete `PlatformProposalFileView` mutation.""" +type DeletePlatformProposalFileViewPayload { """ - Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - lastProgressAt: Datetime! + clientMutationId: String - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int! + """The `PlatformProposalFileView` that was deleted by this mutation.""" + platformProposalFileView: PlatformProposalFileView - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int! + """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 """ - 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! - - """Organization context propagated to asynchronous graph jobs""" - organizationId: UUID + query: Query +} +"""All input for the `deletePlatformProposal` mutation.""" +input DeletePlatformProposalInput { """ - Selected graphOutput portName values; NULL or empty returns all graph outputs + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outputNames: [String] + clientMutationId: String + id: UUID! +} +"""The output of our delete `PlatformProposal` mutation.""" +type DeletePlatformProposalPayload { """ - Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outputNode: String - - """Final result extracted from terminal output node""" - outputPayload: JSON + clientMutationId: String - """Target output port name (default: value)""" - outputPort: String! + """The `PlatformProposal` that was deleted by this mutation.""" + platformProposal: PlatformProposal - """Parent execution when this is a sub-execution""" - parentExecutionId: 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 """ - 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 - - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + query: Query +} - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID +"""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! +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""The output of our delete `PlatformProposalReaction` mutation.""" +type DeletePlatformProposalReactionPayload { + """ + The 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 start timestamp""" - startedAt: Datetime! + """The `PlatformProposalReaction` that was deleted by this mutation.""" + platformProposalReaction: PlatformProposalReaction - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String! + """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 - """Number of evaluate_step ticks executed""" - tickCount: Int! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime! +"""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 connection to a list of `FunctionGraphExecution` values.""" -type FunctionGraphExecutionConnection { +"""The output of our delete `PlatformProposalReview` mutation.""" +type DeletePlatformProposalReviewPayload { """ - A list of edges which contains the `FunctionGraphExecution` 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: [FunctionGraphExecutionEdge]! + clientMutationId: String - """A list of `FunctionGraphExecution` objects.""" - nodes: [FunctionGraphExecution]! + """The `PlatformProposalReview` that was deleted by this mutation.""" + platformProposalReview: PlatformProposalReview - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 """ - The count of *all* `FunctionGraphExecution` 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 `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 +"""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! } -""" -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 +"""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 `currentWave` field.""" - currentWave: IntFilter + """The `PlatformProposalsChunk` that was deleted by this mutation.""" + platformProposalsChunk: PlatformProposalsChunk - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter + """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 - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `entityType` field.""" - entityType: StringFilter +"""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! +} - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter +"""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 - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter + """The `PlatformRegistryBinding` that was deleted by this mutation.""" + platformRegistryBinding: PlatformRegistryBinding - """Filter by the object’s `executionPlan` field.""" - executionPlan: JSONFilter + """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 - """Filter by the object’s `graph` relation.""" - graph: FunctionGraphFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter +"""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! +} - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""The output of our delete `PlatformRegistryGrant` mutation.""" +type DeletePlatformRegistryGrantPayload { + """ + The 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 `inputPayload` field.""" - inputPayload: JSONFilter + """The `PlatformRegistryGrant` that was deleted by this mutation.""" + platformRegistryGrant: PlatformRegistryGrant - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter + """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 - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `lastProgressAt` field.""" - lastProgressAt: DatetimeFilter +"""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! +} - """Filter by the object’s `maxPendingJobs` field.""" - maxPendingJobs: IntFilter +"""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 - """Filter by the object’s `maxTicks` field.""" - maxTicks: IntFilter + """The `PlatformRegistry` that was deleted by this mutation.""" + platformRegistry: PlatformRegistry - """Filter by the object’s `nodeOutputs` field.""" - nodeOutputs: JSONFilter + """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 - """Negates the expression.""" - not: FunctionGraphExecutionFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionFilter!] +"""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! +} - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter +"""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 - """Filter by the object’s `outputNames` field.""" - outputNames: StringListFilter + """The `PlatformRepositoryEvent` that was deleted by this mutation.""" + platformRepositoryEvent: PlatformRepositoryEvent - """Filter by the object’s `outputNode` field.""" - outputNode: StringFilter + """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 - """Filter by the object’s `outputPayload` field.""" - outputPayload: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `outputPort` field.""" - outputPort: StringFilter +"""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 + id: UUID! +} - """Filter by the object’s `parentExecutionId` field.""" - parentExecutionId: UUIDFilter +"""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 - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """The `PlatformRepository` that was deleted by this mutation.""" + platformRepository: PlatformRepository - """Filter by the object’s `parentNodeName` field.""" - parentNodeName: StringFilter + """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 - """Filter by the object’s `principalId` field.""" - principalId: UUIDFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter +"""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 + id: UUID! +} - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter +"""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 - """Filter by the object’s `status` field.""" - status: StringFilter + """The `PlatformRepositoryWorkflow` that was deleted by this mutation.""" + platformRepositoryWorkflow: PlatformRepositoryWorkflow - """Filter by the object’s `tickCount` field.""" - tickCount: IntFilter + """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 - """Filter by the object’s `timeoutAt` field.""" - timeoutAt: DatetimeFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""An input for mutations affecting `FunctionGraphExecution`""" -input FunctionGraphExecutionInput { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID - - """Execution completion timestamp""" - completedAt: Datetime +"""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! +} - """Index into execution_plan — tick only processes this wave""" - currentWave: Int +"""The output of our delete `PlatformResourceDefinition` mutation.""" +type DeletePlatformResourceDefinitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """The `PlatformResourceDefinition` that was deleted by this mutation.""" + platformResourceDefinition: PlatformResourceDefinition - """Entity context propagated to asynchronous graph jobs""" - entityId: UUID + """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 - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Machine-readable error code when status = failed""" - errorCode: String +"""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 - """Human-readable error description when status = failed""" - errorMessage: String + """Event timestamp (partition key)""" + createdAt: Datetime! - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON + """Unique event identifier""" + id: UUID! +} - """FK to the graph definition being executed""" - graphId: 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 execution identifier""" - id: UUID + """The `PlatformResourceEvent` that was deleted by this mutation.""" + platformResourceEvent: PlatformResourceEvent - """Initial inputs provided at invocation time""" - inputPayload: JSON + """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 """ - 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 `deletePlatformResource` mutation.""" +input DeletePlatformResourceInput { """ - 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 - - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int + clientMutationId: String + id: UUID! +} - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int +"""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 + id: UUID! +} +"""The output of our delete `PlatformResourceInstallation` mutation.""" +type DeletePlatformResourceInstallationPayload { """ - 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 `PlatformResourceInstallation` that was deleted by this mutation.""" + platformResourceInstallation: PlatformResourceInstallation """ - Selected graphOutput portName values; NULL or empty returns all graph outputs + An edge for our `PlatformResourceInstallation`. May be used by Relay 1. """ - outputNames: [String] + platformResourceInstallationEdge( + """The method to use when ordering `PlatformResourceInstallation`.""" + orderBy: [PlatformResourceInstallationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceInstallationEdge """ - 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 +} - """Final result extracted from terminal output node""" - outputPayload: JSON +"""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 - """Target output port name (default: value)""" - outputPort: String + """The `PlatformResource` that was deleted by this mutation.""" + platformResource: PlatformResource - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID + """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 """ - 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 - - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String - - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID + query: Query +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""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 - """Execution start timestamp""" - startedAt: Datetime + """Unique status check identifier""" + id: UUID! +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String +"""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 - """Number of evaluate_step ticks executed""" - tickCount: Int + """The `PlatformResourceStatusCheck` that was deleted by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheck - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime -} + """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 -""" -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 + Our root query field type. Allows us to run any query from our mutation payload. """ - callbackInputs: JSON + query: Query +} +"""All input for the `deletePlatformResourceUsageLog` mutation.""" +input DeletePlatformResourceUsageLogInput { """ - 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 + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - callbackMeta: JSON + clientMutationId: String + """Unique sample identifier""" + id: UUID! + + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! +} + +"""The output of our delete `PlatformResourceUsageLog` mutation.""" +type DeletePlatformResourceUsageLogPayload { """ - SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - callbackTokenHash: String + clientMutationId: String - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """The `PlatformResourceUsageLog` that was deleted by this mutation.""" + platformResourceUsageLog: PlatformResourceUsageLog - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! + """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 - """Machine-readable error code when status = failed""" - errorCode: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Human-readable error description when status = failed""" - errorMessage: String +"""All input for the `deletePlatformResourceUsageSummary` mutation.""" +input DeletePlatformResourceUsageSummaryInput { + """ + An arbitrary 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 parent graph execution""" - executionId: UUID! + """Day this summary covers (partition key)""" + date: Date! - """Unique node state identifier""" + """Unique usage summary identifier""" id: UUID! +} - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! - +"""The output of our delete `PlatformResourceUsageSummary` mutation.""" +type DeletePlatformResourceUsageSummaryPayload { """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - nodePath: [String] + clientMutationId: String - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID + """The `PlatformResourceUsageSummary` that was deleted by this mutation.""" + platformResourceUsageSummary: PlatformResourceUsageSummary - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + 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 - """Timestamp when the node began executing""" - startedAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Node lifecycle: pending → queued → running → completed/failed""" - status: String! +"""All input for the `deletePlatformWebhookEndpoint` mutation.""" +input DeletePlatformWebhookEndpointInput { + """ + An arbitrary string value 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 `FunctionGraphExecutionNodeState` values.""" -type FunctionGraphExecutionNodeStateConnection { +"""The output of our delete `PlatformWebhookEndpoint` mutation.""" +type DeletePlatformWebhookEndpointPayload { """ - A list of edges which contains the `FunctionGraphExecutionNodeState` 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: [FunctionGraphExecutionNodeStateEdge]! + clientMutationId: String - """A list of `FunctionGraphExecutionNodeState` objects.""" - nodes: [FunctionGraphExecutionNodeState]! + """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* `FunctionGraphExecutionNodeState` 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 `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 +"""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 `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphExecutionNodeStateFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionNodeStateFilter!] +"""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 `callbackInputs` field.""" - callbackInputs: JSONFilter + """The `PlatformWebhookEvent` that was deleted by this mutation.""" + platformWebhookEvent: PlatformWebhookEvent - """Filter by the object’s `callbackMeta` field.""" - callbackMeta: JSONFilter + """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 `callbackTokenHash` field.""" - callbackTokenHash: StringFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter +"""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! +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +"""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 - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter + """The `ProposalComment` that was deleted by this mutation.""" + proposalComment: ProposalComment - """Filter by the object’s `errorMessage` field.""" - errorMessage: 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 `executionId` field.""" - executionId: 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 `deleteProposalFileView` mutation.""" +input DeleteProposalFileViewInput { + """ + An arbitrary string value 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 `nodeName` field.""" - nodeName: StringFilter +"""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 - """Filter by the object’s `nodePath` field.""" - nodePath: StringListFilter + """The `ProposalFileView` that was deleted by this mutation.""" + proposalFileView: ProposalFileView - """Negates the expression.""" - not: FunctionGraphExecutionNodeStateFilter + """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 - """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionNodeStateFilter!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Filter by the object’s `outputId` field.""" - outputId: UUIDFilter +"""All input for the `deleteProposal` mutation.""" +input DeleteProposalInput { + """ + An arbitrary string value 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 `Proposal` mutation.""" +type DeleteProposalPayload { + """ + The 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 `Proposal` that was deleted by this mutation.""" + proposal: Proposal - """Filter by the object’s `status` field.""" - status: StringFilter -} + """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 -"""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 + Our root query field type. Allows us to run any query from our mutation payload. """ - callbackInputs: JSON + query: Query +} +"""All input for the `deleteProposalReaction` mutation.""" +input DeleteProposalReactionInput { """ - 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 + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - callbackMeta: JSON + clientMutationId: String + id: UUID! +} +"""The output of our delete `ProposalReaction` mutation.""" +type DeleteProposalReactionPayload { """ - SHA-256 hex digest of the node callback token — set for resource-runtime nodes so the node gateway can authenticate result/error/heartbeat callbacks + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - callbackTokenHash: String + clientMutationId: String - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """The `ProposalReaction` that was deleted by this mutation.""" + proposalReaction: ProposalReaction - """Timestamp of node state creation (partition key)""" - createdAt: Datetime + """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 - """Machine-readable error code when status = failed""" - errorCode: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Human-readable error description when status = failed""" - errorMessage: String +"""All input for the `deleteProposalReview` mutation.""" +input DeleteProposalReviewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} - """FK to the parent graph execution""" - executionId: UUID! +"""The output of our delete `ProposalReview` mutation.""" +type DeleteProposalReviewPayload { + """ + The 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 node state identifier""" - id: UUID + """The `ProposalReview` that was deleted by this mutation.""" + proposalReview: ProposalReview - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! + """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 """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Our root query field type. Allows us to run any query from our mutation payload. """ - nodePath: [String] + query: Query +} - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID +"""All input for the `deleteProposalsChunk` mutation.""" +input DeleteProposalsChunkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""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 - """Timestamp when the node began executing""" - startedAt: Datetime + """The `ProposalsChunk` that was deleted by this mutation.""" + proposalsChunk: ProposalsChunk - """Node lifecycle: pending → queued → running → completed/failed""" - status: String -} + """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 -"""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 - 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 + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -""" -Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. -""" -input FunctionGraphExecutionNodeStatePatch { +"""All input for the `deleteRegistryBinding` mutation.""" +input DeleteRegistryBindingInput { """ - Snapshot of the node's resolved inputs for resource-runtime nodes — served by the node gateway GET /inputs endpoint + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - callbackInputs: JSON + clientMutationId: String + id: UUID! +} +"""The output of our delete `RegistryBinding` mutation.""" +type DeleteRegistryBindingPayload { """ - 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 + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - callbackMeta: JSON + clientMutationId: 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 + Our root query field type. Allows us to run any query from our mutation payload. """ - callbackTokenHash: String + query: Query - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """The `RegistryBinding` that was deleted by this mutation.""" + registryBinding: RegistryBinding - """Timestamp of node state creation (partition key)""" - createdAt: Datetime + """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 +} - """Machine-readable error code when status = failed""" - errorCode: String +"""All input for the `deleteRegistryGrant` mutation.""" +input DeleteRegistryGrantInput { + """ + An arbitrary string value 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 error description when status = failed""" - errorMessage: String +"""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 - """FK to the parent graph execution""" - executionId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Unique node state identifier""" - id: UUID + """The `RegistryGrant` that was deleted by this mutation.""" + registryGrant: RegistryGrant - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String + """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 `deleteRegistry` mutation.""" +input DeleteRegistryInput { """ - 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 `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 - """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 - """Timestamp when the node began executing""" - startedAt: Datetime + """The `Registry` that was deleted by this mutation.""" + registry: Registry - """Node lifecycle: pending → queued → running → completed/failed""" - status: String + """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 } -"""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 `deleteRepositoryEvent` mutation.""" +input DeleteRepositoryEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } -""" -Content-addressed store for execution outputs — hash-referenced from node_outputs -""" -type FunctionGraphExecutionOutput { - """Timestamp of output creation""" - createdAt: Datetime! +"""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 - """The actual output payload from a completed node""" - data: JSON! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! + """The `RepositoryEvent` that was deleted by this mutation.""" + repositoryEvent: RepositoryEvent - """Unique execution output identifier""" - id: UUID! + """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 +} - """Opaque store partition key for the global tier""" - scopeId: UUID! +"""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! } -"""A connection to a list of `FunctionGraphExecutionOutput` values.""" -type FunctionGraphExecutionOutputConnection { +"""The output of our delete `Repository` mutation.""" +type DeleteRepositoryPayload { """ - A list of edges which contains the `FunctionGraphExecutionOutput` 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: [FunctionGraphExecutionOutputEdge]! + clientMutationId: String - """A list of `FunctionGraphExecutionOutput` objects.""" - nodes: [FunctionGraphExecutionOutput]! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Information to aid in pagination.""" - pageInfo: PageInfo! + """The `Repository` that was deleted 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 `deleteRepositoryWorkflow` mutation.""" +input DeleteRepositoryWorkflowInput { """ - The count of *all* `FunctionGraphExecutionOutput` you could get from the connection. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - totalCount: Int! + clientMutationId: String + id: UUID! } -"""A `FunctionGraphExecutionOutput` edge in the connection.""" -type FunctionGraphExecutionOutputEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""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 - """The `FunctionGraphExecutionOutput` at the end of the edge.""" - node: FunctionGraphExecutionOutput + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `RepositoryWorkflow` that was deleted 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 } -""" -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!] +"""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! +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +"""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 - """Filter by the object’s `data` field.""" - data: JSONFilter + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Filter by the object’s `hash` field.""" - hash: Base64EncodedBinaryFilter + """The `ResourceDefinition` that was deleted by this mutation.""" + resourceDefinition: ResourceDefinition - """Filter by the object’s `id` field.""" - id: UUIDFilter + """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 +} - """Negates the expression.""" - not: FunctionGraphExecutionOutputFilter +"""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 - """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionOutputFilter!] + """Event timestamp (partition key)""" + createdAt: Datetime! - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Unique event identifier""" + id: UUID! } -"""An input for mutations affecting `FunctionGraphExecutionOutput`""" -input FunctionGraphExecutionOutputInput { - """Timestamp of output creation""" - createdAt: Datetime - - """The actual output payload from a completed node""" - data: JSON! +"""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 - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Unique execution output identifier""" - id: UUID + """The `ResourceEvent` that was deleted by this mutation.""" + resourceEvent: ResourceEvent - """Opaque store partition key for the global tier""" - scopeId: UUID! + """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 } -"""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 +"""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! } -""" -Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. -""" -input FunctionGraphExecutionOutputPatch { - """Timestamp of output creation""" - createdAt: Datetime +"""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! +} - """The actual output payload from a completed node""" - data: JSON +"""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 - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Unique execution output identifier""" - id: UUID + """The `ResourceInstallation` that was deleted by this mutation.""" + resourceInstallation: ResourceInstallation - """Opaque store partition key for the global tier""" - scopeId: UUID + """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 } -""" -Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. -""" -input FunctionGraphExecutionPatch { - """User actor propagated to asynchronous graph jobs""" - actorId: UUID +"""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 - """Execution completion timestamp""" - completedAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Index into execution_plan — tick only processes this wave""" - currentWave: Int + """The `Resource` that was deleted by this mutation.""" + resource: Resource - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """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 +} - """Entity context propagated to asynchronous graph jobs""" - entityId: UUID +"""All input for the `deleteResourceStatusCheck` mutation.""" +input DeleteResourceStatusCheckInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Scope discriminator propagated to asynchronous graph jobs""" - entityType: String + """Unique status check identifier""" + id: UUID! +} - """Machine-readable error code when status = failed""" - errorCode: 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 - """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 + """The `ResourceStatusCheck` that was deleted by this mutation.""" + resourceStatusCheck: ResourceStatusCheck - """FK to the graph definition being executed""" - graphId: UUID + """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 +} - """Unique execution identifier""" - id: UUID +"""All input for the `deleteResourceUsageLog` mutation.""" +input DeleteResourceUsageLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Initial inputs provided at invocation time""" - inputPayload: JSON + """Unique sample identifier""" + id: UUID! + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! +} + +"""The output of our delete `ResourceUsageLog` mutation.""" +type DeleteResourceUsageLogPayload { """ - Partition coordinate for the function invocation that launched this graph execution + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - invocationCreatedAt: Datetime - - """Function invocation that launched this top-level graph execution""" - invocationId: UUID + 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 - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int + """The `ResourceUsageLog` that was deleted by this mutation.""" + resourceUsageLog: ResourceUsageLog - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int + """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 +} +"""All input for the `deleteResourceUsageSummary` mutation.""" +input DeleteResourceUsageSummaryInput { """ - Map of node_name → execution output id (content-addressed hash reference) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - nodeOutputs: JSON + clientMutationId: String - """Organization context propagated to asynchronous graph jobs""" - organizationId: UUID + """Day this summary covers (partition key)""" + date: Date! + + """Unique usage summary identifier""" + id: UUID! +} +"""The output of our delete `ResourceUsageSummary` mutation.""" +type DeleteResourceUsageSummaryPayload { """ - 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 - """Final result extracted from terminal output node""" - outputPayload: JSON + """The `ResourceUsageSummary` that was deleted by this mutation.""" + resourceUsageSummary: ResourceUsageSummary - """Target output port name (default: value)""" - outputPort: 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 +} - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID +"""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! +} +"""The output of our delete `WebhookEndpoint` mutation.""" +type DeleteWebhookEndpointPayload { """ - 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 + clientMutationId: String - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Principal identity propagated to asynchronous graph jobs""" - principalId: UUID + """The `WebhookEndpoint` that was deleted by this mutation.""" + webhookEndpoint: WebhookEndpoint - """Opaque store partition key for the global tier""" - scopeId: UUID + """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 +} - """Execution start timestamp""" - startedAt: Datetime +"""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! +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String +"""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 - """Number of evaluate_step ticks executed""" - tickCount: Int + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime -} + """The `WebhookEvent` that was deleted by this mutation.""" + webhookEvent: WebhookEvent -""" -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!] + """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 +} - """Filter by the object’s `context` field.""" - context: StringFilter +"""A full-text search tsvector value represented as a string.""" +scalar FullText - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +""" +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 - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Equal to the specified value.""" + equalTo: FullText - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter + """Included in the specified list.""" + in: [FullText!] - """Filter by the object’s `description` field.""" - description: StringFilter + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `functionGraphExecutionsByGraphId` relation.""" - functionGraphExecutionsByGraphId: FunctionGraphToManyFunctionGraphExecutionFilter + """Performs a full text search on the field.""" + matches: String - """`functionGraphExecutionsByGraphId` exist.""" - functionGraphExecutionsByGraphIdExist: Boolean + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Not equal to the specified value.""" + notEqualTo: FullText - """Filter by the object’s `isValid` field.""" - isValid: BooleanFilter + """Not included in the specified list.""" + notIn: [FullText!] +} - """Filter by the object’s `name` field.""" - name: StringFilter +""" +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! - """Negates the expression.""" - not: FunctionGraphFilter + """API endpoint this function is bound to""" + apiId: UUID! - """Checks for any expressions in this list.""" - or: [FunctionGraphFilter!] + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON! + createdAt: Datetime """ - Filter by the object’s `platformFunctionDefinitionsByGraphId` relation. + Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. """ - platformFunctionDefinitionsByGraphId: FunctionGraphToManyPlatformFunctionDefinitionFilter + functionDefinition: FunctionDefinition - """`platformFunctionDefinitionsByGraphId` exist.""" - platformFunctionDefinitionsByGraphIdExist: Boolean + """Function definition this binding belongs to""" + functionDefinitionId: UUID! - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Reads and enables pagination through a set of `FunctionInvocation`.""" + functionInvocationsByApiBindingId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """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 `validationErrors` field.""" - validationErrors: JSONFilter -} + """Only read the last `n` values of the set.""" + last: Int -""" -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children -""" -type FunctionGraphObject { - """Timestamp of object creation""" - 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 - """Payload data for this object node""" - data: JSON + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionInvocationFilter + ): FunctionInvocationConnection! 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! + updatedAt: Datetime } -"""A connection to a list of `FunctionGraphObject` values.""" -type FunctionGraphObjectConnection { +"""A connection to a list of `FunctionApiBinding` values.""" +type FunctionApiBindingConnection { """ - A list of edges which contains the `FunctionGraphObject` and cursor to aid in pagination. + A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. """ - edges: [FunctionGraphObjectEdge]! + edges: [FunctionApiBindingEdge]! - """A list of `FunctionGraphObject` objects.""" - nodes: [FunctionGraphObject]! + """A list of `FunctionApiBinding` objects.""" + nodes: [FunctionApiBinding]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionGraphObject` you could get from the connection. + The count of *all* `FunctionApiBinding` you could get from the connection. """ totalCount: Int! } -"""A `FunctionGraphObject` edge in the connection.""" -type FunctionGraphObjectEdge { +"""A `FunctionApiBinding` edge in the connection.""" +type FunctionApiBindingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraphObject` at the end of the edge.""" - node: FunctionGraphObject + """The `FunctionApiBinding` at the end of the edge.""" + node: FunctionApiBinding } """ -A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphObjectFilter { +input FunctionApiBindingFilter { + """Filter by the object’s `alias` field.""" + alias: StringFilter + """Checks for all expressions in this list.""" - and: [FunctionGraphObjectFilter!] + 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 `data` field.""" - data: JSONFilter + """Filter by the object’s `functionDefinition` relation.""" + functionDefinition: FunctionDefinitionFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter + """Filter by the object’s `functionInvocationsByApiBindingId` relation.""" + functionInvocationsByApiBindingId: FunctionApiBindingToManyFunctionInvocationFilter - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """`functionInvocationsByApiBindingId` exist.""" + functionInvocationsByApiBindingIdExist: Boolean + + """Filter by the object’s `id` field.""" + id: UUIDFilter """Negates the expression.""" - not: FunctionGraphObjectFilter + not: FunctionApiBindingFilter """Checks for any expressions in this list.""" - or: [FunctionGraphObjectFilter!] + or: [FunctionApiBindingFilter!] - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""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! -} +"""An input for mutations affecting `FunctionApiBinding`""" +input FunctionApiBindingInput { + """Binding alias (e.g. default, staging, production)""" + alias: String -"""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 -} + """API endpoint this function is bound to""" + apiId: UUID! -""" -Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. -""" -input FunctionGraphObjectPatch { - """Timestamp of object creation""" + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON createdAt: Datetime - """Payload data for this object node""" - data: JSON - - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + """Function definition this binding belongs to""" + functionDefinitionId: UUID! 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 + updatedAt: Datetime } -"""Methods to use when ordering `FunctionGraph`.""" -enum FunctionGraphOrderBy { - CONTEXT_ASC - CONTEXT_DESC +"""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 - CREATED_BY_ASC - CREATED_BY_DESC - DEFINITIONS_COMMIT_ID_ASC - DEFINITIONS_COMMIT_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_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. +Represents an update to a `FunctionApiBinding`. 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 +input FunctionApiBindingPatch { + """Binding alias (e.g. default, staging, production)""" + alias: String - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """API endpoint this function is bound to""" + apiId: UUID - """Human-readable description of the graph""" - description: String + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON + createdAt: Datetime - """Unique graph identifier""" + """Function definition this binding belongs to""" + functionDefinitionId: UUID id: UUID + updatedAt: Datetime +} - """Whether graph passes structural validation""" - isValid: Boolean +""" +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 - """Graph name (unique per database)""" - name: String + """Filters to entities where no related entity matches.""" + none: FunctionInvocationFilter - """Opaque store partition key for the global tier""" - scopeId: UUID + """Filters to entities where at least one related entity matches.""" + some: FunctionInvocationFilter +} - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID +""" +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 - """Timestamp of last modification""" - updatedAt: Datetime + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Array of validation error objects when is_valid = false""" - validationErrors: JSON -} + """ + Reads a single `FunctionDefinition` that is related to this `FunctionCapabilityBinding`. + """ + function: FunctionDefinition -"""Branch heads — mutable pointers into the commit chain""" -type FunctionGraphRef { - """Commit this ref points to""" - commitId: UUID + """ + Function definition holding this capability (exactly one of function_id / graph_id is set) + """ + functionId: UUID - """Unique ref identifier""" + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID id: UUID! - """Ref name (e.g. HEAD, main)""" - name: String! + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String! - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! - """Store this ref belongs to""" - storeId: UUID! + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime } -"""A connection to a list of `FunctionGraphRef` values.""" -type FunctionGraphRefConnection { +"""A connection to a list of `FunctionCapabilityBinding` values.""" +type FunctionCapabilityBindingConnection { """ - A list of edges which contains the `FunctionGraphRef` and cursor to aid in pagination. + A list of edges which contains the `FunctionCapabilityBinding` and cursor to aid in pagination. """ - edges: [FunctionGraphRefEdge]! + edges: [FunctionCapabilityBindingEdge]! - """A list of `FunctionGraphRef` objects.""" - nodes: [FunctionGraphRef]! + """A list of `FunctionCapabilityBinding` objects.""" + nodes: [FunctionCapabilityBinding]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionGraphRef` you could get from the connection. + The count of *all* `FunctionCapabilityBinding` you could get from the connection. """ totalCount: Int! } -"""A `FunctionGraphRef` edge in the connection.""" -type FunctionGraphRefEdge { +"""A `FunctionCapabilityBinding` edge in the connection.""" +type FunctionCapabilityBindingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionGraphRef` at the end of the edge.""" - node: FunctionGraphRef + """The `FunctionCapabilityBinding` at the end of the edge.""" + node: FunctionCapabilityBinding } """ -A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphRefFilter { +input FunctionCapabilityBindingFilter { """Checks for all expressions in this list.""" - and: [FunctionGraphRefFilter!] + and: [FunctionCapabilityBindingFilter!] - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """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 `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: FunctionGraphRefFilter + not: FunctionCapabilityBindingFilter """Checks for any expressions in this list.""" - or: [FunctionGraphRefFilter!] - - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + or: [FunctionCapabilityBindingFilter!] - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `FunctionGraphRef`""" -input FunctionGraphRefInput { - """Commit this ref points to""" - commitId: UUID +"""An input for mutations affecting `FunctionCapabilityBinding`""" +input FunctionCapabilityBindingInput { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID + createdAt: Datetime - """Unique ref identifier""" + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + 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 - """Ref name (e.g. HEAD, main)""" - name: String! + """ + Runtime handle the holder addresses this capability by (e.g. default, scratch) + """ + key: String - """Opaque store partition key for the global tier""" - scopeId: UUID! + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String! - """Store this ref belongs to""" - storeId: UUID! + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime } -"""Methods to use when ordering `FunctionGraphRef`.""" -enum FunctionGraphRefOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC +"""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 - NAME_ASC - NAME_DESC + KEY_ASC + KEY_DESC + LIFECYCLE_ASC + LIFECYCLE_DESC + METADATA_ASC + METADATA_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 + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Named stores — one per version-controlled tree (e.g. one graph, one definition set) +Represents an update to a `FunctionCapabilityBinding`. Fields that are set will be updated. """ -type FunctionGraphStore { - """Timestamp of store creation""" +input FunctionCapabilityBindingPatch { + """Bucket this capability targets (exactly one typed target is set)""" + bucketId: UUID 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! -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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. + Function definition holding this capability (exactly one of function_id / graph_id is set) """ - edges: [FunctionGraphStoreEdge]! - - """A list of `FunctionGraphStore` objects.""" - nodes: [FunctionGraphStore]! + functionId: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Flow graph holding this capability (exactly one of function_id / graph_id is set) + """ + graphId: UUID + id: UUID """ - The count of *all* `FunctionGraphStore` you could get from the connection. + Runtime handle the holder addresses this capability by (e.g. default, scratch) """ - totalCount: Int! -} + key: String -"""A `FunctionGraphStore` edge in the connection.""" -type FunctionGraphStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Lifecycle the capability applies to: deployment (build/deploy time), execution (per invocation), root_execution (root of a graph execution tree) + """ + lifecycle: String - """The `FunctionGraphStore` at the end of the edge.""" - node: FunctionGraphStore + """Per-binding annotations (no runtime semantics)""" + metadata: JSON + updatedAt: Datetime } """ -A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ +Function definitions — registered cloud functions with routing, queue, and retry configuration """ -input FunctionGraphStoreFilter { - """Checks for all expressions in this list.""" - and: [FunctionGraphStoreFilter!] +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]! - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Reads a single `Image` that is related to this `FunctionDefinition`.""" + catalogImage: Image - """Filter by the object’s `hash` field.""" - hash: UUIDFilter + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int! - """Negates the expression.""" - not: FunctionGraphStoreFilter + """ + CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + """ + cpuLimitMillicores: BigInt - """Checks for any expressions in this list.""" - or: [FunctionGraphStoreFilter!] + """ + Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) + """ + cpuRequestMillicores: BigInt + createdAt: Datetime + createdByPrincipal: UUID - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! -"""An input for mutations affecting `FunctionGraphStore`""" -input FunctionGraphStoreInput { - """Timestamp of store creation""" - createdAt: Datetime + """Human-readable description of what this function does""" + description: String - """Current root object hash of this store""" - hash: UUID + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String - """Unique store identifier""" - id: UUID + """Reads and enables pagination through a set of `FunctionApiBinding`.""" + functionApiBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Human-readable store name""" - name: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Only read the first `n` values of the set.""" + first: Int -"""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 -} + """Only read the last `n` values of the set.""" + last: Int -""" -Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. -""" -input FunctionGraphStorePatch { - """Timestamp of store creation""" - 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 - """Current root object hash of this store""" - hash: UUID + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Unique store identifier""" - id: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionApiBindingFilter + ): FunctionApiBindingConnection! - """Human-readable store name""" - name: String + """ + Reads and enables pagination through a set of `FunctionCapabilityBinding`. + """ + functionCapabilityBindingsByFunctionId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Opaque store partition key for the global tier""" - scopeId: UUID -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -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 + """Only read the first `n` values of the set.""" + first: Int - """Filters to entities where no related entity matches.""" - none: FunctionGraphExecutionFilter + """Only read the last `n` values of the set.""" + last: Int - """Filters to entities where at least one related entity matches.""" - some: FunctionGraphExecutionFilter -} + """ + 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 `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphToManyPlatformFunctionDefinitionFilter { - """Filters to entities where every related entity matches.""" - every: PlatformFunctionDefinitionFilter + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - """Filters to entities where no related entity matches.""" - none: PlatformFunctionDefinitionFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionCapabilityBindingFilter + ): FunctionCapabilityBindingConnection! - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionDefinitionFilter -} + """ + 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 -""" -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 + """ + Reads a single `DatabaseFunctionGraph` that is related to this `FunctionDefinition`. + """ + graph: DatabaseFunctionGraph """ - Reads a single `FunctionApiBinding` that is related to this `FunctionInvocation`. + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. """ - apiBinding: FunctionApiBinding + graphId: UUID + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + id: UUID! """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. """ - apiBindingId: UUID + image: String - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON! - """When execution completed""" - completedAt: Datetime + """ + 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]! - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Maximum retry attempts for the underlying job""" + maxAttempts: Int! """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) """ - definitionScope: String + memoryLimitBytes: BigInt - """Wall-clock execution time in milliseconds""" - durationMs: Int + """ + Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) + """ + memoryRequestBytes: BigInt """ - Error message when status is failed, or the reason the run was skipped when status is skipped + 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. """ - error: String + moduleTable: String """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Function name within category (e.g. send_verification_link, process_file_embedding) """ - functionDefinitionId: UUID + name: String! - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON! - """Unique invocation identifier""" - id: UUID! + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON! - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Job priority (lower = higher priority)""" + priority: Int! - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON! - """Function input payload""" - payload: JSON + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean! """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility """ - provenance: JSON! + publishedAt: Datetime - """Function return value (success) or structured error (failure)""" - result: JSON + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String! - """When execution started""" - startedAt: Datetime + """ + 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]! """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - status: String! + requiredConfigs: [ResourceRequirement]! """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. """ - taskIdentifier: String! -} + requiredModels: [String]! -""" -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 + """ + 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]! - """1-based attempt number for this invocation""" - attempt: Int! + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirement]! - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON! - """Database that owns this resource (database-scoped isolation)""" - databaseId: 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) + """ + runtime: String! - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int! - """Error message when the attempt failed""" - error: String + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int! - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String - """Unique attempt identifier""" - id: UUID! + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) + Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) """ - invocationCreatedAt: Datetime! + taskIdentifier: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int! + updatedAt: Datetime + updatedByPrincipal: UUID """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + Whether this function has side effects and cannot be cached or memoized """ - invocationId: UUID! + volatile: Boolean! - """When the attempt began executing""" - startedAt: Datetime + """Reads and enables pagination through a set of `WebhookEndpoint`.""" + webhookEndpoints( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Whether this attempt completed successfully""" - success: Boolean! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! + """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 `FunctionInvocationAttempt` values.""" -type FunctionInvocationAttemptConnection { +"""A connection to a list of `FunctionDefinition` values.""" +type FunctionDefinitionConnection { """ - A list of edges which contains the `FunctionInvocationAttempt` and cursor to aid in pagination. + A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. """ - edges: [FunctionInvocationAttemptEdge]! + edges: [FunctionDefinitionEdge]! - """A list of `FunctionInvocationAttempt` objects.""" - nodes: [FunctionInvocationAttempt]! + """A list of `FunctionDefinition` objects.""" + nodes: [FunctionDefinition]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionInvocationAttempt` you could get from the connection. + The count of *all* `FunctionDefinition` you could get from the connection. """ totalCount: Int! } -"""A `FunctionInvocationAttempt` edge in the connection.""" -type FunctionInvocationAttemptEdge { +"""A `FunctionDefinition` edge in the connection.""" +type FunctionDefinitionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionInvocationAttempt` at the end of the edge.""" - node: FunctionInvocationAttempt + """The `FunctionDefinition` at the end of the edge.""" + node: FunctionDefinition } """ -A filter to be used against `FunctionInvocationAttempt` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ """ -input FunctionInvocationAttemptFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +input FunctionDefinitionFilter { + """Filter by the object’s `accessChannels` field.""" + accessChannels: StringListFilter """Checks for all expressions in this list.""" - and: [FunctionInvocationAttemptFilter!] + and: [FunctionDefinitionFilter!] - """Filter by the object’s `attempt` field.""" - attempt: IntFilter + """Filter by the object’s `catalogImage` relation.""" + catalogImage: ImageFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """A related `catalogImage` exists.""" + catalogImageExists: Boolean - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter + """Filter by the object’s `category` field.""" + category: StringFilter - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter - """Filter by the object’s `errorDetail` field.""" - errorDetail: JSONFilter + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Negates the expression.""" - not: FunctionInvocationAttemptFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Checks for any expressions in this list.""" - or: [FunctionInvocationAttemptFilter!] + """Filter by the object’s `description` field.""" + description: StringFilter - """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 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 + """Filter by the object’s `fnCategory` field.""" + fnCategory: StringFilter - """Unique attempt identifier""" - id: UUID + """Filter by the object’s `functionApiBindings` relation.""" + functionApiBindings: FunctionDefinitionToManyFunctionApiBindingFilter - """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) - """ - invocationCreatedAt: Datetime! + """`functionApiBindings` exist.""" + functionApiBindingsExist: Boolean """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) + Filter by the object’s `functionCapabilityBindingsByFunctionId` relation. """ - 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 for system/cron)""" - actorId: UUID - - """1-based attempt number for this invocation""" - attempt: Int - - """When the attempt result was recorded (partition key)""" - createdAt: Datetime + functionCapabilityBindingsByFunctionId: FunctionDefinitionToManyFunctionCapabilityBindingFilter - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """`functionCapabilityBindingsByFunctionId` exist.""" + functionCapabilityBindingsByFunctionIdExist: Boolean - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """Filter by the object’s `functionColumns` field.""" + functionColumns: JSONFilter - """Error message when the attempt failed""" - error: String + """Filter by the object’s `graph` relation.""" + graph: DatabaseFunctionGraphFilter - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """A related `graph` exists.""" + graphExists: Boolean - """Unique attempt identifier""" - id: UUID + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter - """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) - """ - invocationCreatedAt: Datetime + """Filter by the object’s `icon` field.""" + icon: StringFilter - """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) - """ - invocationId: UUID + """Filter by the object’s `id` field.""" + id: UUIDFilter - """When the attempt began executing""" - startedAt: Datetime + """Filter by the object’s `image` field.""" + image: StringFilter - """Whether this attempt completed successfully""" - success: Boolean + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String -} + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter -"""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]! + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter - """A list of `FunctionInvocation` objects.""" - nodes: [FunctionInvocation]! + """Filter by the object’s `maxAttempts` field.""" + maxAttempts: IntFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter - """ - The count of *all* `FunctionInvocation` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter -"""A `FunctionInvocation` edge in the connection.""" -type FunctionInvocationEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `moduleTable` field.""" + moduleTable: StringFilter - """The `FunctionInvocation` at the end of the edge.""" - node: FunctionInvocation -} + """Filter by the object’s `name` field.""" + name: StringFilter -""" -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 + """Negates the expression.""" + not: FunctionDefinitionFilter - """Checks for all expressions in this list.""" - and: [FunctionInvocationFilter!] + """Checks for any expressions in this list.""" + or: [FunctionDefinitionFilter!] - """Filter by the object’s `apiBinding` relation.""" - apiBinding: FunctionApiBindingFilter + """Filter by the object’s `outputs` field.""" + outputs: JSONFilter - """A related `apiBinding` exists.""" - apiBindingExists: Boolean + """Filter by the object’s `payloadArgs` field.""" + payloadArgs: JSONFilter - """Filter by the object’s `apiBindingId` field.""" - apiBindingId: UUIDFilter + """Filter by the object’s `priority` field.""" + priority: IntFilter - """Filter by the object’s `channel` field.""" - channel: StringFilter + """Filter by the object’s `props` field.""" + props: JSONFilter - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `protected` field.""" + protected: BooleanFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `publishedAt` field.""" + publishedAt: DatetimeFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `queueName` field.""" + queueName: StringFilter - """Filter by the object’s `definitionScope` field.""" - definitionScope: StringFilter + """Filter by the object’s `requiredBuckets` field.""" + requiredBuckets: StringListFilter - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter + """Filter by the object’s `requiredModels` field.""" + requiredModels: StringListFilter - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `requiredModules` field.""" + requiredModules: StringListFilter - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter + """Filter by the object’s `runtime` field.""" + runtime: StringFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter - """Negates the expression.""" - not: FunctionInvocationFilter + """Filter by the object’s `targetFunction` field.""" + targetFunction: StringFilter - """Checks for any expressions in this list.""" - or: [FunctionInvocationFilter!] + """Filter by the object’s `targetSchema` field.""" + targetSchema: StringFilter - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter - """Filter by the object’s `payload` field.""" - payload: JSONFilter + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter - """Filter by the object’s `provenance` field.""" - provenance: JSONFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `result` field.""" - result: JSONFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `volatile` field.""" + volatile: BooleanFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `webhookEndpoints` relation.""" + webhookEndpoints: FunctionDefinitionToManyWebhookEndpointFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """`webhookEndpoints` exist.""" + webhookEndpointsExist: Boolean } -"""An input for mutations affecting `FunctionInvocation`""" -input FunctionInvocationInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID - +"""An input for mutations affecting `FunctionDefinition`""" +input FunctionDefinitionInput { """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + 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. """ - apiBindingId: UUID + accessChannels: [String] - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID - """When execution completed""" - completedAt: Datetime + """Function task category (e.g. email, embed, chunk, custom)""" + category: String! - """Invocation creation timestamp (partition key)""" + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int createdAt: Datetime + 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 + """Human-readable description of what this function does""" + description: String - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String """ - Error message when status is failed, or the reason the run was skipped when status is skipped + 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. """ - error: String + functionColumns: JSON """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. """ - functionDefinitionId: UUID - - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + graphId: UUID - """Unique invocation identifier""" + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String 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 + """ + 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 - """Function input payload""" - payload: JSON + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + 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. """ - provenance: JSON + integrations: [String] - """Function return value (success) or structured error (failure)""" - result: JSON + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean - """When execution started""" - startedAt: Datetime + """Maximum retry attempts for the underlying job""" + maxAttempts: Int """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + 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. """ - status: String + moduleTable: String """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + Function name within category (e.g. send_verification_link, process_file_embedding) """ - 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 - 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 -} - -""" -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 + name: String! """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + Data output ports: [{name, type, description?, optional?, multi?, schema?}] """ - apiBindingId: UUID + outputs: JSON - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON - """When execution completed""" - completedAt: Datetime + """Job priority (lower = higher priority)""" + priority: Int - """Invocation creation timestamp (partition key)""" - createdAt: Datetime + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility """ - definitionScope: String + publishedAt: Datetime - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String """ - Error message when status is failed, or the reason the run was skipped when status is skipped + 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. """ - error: String + requiredBuckets: [String] """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - functionDefinitionId: UUID - - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + requiredConfigs: [ResourceRequirementInput] - """Unique invocation identifier""" - id: UUID + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String] - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """ + 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] - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] - """Function input payload""" - payload: JSON + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) + 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) """ - provenance: JSON + runtime: String - """Function return value (success) or structured error (failure)""" - result: JSON + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int - """When execution started""" - startedAt: Datetime + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - status: String + targetFunction: String """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - taskIdentifier: String -} + targetSchema: String + + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID -"""A connection to a list of `GetAllTreeNodesRecord` values.""" -type GetAllTreeNodesConnection { """ - A list of edges which contains the `GetAllTreeNodesRecord` and cursor to aid in pagination. + Whether this function has side effects and cannot be cached or memoized """ - edges: [GetAllTreeNodesEdge]! + volatile: Boolean +} - """A list of `GetAllTreeNodesRecord` objects.""" - nodes: [GetAllTreeNodesRecord]! +"""Methods to use when ordering `FunctionDefinition`.""" +enum FunctionDefinitionOrderBy { + ACCESS_CHANNELS_ASC + ACCESS_CHANNELS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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_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 +} - """Information to aid in pagination.""" - pageInfo: PageInfo! +""" +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] + + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID + + """Function task category (e.g. email, embed, chunk, custom)""" + category: String """ - The count of *all* `GetAllTreeNodesRecord` you could get from the connection. + Knative containerConcurrency — max concurrent requests per pod instance """ - totalCount: Int! -} + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID -"""A `GetAllTreeNodesRecord` edge in the connection.""" -type GetAllTreeNodesEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """The `GetAllTreeNodesRecord` at the end of the edge.""" - node: GetAllTreeNodesRecord -} + """Human-readable description of what this function does""" + description: String -type GetAllTreeNodesRecord { - data: JSON - path: [String] -} + """Palette grouping category (e.g. email, data, ai, custom)""" + fnCategory: String -"""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. + 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. """ - clientMutationId: String - contexts: [String] graphId: UUID - sourceCommitId: UUID - sourceScopeId: UUID -} -"""The output of our `importDefinitions` mutation.""" -type ImportDefinitionsPayload { + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: 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. + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http or runtime=resource. NULL for inline functions. """ - clientMutationId: String + image: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Data input ports: [{name, type, description?, optional?, multi?, schema?}] """ - query: Query -} + inputs: JSON -"""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. + 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. """ - clientMutationId: String - context: String - createdBy: UUID - definitionsCommitId: UUID - description: String - graphJson: JSON - name: String - scopeId: UUID -} + integrations: [String] -"""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. + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() """ - clientMutationId: String + isPublished: Boolean + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + 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. """ - query: Query - result: UUID -} + moduleTable: String -"""Commit history — each commit snapshots a tree root for a store""" -type InfraCommit { - """User who authored the changes""" - authorId: UUID + """ + Function name within category (e.g. send_verification_link, process_file_embedding) + """ + name: String - """User who committed (may differ from author)""" - committerId: UUID + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON - """Commit timestamp""" - date: Datetime! + """Job priority (lower = higher priority)""" + priority: Int - """Unique commit identifier""" - id: UUID! + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON - """Optional commit message""" - message: String + """ + Protected platform definition: narrower scopes cannot register the same task_identifier + """ + protected: Boolean - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime - """Store this commit belongs to""" - storeId: UUID! + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String - """Root object ID of the tree snapshot at this commit""" - treeId: 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] -"""A connection to a list of `InfraCommit` values.""" -type InfraCommitConnection { """ - A list of edges which contains the `InfraCommit` and cursor to aid in pagination. + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - edges: [InfraCommitEdge]! + requiredConfigs: [ResourceRequirementInput] - """A list of `InfraCommit` objects.""" - nodes: [InfraCommit]! + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String] - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + 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] - """The count of *all* `InfraCommit` you could get from the connection.""" - totalCount: Int! -} + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] -"""A `InfraCommit` edge in the connection.""" -type InfraCommitEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON - """The `InfraCommit` at the end of the edge.""" - node: InfraCommit -} + """ + 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 -""" -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!] + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Knative request timeout in seconds""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean +} - """Filter by the object’s `message` field.""" - message: StringFilter +""" +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 - """Negates the expression.""" - not: InfraCommitFilter + """Filters to entities where no related entity matches.""" + none: FunctionApiBindingFilter - """Checks for any expressions in this list.""" - or: [InfraCommitFilter!] + """Filters to entities where at least one related entity matches.""" + some: FunctionApiBindingFilter +} - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter +""" +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 - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filters to entities where no related entity matches.""" + none: FunctionCapabilityBindingFilter - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + """Filters to entities where at least one related entity matches.""" + some: FunctionCapabilityBindingFilter } -"""An input for mutations affecting `InfraCommit`""" -input InfraCommitInput { - """User who authored the changes""" - authorId: UUID - - """User who committed (may differ from author)""" - committerId: UUID +""" +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 - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Filters to entities where no related entity matches.""" + none: WebhookEndpointFilter - """Commit timestamp""" - date: Datetime + """Filters to entities where at least one related entity matches.""" + some: WebhookEndpointFilter +} - """Unique commit identifier""" - id: UUID +""" +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! - """Optional commit message""" - message: String + """Reads a single `Image` that is related to this `FunctionDeployment`.""" + catalogImage: Image - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """ + Catalog image this deployment pulls (NULL when image is named directly) + """ + catalogImageId: UUID - """Store this commit belongs to""" - storeId: UUID! + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID - """Root object ID of the tree snapshot at this commit""" - treeId: UUID -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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 -} + """Cumulative error count for this deployment""" + errorCount: Int! -""" -Represents an update to a `InfraCommit`. Fields that are set will be updated. -""" -input InfraCommitPatch { - """User who authored the changes""" - authorId: 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! - """User who committed (may differ from author)""" - committerId: 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! - """Database scope for multi-tenant isolation""" - databaseId: UUID + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String! - """Commit timestamp""" - date: Datetime + """Key/value pairs for selecting and filtering deployments""" + labels: JSON! - """Unique commit identifier""" - id: UUID + """Most recent provisioning or runtime error message""" + lastError: String - """Optional commit message""" - message: String + """Timestamp of the most recent error""" + lastErrorAt: Datetime - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """ + Reads a single `Namespace` that is related to this `FunctionDeployment`. + """ + namespace: Namespace - """Store this commit belongs to""" - storeId: UUID + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID! - """Root object ID of the tree snapshot at this commit""" - treeId: 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 -"""A connection to a list of `InfraGetAllTreeNodesRecord` values.""" -type InfraGetAllTreeNodesConnection { """ - A list of edges which contains the `InfraGetAllTreeNodesRecord` and cursor to aid in pagination. + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ - edges: [InfraGetAllTreeNodesEdge]! + resources: JSON - """A list of `InfraGetAllTreeNodesRecord` objects.""" - nodes: [InfraGetAllTreeNodesRecord]! + """Deployment revision number (incremented on each redeployment)""" + revision: Int! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int """ - The count of *all* `InfraGetAllTreeNodesRecord` you could get from the connection. + Minimum replica count (NULL = inherit from definition or Knative default) """ - totalCount: Int! -} + scaleMin: 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. + 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 """ - clientMutationId: String - sId: UUID - storeId: UUID -} + serviceName: String -"""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. + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning """ - clientMutationId: String + serviceUrl: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated """ - query: Query -} + status: String! -"""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 + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID } -"""The output of our `infraInsertNodeAtPath` mutation.""" -type InfraInsertNodeAtPathPayload { +"""A connection to a list of `FunctionDeployment` values.""" +type FunctionDeploymentConnection { """ - 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 `FunctionDeployment` and cursor to aid in pagination. """ - clientMutationId: String + edges: [FunctionDeploymentEdge]! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: UUID -} + """A list of `FunctionDeployment` objects.""" + nodes: [FunctionDeployment]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! -"""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. + The count of *all* `FunctionDeployment` you could get from the connection. """ - clientMutationId: String - datas: [JSON] - kidsList: JSON - ktreeList: JSON - paths: JSON - root: UUID - sId: UUID + totalCount: Int! } -"""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 +"""A `FunctionDeployment` edge in the connection.""" +type FunctionDeploymentEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: UUID + """The `FunctionDeployment` at the end of the edge.""" + node: FunctionDeployment } """ -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +Deployment lifecycle events — audit log of provisioning, scaling, and failure events """ -type InfraObject { - """Timestamp of object creation""" - createdAt: Datetime +type FunctionDeploymentEvent { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Payload data for this object node""" - data: JSON + """Event timestamp (partition key)""" + createdAt: Datetime! - """Database scope for multi-tenant isolation""" + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """Unique event identifier""" id: UUID! - """Ordered array of child object IDs""" - kids: [UUID] + """Human-readable description of the event""" + message: String - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """Structured context (old/new values, error details, etc.)""" + metadata: JSON } -"""A connection to a list of `InfraObject` values.""" -type InfraObjectConnection { +"""A connection to a list of `FunctionDeploymentEvent` values.""" +type FunctionDeploymentEventConnection { """ - A list of edges which contains the `InfraObject` and cursor to aid in pagination. + A list of edges which contains the `FunctionDeploymentEvent` and cursor to aid in pagination. """ - edges: [InfraObjectEdge]! + edges: [FunctionDeploymentEventEdge]! - """A list of `InfraObject` objects.""" - nodes: [InfraObject]! + """A list of `FunctionDeploymentEvent` objects.""" + nodes: [FunctionDeploymentEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `InfraObject` you could get from the connection.""" + """ + The count of *all* `FunctionDeploymentEvent` you could get from the connection. + """ totalCount: Int! } -"""A `InfraObject` edge in the connection.""" -type InfraObjectEdge { +"""A `FunctionDeploymentEvent` edge in the connection.""" +type FunctionDeploymentEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `InfraObject` at the end of the edge.""" - node: InfraObject + """The `FunctionDeploymentEvent` at the end of the edge.""" + node: FunctionDeploymentEvent } """ -A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ """ -input InfraObjectFilter { +input FunctionDeploymentEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + """Checks for all expressions in this list.""" - and: [InfraObjectFilter!] + and: [FunctionDeploymentEventFilter!] """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 `id` field.""" id: UUIDFilter - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter + """Filter by the object’s `message` field.""" + message: StringFilter - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter """Negates the expression.""" - not: InfraObjectFilter + not: FunctionDeploymentEventFilter """Checks for any expressions in this list.""" - or: [InfraObjectFilter!] + or: [FunctionDeploymentEventFilter!] } -"""An input for mutations affecting `InfraObject`""" -input InfraObjectInput { - """Timestamp of object creation""" - createdAt: Datetime +"""An input for mutations affecting `FunctionDeploymentEvent`""" +input FunctionDeploymentEventInput { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Payload data for this object node""" - data: JSON + """Event timestamp (partition key)""" + createdAt: Datetime - """Database scope for multi-tenant isolation""" + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Deployment this event belongs to""" + deploymentId: UUID! - """Ordered array of child object IDs""" - kids: [UUID] + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! - """Ordered array of child path names (parallel to kids)""" - ktree: [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 `InfraObject`.""" -enum InfraObjectOrderBy { +"""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 - DATA_ASC - DATA_DESC + DEPLOYMENT_ID_ASC + DEPLOYMENT_ID_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 } """ -Represents an update to a `InfraObject`. Fields that are set will be updated. +Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. """ -input InfraObjectPatch { - """Timestamp of object creation""" - createdAt: Datetime +input FunctionDeploymentEventPatch { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Payload data for this object node""" - data: JSON + """Event timestamp (partition key)""" + createdAt: Datetime - """Database scope for multi-tenant isolation""" + """Database that owns this resource (database-scoped 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 + """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 - """Unique ref identifier""" - id: UUID! + """Unique event identifier""" + id: UUID - """Ref name (e.g. HEAD, main)""" - name: String! + """Human-readable description of the event""" + message: String - """Store this ref belongs to""" - storeId: UUID! + """Structured context (old/new values, error details, etc.)""" + metadata: JSON } -"""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 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!] - """A list of `InfraRef` objects.""" - nodes: [InfraRef]! + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `catalogImage` relation.""" + catalogImage: ImageFilter - """The count of *all* `InfraRef` you could get from the connection.""" - totalCount: Int! -} + """A related `catalogImage` exists.""" + catalogImageExists: Boolean -"""A `InfraRef` edge in the connection.""" -type InfraRefEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter - """The `InfraRef` at the end of the edge.""" - node: InfraRef -} + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter -""" -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 `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `commitId` field.""" - commitId: 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 `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: NamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: InfraRefFilter + not: FunctionDeploymentFilter """Checks for any expressions in this list.""" - or: [InfraRefFilter!] - - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter -} + or: [FunctionDeploymentFilter!] -"""An input for mutations affecting `InfraRef`""" -input InfraRefInput { - """Commit this ref points to""" - commitId: UUID + """Filter by the object’s `realm` field.""" + realm: StringFilter - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """Unique ref identifier""" - id: UUID + """Filter by the object’s `revision` field.""" + revision: IntFilter - """Ref name (e.g. HEAD, main)""" - name: String! + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter - """Store this ref belongs to""" - storeId: UUID! -} + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter -"""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 -} + """Filter by the object’s `serviceName` field.""" + serviceName: StringFilter -""" -Represents an update to a `InfraRef`. Fields that are set will be updated. -""" -input InfraRefPatch { - """Commit this ref points to""" - commitId: UUID + """Filter by the object’s `serviceUrl` field.""" + serviceUrl: StringFilter - """Database scope for multi-tenant isolation""" - databaseId: UUID + """Filter by the object’s `status` field.""" + status: StringFilter - """Unique ref identifier""" - id: UUID + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter - """Ref name (e.g. HEAD, main)""" - name: String + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Store this ref belongs to""" - storeId: UUID + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } -"""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 -} +"""An input for mutations affecting `FunctionDeployment`""" +input FunctionDeploymentInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON -"""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. + Catalog image this deployment pulls (NULL when image is named directly) """ - clientMutationId: String + catalogImageId: 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 + """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 """ - Our root query field type. Allows us to run any query from our mutation payload. + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point """ - query: Query - result: InfraCommit -} + handlerName: String + id: UUID -"""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. + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. """ - clientMutationId: String - data: JSON - path: [String] - root: UUID - sId: UUID -} + 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! -"""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. + 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). """ - clientMutationId: String + realm: String """ - Our root query field type. Allows us to run any query from our mutation payload. + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ - query: Query - result: UUID -} + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int -"""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. + Maximum replica count (NULL = inherit from definition or Knative default) """ - clientMutationId: String - entries: JSON - message: String - refname: String - sId: UUID - storeId: UUID -} + scaleMax: Int -"""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. + Minimum replica count (NULL = inherit from definition or Knative default) """ - 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 + scaleMin: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + 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 """ - 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! -} + serviceName: 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. + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning """ - 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 + serviceUrl: String - """Unique store identifier""" - id: UUID + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String - """Human-readable store name""" - name: String! + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID } -"""Methods to use when ordering `InfraStore`.""" -enum InfraStoreOrderBy { +"""Methods to use when ordering `FunctionDeployment`.""" +enum FunctionDeploymentOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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 - HASH_ASC - HASH_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + HANDLER_NAME_ASC + HANDLER_NAME_DESC ID_ASC ID_DESC - NAME_ASC - NAME_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 `InfraStore`. Fields that are set will be updated. +Represents an update to a `FunctionDeployment`. Fields that are set will be updated. """ -input InfraStorePatch { - """Timestamp of store creation""" - createdAt: Datetime +input FunctionDeploymentPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON - """Database scope for multi-tenant isolation""" - databaseId: UUID + """ + Catalog image this deployment pulls (NULL when image is named directly) + """ + catalogImageId: UUID - """Current root object hash of this store""" - hash: UUID + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + createdAt: Datetime + createdByPrincipal: UUID - """Unique store identifier""" - id: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Human-readable store name""" - name: String -} + """Cumulative error count for this deployment""" + errorCount: Int -"""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. + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point """ - clientMutationId: String - sId: UUID - storeId: UUID -} + handlerName: String + id: 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. + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. """ - clientMutationId: String + image: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String -"""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 -} + """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 -"""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. + 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). """ - clientMutationId: String + realm: String """ - Our root query field type. Allows us to run any query from our mutation payload. + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ - query: Query - result: UUID -} + resources: JSON + + """Deployment revision number (incremented on each redeployment)""" + revision: Int -"""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. + Maximum replica count (NULL = inherit from definition or Knative default) """ - clientMutationId: String - datas: [JSON] - kidsList: JSON - ktreeList: JSON - paths: JSON - root: UUID - sId: UUID -} + scaleMax: Int -"""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. + Minimum replica count (NULL = inherit from definition or Knative default) """ - clientMutationId: String + scaleMin: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + 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 """ - query: Query - result: UUID -} + serviceName: String -""" -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. + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning """ - 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!] + serviceUrl: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated """ - 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 + status: String - """Not included in the specified list.""" - notIn: [Int!] + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + updatedAt: Datetime + updatedByPrincipal: UUID } -""" -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! +"""Function execution logs — structured console output per invocation""" +type FunctionExecutionLog { + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String - createdAt: Datetime + """Log entry timestamp (partition key)""" + createdAt: Datetime! - """Short description of what this integration provides and when to use it""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String + """Unique log entry identifier""" id: UUID! - """ - Provider logo as an image domain value (url, id, key, bucket, provider) - """ - logo: ConstructiveInternalTypeImage + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" - name: String! + """Log severity: debug, info, warn, error""" + logLevel: 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]! + """Log message text""" + message: String! - """ - 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]! + """Structured context (labels, trace data, extra fields)""" + metadata: JSON - """ - Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. - """ - slug: String! - updatedAt: Datetime + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String } -"""A connection to a list of `IntegrationProvider` values.""" -type IntegrationProviderConnection { +"""A connection to a list of `FunctionExecutionLog` values.""" +type FunctionExecutionLogConnection { """ - A list of edges which contains the `IntegrationProvider` and cursor to aid in pagination. + A list of edges which contains the `FunctionExecutionLog` and cursor to aid in pagination. """ - edges: [IntegrationProviderEdge]! + edges: [FunctionExecutionLogEdge]! - """A list of `IntegrationProvider` objects.""" - nodes: [IntegrationProvider]! + """A list of `FunctionExecutionLog` objects.""" + nodes: [FunctionExecutionLog]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `IntegrationProvider` you could get from the connection. + The count of *all* `FunctionExecutionLog` you could get from the connection. """ totalCount: Int! } -"""A `IntegrationProvider` edge in the connection.""" -type IntegrationProviderEdge { +"""A `FunctionExecutionLog` edge in the connection.""" +type FunctionExecutionLogEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `IntegrationProvider` at the end of the edge.""" - node: IntegrationProvider + """The `FunctionExecutionLog` at the end of the edge.""" + node: FunctionExecutionLog } """ -A filter to be used against `IntegrationProvider` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionExecutionLog` 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 +input FunctionExecutionLogFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `category` field.""" - category: StringFilter + """Checks for all expressions in this list.""" + and: [FunctionExecutionLogFilter!] """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 `databaseId` field.""" + databaseId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `logo` field.""" - logo: ConstructiveInternalTypeImageFilter + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """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: IntegrationProviderFilter + not: FunctionExecutionLogFilter """Checks for any expressions in this list.""" - or: [IntegrationProviderFilter!] - - """Filter by the object’s `slug` field.""" - slug: StringFilter + or: [FunctionExecutionLogFilter!] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter } -"""An input for mutations affecting `IntegrationProvider`""" -input IntegrationProviderInput { - """ - Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. - """ - brand: JSON +"""An input for mutations affecting `FunctionExecutionLog`""" +input FunctionExecutionLogInput { + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String + """Log entry timestamp (partition key)""" createdAt: Datetime - """Short description of what this integration provides and when to use it""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String + """Unique log entry identifier""" id: UUID - """ - Provider logo as an image domain value (url, id, key, bucket, provider) - """ - logo: ConstructiveInternalTypeImage + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" - name: String! + """Log severity: debug, info, warn, error""" + logLevel: 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] + """Log message text""" + message: String! - """ - 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] + """Structured context (labels, trace data, extra fields)""" + metadata: JSON - """ - Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. - """ - slug: String! - updatedAt: Datetime + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String } -"""Methods to use when ordering `IntegrationProvider`.""" -enum IntegrationProviderOrderBy { - BRAND_ASC - BRAND_DESC - CATEGORY_ASC - CATEGORY_DESC +"""Methods to use when ordering `FunctionExecutionLog`.""" +enum FunctionExecutionLogOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ICON_ASC - ICON_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC ID_ASC ID_DESC - LOGO_ASC - LOGO_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 - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - SLUG_ASC - SLUG_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC } """ -Represents an update to a `IntegrationProvider`. Fields that are set will be updated. +Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. """ -input IntegrationProviderPatch { - """ - Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. - """ - brand: JSON +input FunctionExecutionLogPatch { + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID - """Browser category (e.g. email, database, storage, ai, analytics)""" - category: String + """Log entry timestamp (partition key)""" createdAt: Datetime - """Short description of what this integration provides and when to use it""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Icon identifier for the UI (e.g. mail, database, cloud)""" - icon: String + """Unique log entry identifier""" 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 + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID - """A quantity of minutes.""" - minutes: Int + """Log severity: debug, info, warn, error""" + logLevel: String - """A quantity of months.""" - months: Int + """Log message text""" + message: String - """ - 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 + """Structured context (labels, trace data, extra fields)""" + metadata: JSON - """A quantity of years.""" - years: Int + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String } """ -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store """ -input IntervalFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput +type FunctionGraph { + """Evaluator/runtime context (function, js, sql, system)""" + context: String! - """Equal to the specified value.""" - equalTo: IntervalInput + """Timestamp of graph creation""" + createdAt: Datetime! - """Greater than the specified value.""" - greaterThan: IntervalInput + """Actor who created this graph""" + createdBy: UUID - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Included in the specified list.""" - in: [IntervalInput!] + """Human-readable description of the graph""" + description: String """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Reads and enables pagination through a set of `FunctionGraphExecution`. """ - isNull: Boolean + functionGraphExecutionsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Less than the specified value.""" - lessThan: IntervalInput + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput + """Only read the first `n` values of the set.""" + first: Int - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput + """Only read the last `n` values of the set.""" + last: Int - """Not equal to the specified value.""" - notEqualTo: IntervalInput + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Not included in the specified list.""" - notIn: [IntervalInput!] -} + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """A quantity of days.""" - days: Int + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionFilter + ): FunctionGraphExecutionConnection! - """A quantity of hours.""" - hours: Int + """Unique graph identifier""" + id: UUID! - """A quantity of minutes.""" - minutes: Int + """Whether graph passes structural validation""" + isValid: Boolean! - """A quantity of months.""" - months: Int + """Graph name (unique per database)""" + name: String! """ - 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. + Reads and enables pagination through a set of `PlatformFunctionDefinition`. """ - seconds: Float - - """A quantity of years.""" - years: Int -} + platformFunctionDefinitionsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -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 + """Only read the first `n` values of the set.""" + first: Int - """Contains the specified JSON.""" - contains: JSON + """Only read the last `n` values of the set.""" + last: Int - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """The method to use when ordering `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - """Contains the specified key.""" - containsKey: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDefinitionFilter + ): PlatformFunctionDefinitionConnection! """ - Not equal to the specified value, treating null like an ordinary value. + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. """ - distinctFrom: JSON + platformRepositoryWorkflowsByGraphId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Equal to the specified value.""" - equalTo: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Greater than the specified value.""" - greaterThan: JSON + """Only read the first `n` values of the set.""" + first: Int - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON + """Only read the last `n` values of the set.""" + last: Int - """Included in the specified list.""" - in: [JSON!] + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """The method to use when ordering `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] - """Less than the specified value.""" - lessThan: JSON + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryWorkflowFilter + ): PlatformRepositoryWorkflowConnection! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID! - """Not equal to the specified value.""" - notEqualTo: JSON + """Timestamp of last modification""" + updatedAt: Datetime! - """Not included in the specified list.""" - notIn: [JSON!] + """Array of validation error objects when is_valid = false""" + validationErrors: JSON } -"""A belongs-to (forward FK) relation""" -type MetaBelongsToRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - references: MetaRefTable! - type: String -} +"""Commit history — each commit snapshots a tree root for a store""" +type FunctionGraphCommit { + """User who authored the changes""" + authorId: UUID -"""Table constraints""" -type MetaConstraints { - foreignKey: [MetaForeignKeyConstraint!]! - primaryKey: MetaPrimaryKeyConstraint - unique: [MetaUniqueConstraint!]! -} + """User who committed (may differ from author)""" + committerId: UUID -"""Information about a PostgreSQL enum type""" -type MetaEnum { - """The PostgreSQL enum type name""" - name: String! + """Commit timestamp""" + date: Datetime! - """Allowed values for this enum""" - values: [String!]! -} + """Unique commit identifier""" + id: UUID! -"""Information about a table field/column""" -type MetaField { - """PostgreSQL column name""" - columnName: String! - description: String + """Optional commit message""" + message: String - """Enum metadata if this field has an enum type""" - enumValues: MetaEnum - hasDefault: Boolean! - isForeignKey: Boolean! - isNotNull: Boolean! - isPrimaryKey: Boolean! + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """Final GraphQL field name""" - name: String! - type: MetaType! -} + """Opaque store partition key for the global tier""" + scopeId: UUID! -"""Information about a foreign key constraint""" -type MetaForeignKeyConstraint { - fields: [MetaField!]! - name: String! - refFields: [MetaField!] - refTable: MetaRefTable - referencedFields: [String!]! - referencedTable: String! -} + """Store this commit belongs to""" + storeId: UUID! -"""A has-one or has-many (reverse FK) relation""" -type MetaHasRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - referencedBy: MetaRefTable! - type: String + """Root object ID of the tree snapshot at this commit""" + treeId: UUID } -"""i18n metadata for a table with @i18n tag""" -type MetaI18n { - """Fields that are translatable""" - translatableFields: [MetaI18nField!]! +"""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]! - """Name of the translation table""" - translationTable: String! -} + """A list of `FunctionGraphCommit` objects.""" + nodes: [FunctionGraphCommit]! -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! + """Information to aid in pagination.""" + pageInfo: PageInfo! - """PostgreSQL column type (text, citext)""" - type: String! + """ + The count of *all* `FunctionGraphCommit` you could get from the connection. + """ + totalCount: Int! } -"""Information about a database index""" -type MetaIndex { - columns: [String!]! - fields: [MetaField!] - isPrimary: Boolean! - isUnique: Boolean! - name: String! -} +"""A `FunctionGraphCommit` edge in the connection.""" +type FunctionGraphCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor -"""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 `FunctionGraphCommit` at the end of the edge.""" + node: FunctionGraphCommit } -"""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 -} +""" +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!] -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - fields: [MetaField!]! - name: String! -} + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter -"""Table query/mutation names""" -type MetaQuery { - all: String - create: String - delete: String - one: String - update: String -} + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! -} + """Filter by the object’s `date` field.""" + date: DatetimeFilter -"""Reference to a related table""" -type MetaRefTable { - name: String! -} + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! -} + """Filter by the object’s `message` field.""" + message: StringFilter -""" -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. -""" -type MetaScalarEncoding { - """For 'vector': declared length, else null.""" - dimensions: Int + """Negates the expression.""" + not: FunctionGraphCommitFilter - """For 'ltree': values are dot-separated path strings.""" - dotPath: Boolean + """Checks for any expressions in this list.""" + or: [FunctionGraphCommitFilter!] - """For 'vector': element scalar (e.g. 'float').""" - elementType: String + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter - """For 'geojson': Point/LineString/Polygon/…, else null.""" - geometrySubtype: String + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """ - Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. - """ - kind: String! + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """For 'geojson': spatial reference id, else null.""" - srid: Int + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter } -"""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 +"""An input for mutations affecting `FunctionGraphCommit`""" +input FunctionGraphCommitInput { + """User who authored the changes""" + authorId: UUID - """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers - """ - keyColumn: String + """User who committed (may differ from author)""" + committerId: UUID - """ - Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') - """ - scope: String! + """Commit timestamp""" + date: Datetime - """Provenance of the scope metadata (always 'smartTag')""" - source: String! + """Unique commit identifier""" + id: UUID - """Coarse bucket: 'global', 'database', or 'entity'""" - tier: String! -} + """Optional commit message""" + message: String -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Per-table search configuration""" - config: MetaSearchConfig + """Store this commit belongs to""" + storeId: UUID! - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! + """Root object ID of the tree snapshot at this commit""" + treeId: UUID } -"""A searchable column with its algorithm""" -type MetaSearchColumn { - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! - - """Column name (camelCase)""" - name: 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 + 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 } -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """Exponential decay factor per day""" - boostRecencyDecay: Float - - """Field used for recency decay""" - boostRecencyField: String +""" +Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. +""" +input FunctionGraphCommitPatch { + """User who authored the changes""" + authorId: UUID - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """User who committed (may differ from author)""" + committerId: UUID - """JSON-encoded per-adapter score weights""" - weights: String -} + """Commit timestamp""" + date: Datetime -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! + """Unique commit identifier""" + id: UUID - """Whether this table is a storage files table""" - isFilesTable: Boolean! -} + """Optional commit message""" + message: String -"""Information about a database table""" -type MetaTable { - constraints: MetaConstraints! - fields: [MetaField!]! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n - indexes: [MetaIndex!]! - inflection: MetaInflection! + """Opaque store partition key for the global tier""" + scopeId: UUID - """Final GraphQL output type name""" - name: String! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - query: MetaQuery! + """Store this commit belongs to""" + storeId: UUID - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime - relations: MetaRelations! - schemaName: String! + """Root object ID of the tree snapshot at this commit""" + treeId: UUID +} - """Provisioning scope metadata (null if no @scope tag)""" - scope: MetaScope +"""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]! - """Search metadata (null if no search configured)""" - search: MetaSearch + """A list of `FunctionGraph` objects.""" + nodes: [FunctionGraph]! - """Storage metadata (null if not a storage table)""" - storage: MetaStorage + """Information to aid in pagination.""" + pageInfo: PageInfo! - """PostgreSQL table name""" - tableName: String! - uniqueConstraints: [MetaUniqueConstraint!]! + """The count of *all* `FunctionGraph` you could get from the connection.""" + totalCount: Int! } -"""Information about a PostgreSQL type""" -type MetaType { - """Scalar serialization contract (null for plain scalars)""" - encoding: MetaScalarEncoding - gqlType: String! - hasDefault: Boolean - isArray: Boolean! - isNotNull: Boolean - pgType: String! - subtype: String -} +"""A `FunctionGraph` edge in the connection.""" +type FunctionGraphEdge { + """A cursor for use in pagination.""" + cursor: Cursor -"""Information about a unique constraint""" -type MetaUniqueConstraint { - fields: [MetaField!]! - name: String! + """The `FunctionGraph` at the end of the edge.""" + node: FunctionGraph } -""" -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 - copyGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CopyGraphInput! - ): CopyGraphPayload +"""Ephemeral execution state for flow graph evaluation""" +type FunctionGraphExecution { + """User actor propagated to asynchronous graph jobs""" + actorId: UUID - """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 + """Execution completion timestamp""" + completedAt: Datetime - """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 + """Index into execution_plan — tick only processes this wave""" + currentWave: Int! - """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 + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """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 + """Entity context propagated to asynchronous graph jobs""" + entityId: UUID - """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 + """Scope discriminator propagated to asynchronous graph jobs""" + entityType: String - """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 + """Machine-readable error code when status = failed""" + errorCode: String - """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 + """Human-readable error description when status = failed""" + errorMessage: String - """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 + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON - """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 + """ + Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. + """ + graph: FunctionGraph - """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 + """FK to the graph definition being executed""" + graphId: UUID! - """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 + """Unique execution identifier""" + id: UUID! - """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 + """Initial inputs provided at invocation time""" + inputPayload: JSON - """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 + """ + Partition coordinate for the function invocation that launched this graph execution + """ + invocationCreatedAt: Datetime - """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 + """Function invocation that launched this top-level graph execution""" + invocationId: UUID - """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 + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime! - """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 + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: 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. - """ - input: CreateFunctionInvocationAttemptInput! - ): CreateFunctionInvocationAttemptPayload + """Maximum ticks before execution is failed (default 100)""" + maxTicks: 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 + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON! - """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 + """Organization context propagated to asynchronous graph jobs""" + organizationId: UUID - """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 + """ + Selected graphOutput portName values; NULL or empty returns all graph outputs + """ + outputNames: [String] - """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 + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String - """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 + """Final result extracted from terminal output node""" + outputPayload: JSON - """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 + """Target output port name (default: value)""" + outputPort: String! - """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 + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID - """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 + """ + Function invocation parent assigned to node invocations spawned by this execution + """ + parentInvocationId: UUID - """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 + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """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 + """Principal identity propagated to asynchronous graph jobs""" + principalId: UUID - """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 + """Opaque store partition key for the global tier""" + scopeId: UUID! - """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 + """Execution start timestamp""" + startedAt: Datetime! - """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 + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! - """Creates a single `PlatformFunctionInvocation`.""" - createPlatformFunctionInvocation( - """ + """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! + + """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""" + status: String! +} + +"""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 `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 +} + +"""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! + + """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""" + status: String +} + +"""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 + 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 +} + +""" +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 + + """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""" + status: String +} + +"""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 for system/cron)""" + 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, 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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 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! + + """ + 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 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 + + """ + 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 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 + + """ + 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 `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 +} + +"""An input for mutations affecting `FunctionInvocation`""" +input FunctionInvocationInput { + """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 + + """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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 + 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 +} + +""" +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 + + """ + 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 + + """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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 +} + +"""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 { + """Reads and enables pagination through a set of `Build`.""" + buildsByCatalogImageId( + """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! + 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 + + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitionsByCatalogImageId( + """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 `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDefinitionFilter + ): FunctionDefinitionConnection! + + """Reads and enables pagination through a set of `FunctionDeployment`.""" + functionDeploymentsByCatalogImageId( + """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! + + """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! + + """Reads and enables pagination through a set of `ResourceDefinition`.""" + resourceDefinitionsByCatalogImageId( + """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 `Resource`.""" + resourcesByCatalogImageId( + """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! + + """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 `buildsByCatalogImageId` relation.""" + buildsByCatalogImageId: ImageToManyBuildFilter + + """`buildsByCatalogImageId` exist.""" + buildsByCatalogImageIdExist: Boolean + + """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 `functionDefinitionsByCatalogImageId` relation.""" + functionDefinitionsByCatalogImageId: ImageToManyFunctionDefinitionFilter + + """`functionDefinitionsByCatalogImageId` exist.""" + functionDefinitionsByCatalogImageIdExist: Boolean + + """Filter by the object’s `functionDeploymentsByCatalogImageId` relation.""" + functionDeploymentsByCatalogImageId: ImageToManyFunctionDeploymentFilter + + """`functionDeploymentsByCatalogImageId` exist.""" + functionDeploymentsByCatalogImageIdExist: Boolean + + """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 `resourceDefinitionsByCatalogImageId` relation.""" + resourceDefinitionsByCatalogImageId: ImageToManyResourceDefinitionFilter + + """`resourceDefinitionsByCatalogImageId` exist.""" + resourceDefinitionsByCatalogImageIdExist: Boolean + + """Filter by the object’s `resourcesByCatalogImageId` relation.""" + resourcesByCatalogImageId: ImageToManyResourceFilter + + """`resourcesByCatalogImageId` exist.""" + resourcesByCatalogImageIdExist: Boolean + + """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 `Build` object types. All fields are combined with a logical ‘and.’ +""" +input ImageToManyBuildFilter { + """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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input ImageToManyFunctionDefinitionFilter { + """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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input ImageToManyFunctionDeploymentFilter { + """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 `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 +} + +""" +A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input ImageToManyResourceDefinitionFilter { + """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 ImageToManyResourceFilter { + """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 +} + +"""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 { + """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 { + 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 + + """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 `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 `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 `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 `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 + 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 `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 `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 `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 `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 + 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. + """ + input: PlatformResourceInstallationsUpgradeInput! + ): PlatformResourceInstallationsUpgradePayload + + """ + 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 + 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 `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 `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 `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: CreatePlatformFunctionInvocationInput! - ): CreatePlatformFunctionInvocationPayload + 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 `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! + 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 for system/automated)""" + 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 for system/automated)""" + 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 for system/automated)""" + 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 `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 + 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 + 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 + 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 `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""" + actorId: UUID + + """ + Reads a single `PlatformImage` that is related to this `PlatformBuild`. + """ + catalogImage: PlatformImage + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: 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! + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """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 `catalogImage` relation.""" + catalogImage: PlatformImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 `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 `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `logs` field.""" + logs: ConstructiveInternalTypeUploadFilter + + """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""" + actorId: UUID + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: 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 + + """app_jobs row running this build""" + jobId: BigInt + + """Build log object in storage; step rows slice it by byte range""" + logs: ConstructiveInternalTypeUpload + + """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 + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_DESC + COMMIT_SHA_ASC + COMMIT_SHA_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 + JOB_ID_ASC + JOB_ID_DESC + LOGS_ASC + LOGS_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""" + actorId: UUID + + """Catalog image this build produced""" + catalogImageId: UUID + + """Commit this build built""" + commitSha: 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 + + """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 + + """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 +} + +""" +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 executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean! + + """ + Reads a single `PlatformImage` that is related to this `PlatformFunctionDefinition`. + """ + catalogImage: PlatformImage + + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID + + """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]! + + """ + 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 + + """ + 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 `billable` field.""" + billable: BooleanFilter + + """Filter by the object’s `catalogImage` relation.""" + catalogImage: PlatformImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 `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 executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean + + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID + + """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] + + """ + 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), 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 + + """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 + BILLABLE_ASC + BILLABLE_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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_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 executions are metered through the invocation ledger and billing quota gate + """ + billable: Boolean + + """Catalog image this definition runs (NULL when image is named directly)""" + catalogImageId: UUID + + """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] + + """ + 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), 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 + + """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! + + """ + Reads a single `PlatformImage` that is related to this `PlatformFunctionDeployment`. + """ + catalogImage: PlatformImage + + """ + Catalog image this deployment pulls (NULL when image is named directly) + """ + catalogImageId: UUID + + """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 for system/automated)""" + 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 for system/automated)""" + 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 for system/automated)""" + 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 `catalogImage` relation.""" + catalogImage: PlatformImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 + + """ + Catalog image this deployment pulls (NULL when image is named directly) + """ + catalogImageId: UUID + + """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 + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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 + + """ + Catalog image this deployment pulls (NULL when image is named directly) + """ + catalogImageId: UUID + + """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 for system/cron)""" + 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 for system/cron)""" + 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 for system/cron)""" + 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 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! + + """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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 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! + + """ + 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 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 + + """ + 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 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 + + """ + 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 `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 +} + +"""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 + + """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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 + 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 +} + +""" +Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. +""" +input PlatformFunctionInvocationPatch { + """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 + + """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 + + """ + 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 + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Function input payload""" + payload: JSON + + """ + 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 +} + +""" +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 `PlatformBuild`.""" + platformBuildsByCatalogImageId( + """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 `PlatformFunctionDefinition`. + """ + platformFunctionDefinitionsByCatalogImageId( + """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 `PlatformFunctionDeployment`. + """ + platformFunctionDeploymentsByCatalogImageId( + """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 `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! + + """ + Reads and enables pagination through a set of `PlatformResourceDefinition`. + """ + platformResourceDefinitionsByCatalogImageId( + """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 `PlatformResource`.""" + platformResourcesByCatalogImageId( + """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! + + """ + 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 `platformBuildsByCatalogImageId` relation.""" + platformBuildsByCatalogImageId: PlatformImageToManyPlatformBuildFilter + + """`platformBuildsByCatalogImageId` exist.""" + platformBuildsByCatalogImageIdExist: Boolean + + """ + Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. + """ + platformFunctionDefinitionsByCatalogImageId: PlatformImageToManyPlatformFunctionDefinitionFilter + + """`platformFunctionDefinitionsByCatalogImageId` exist.""" + platformFunctionDefinitionsByCatalogImageIdExist: Boolean + + """ + Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. + """ + platformFunctionDeploymentsByCatalogImageId: PlatformImageToManyPlatformFunctionDeploymentFilter + + """`platformFunctionDeploymentsByCatalogImageId` exist.""" + platformFunctionDeploymentsByCatalogImageIdExist: Boolean + + """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 `platformResourceDefinitionsByCatalogImageId` relation. + """ + platformResourceDefinitionsByCatalogImageId: PlatformImageToManyPlatformResourceDefinitionFilter + + """`platformResourceDefinitionsByCatalogImageId` exist.""" + platformResourceDefinitionsByCatalogImageIdExist: Boolean + + """Filter by the object’s `platformResourcesByCatalogImageId` relation.""" + platformResourcesByCatalogImageId: PlatformImageToManyPlatformResourceFilter + + """`platformResourcesByCatalogImageId` exist.""" + platformResourcesByCatalogImageIdExist: Boolean + + """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 `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageToManyPlatformBuildFilter { + """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 `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageToManyPlatformFunctionDefinitionFilter { + """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 `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageToManyPlatformFunctionDeploymentFilter { + """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 `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 +} + +""" +A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformImageToManyPlatformResourceDefinitionFilter { + """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 PlatformImageToManyPlatformResourceFilter { + """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 +} + +"""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! + 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 `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 for system/automated)""" + 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 for system/automated)""" + 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 for system/automated)""" + 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 `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 `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 + 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 + 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 + 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 `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""" + 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""" + 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""" + 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""" + 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""" + 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""" + 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 - """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 `embedding` field.""" + embedding: VectorFilter - """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 `id` field.""" + id: UUIDFilter - """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 + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter - """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 + """Negates the expression.""" + not: PlatformProposalsChunkFilter - """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 + """Checks for any expressions in this list.""" + or: [PlatformProposalsChunkFilter!] - """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 + """Filter by the object’s `platformProposals` relation.""" + platformProposals: PlatformProposalFilter - """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 `platformProposalsId` field.""" + platformProposalsId: UUIDFilter - """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 + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """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 + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput +} - """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 +"""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 - """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 + """ + 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 +} - """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 `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 +} - """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 `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 - """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 + """ + 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 +} - """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 +""" +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! - """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 + """ + 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 - """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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateResourceInput! - ): CreateResourcePayload + offset: Int + + """The method to use when ordering `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateResourceDefinitionInput! - ): CreateResourceDefinitionPayload + 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 - """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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateResourceEventInput! - ): CreateResourceEventPayload + offset: Int + + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateResourceInstallationInput! - ): CreateResourceInstallationPayload + 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 +} - """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 +"""Grants that make a registry usable by one scope""" +type PlatformRegistryGrant { + """Endpoint actions this grant allows (read, write)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: 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 + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """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 + """User who issued this grant""" + grantedBy: 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 + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: 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 + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID! - """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 + """ + Reads a single `PlatformRegistry` that is related to this `PlatformRegistryGrant`. + """ + registry: PlatformRegistry - """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 + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} - """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 `PlatformRegistryGrant` values.""" +type PlatformRegistryGrantConnection { + """ + A list of edges which contains the `PlatformRegistryGrant` and cursor to aid in pagination. + """ + edges: [PlatformRegistryGrantEdge]! - """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 `PlatformRegistryGrant` objects.""" + nodes: [PlatformRegistryGrant]! - """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* `PlatformRegistryGrant` 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 `PlatformRegistryGrant` edge in the connection.""" +type PlatformRegistryGrantEdge { + """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 `PlatformRegistryGrant` at the end of the edge.""" + node: PlatformRegistryGrant +} - """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 `PlatformRegistryGrant` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRegistryGrantFilter { + """Filter by the object’s `actions` field.""" + actions: StringListFilter - """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 + """Checks for all expressions in this list.""" + and: [PlatformRegistryGrantFilter!] - """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 `createdByPrincipal` field.""" + createdByPrincipal: 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 `expiresAt` field.""" + expiresAt: DatetimeFilter - """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 + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter - """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 `granteeKey` field.""" + granteeKey: 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 `granteeScope` field.""" + granteeScope: StringFilter - """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 + """Negates the expression.""" + not: PlatformRegistryGrantFilter - """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 + """Checks for any expressions in this list.""" + or: [PlatformRegistryGrantFilter!] - """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 `registry` relation.""" + registry: PlatformRegistryFilter - """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 + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter - """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 + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """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 `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """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 `PlatformRegistryGrant`""" +input PlatformRegistryGrantInput { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + createdByPrincipal: UUID - """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 + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """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 + """User who issued this grant""" + grantedBy: UUID - """ - 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 + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: 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 + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID - """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 + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} - """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 +"""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 +} - """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 +""" +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 - """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 + """When this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """ - 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 + """User who issued this grant""" + grantedBy: UUID - """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 + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: 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 + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String + 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 + """Registry this grant applies to""" + registryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} - """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 +"""An input for mutations affecting `PlatformRegistry`""" +input PlatformRegistryInput { + """How a client authenticates to this registry (none, basic, token)""" + authMode: String - """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 + """ + Path prefix within the host (npm scope, OCI project); NULL = the host root + """ + basePath: String + createdAt: Datetime + createdByPrincipal: UUID - """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 + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String - """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 + """ + 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 - """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 + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID - """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 + """Whether this registry is published for use by any scope""" + isPublished: Boolean - """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 + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String! - """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 + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON - """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 + """ + Message from the last failed provision/deprovision attempt (NULL when healthy) + """ + lastError: String - """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 + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """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 + """Human-readable registry name (e.g. github-container-registry)""" + name: String! - """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 + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean - """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 + """ + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) + """ + role: 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 + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} - """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 +"""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 +} - """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 +""" +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 + + """ + Path prefix within the host (npm scope, OCI project); NULL = the host root + """ + basePath: String + createdAt: Datetime + createdByPrincipal: UUID - """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 + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String - """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 + """ + 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 - """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 + """ + Resource installation running this registry (NULL for an external registry) + """ + installationId: UUID - """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 + """Whether this registry is published for use by any scope""" + isPublished: Boolean - """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. - """ - input: PlatformResourceInstallationsUpgradeInput! - ): PlatformResourceInstallationsUpgradePayload + """Artifact ecosystem this registry serves (oci, npm)""" + kind: String + + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON """ - 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. + Message from the last failed provision/deprovision attempt (NULL when healthy) """ - 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 + lastError: String - """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 + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """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 + """Human-readable registry name (e.g. github-container-registry)""" + name: String - """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 + """Whether this registry is reserved for platform-internal use""" + platformOnly: Boolean """ - Updates a single `FunctionCapabilityBinding` using a unique key and a patch. + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) """ - updateFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionCapabilityBindingInput! - ): UpdateFunctionCapabilityBindingPayload + role: String - """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 + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String + updatedAt: Datetime + updatedByPrincipal: UUID +} - """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 +""" +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 `FunctionDeploymentEvent` using a unique key and a patch. + TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. """ - updateFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionDeploymentEventInput! - ): UpdateFunctionDeploymentEventPayload + cloneUrlTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String! """ - Updates a single `FunctionExecutionLog` using a unique key and a patch. + TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. """ - updateFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionExecutionLogInput! - ): UpdateFunctionExecutionLogPayload + defaultBranchTrgmSimilarity: Float - """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 + """What this repository holds""" + description: String - """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 + """ + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. + """ + descriptionTrgmSimilarity: Float + embedding: Vector + embeddingUpdatedAt: Datetime """ - Updates a single `FunctionGraphExecution` using a unique key and a patch. + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. """ - updateFunctionGraphExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionInput! - ): UpdateFunctionGraphExecutionPayload + embeddingVectorDistance: Float """ - Updates a single `FunctionGraphExecutionNodeState` using a unique key and a patch. + Identifier of this repository in the external provider (NULL for local) """ - updateFunctionGraphExecutionNodeState( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionNodeStateInput! - ): UpdateFunctionGraphExecutionNodeStatePayload + externalId: String """ - Updates a single `FunctionGraphExecutionOutput` using a unique key and a patch. + TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. """ - updateFunctionGraphExecutionOutput( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionOutputInput! - ): UpdateFunctionGraphExecutionOutputPayload + externalIdTrgmSimilarity: Float + 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! + + """ + TRGM similarity when searching `name`. Returns null when no trgm search filter is active. + """ + nameTrgmSimilarity: Float + + """User who owns this repository""" + ownerId: UUID + + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByRepositoryId( + """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 `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: UpdateFunctionGraphRefInput! - ): UpdateFunctionGraphRefPayload + where: PlatformBuildFilter + ): PlatformBuildConnection! + + """Reads and enables pagination through a set of `PlatformProposal`.""" + platformProposalsByRepositoryId( + """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 `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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: UpdateFunctionGraphStoreInput! - ): UpdateFunctionGraphStorePayload + offset: Int + + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: UpdateFunctionInvocationInput! - ): UpdateFunctionInvocationPayload + where: PlatformProposalFilter + ): PlatformProposalConnection! """ - Updates a single `FunctionInvocationAttempt` using a unique key and a patch. + Reads and enables pagination through a set of `PlatformRepositoryEvent`. """ - updateFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionInvocationAttemptInput! - ): UpdateFunctionInvocationAttemptPayload + platformRepositoryEventsByRepositoryId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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 + """Read all values in the set before (above) this cursor.""" + before: Cursor - """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 + """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 `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!] = [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: PlatformRepositoryEventFilter + ): PlatformRepositoryEventConnection! + + """ + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. + """ + platformRepositoryWorkflowsByRepositoryId( + """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 `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [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: 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 + + """ + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges + """ + requiredChecks: [String]! + 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 - """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 + """ + 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! """ - Updates a single `PlatformFunctionApiBinding` using a unique key and a patch. + TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. """ - updatePlatformFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionApiBindingInput! - ): UpdatePlatformFunctionApiBindingPayload + slugTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID """ - Updates a single `PlatformFunctionCapabilityBinding` using a unique key and a patch. + Read reach: private (owner), internal (scope members), public (any authenticated actor) """ - updatePlatformFunctionCapabilityBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionCapabilityBindingInput! - ): UpdatePlatformFunctionCapabilityBindingPayload + visibility: String! """ - Updates a single `PlatformFunctionDefinition` using a unique key and a patch. + TRGM similarity when searching `visibility`. Returns null when no trgm search filter is active. """ - updatePlatformFunctionDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDefinitionInput! - ): UpdatePlatformFunctionDefinitionPayload + visibilityTrgmSimilarity: Float +} +"""A connection to a list of `PlatformRepository` values.""" +type PlatformRepositoryConnection { """ - Updates a single `PlatformFunctionDeployment` using a unique key and a patch. + A list of edges which contains the `PlatformRepository` and cursor to aid in pagination. """ - updatePlatformFunctionDeployment( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDeploymentInput! - ): UpdatePlatformFunctionDeploymentPayload + edges: [PlatformRepositoryEdge]! + + """A list of `PlatformRepository` objects.""" + nodes: [PlatformRepository]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Updates a single `PlatformFunctionDeploymentEvent` using a unique key and a patch. + The count of *all* `PlatformRepository` you could get from the connection. """ - updatePlatformFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionDeploymentEventInput! - ): UpdatePlatformFunctionDeploymentEventPayload + totalCount: Int! +} + +"""A `PlatformRepository` edge in the connection.""" +type PlatformRepositoryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRepository` at the end of the edge.""" + node: PlatformRepository +} +"""Normalized repository events from local hooks and external providers""" +type PlatformRepositoryEvent { """ - Updates a single `PlatformFunctionExecutionLog` using a unique key and a patch. + Authenticated actor behind the event (NULL when only the sending system was proven) """ - updatePlatformFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionExecutionLogInput! - ): UpdatePlatformFunctionExecutionLogPayload + actorId: UUID + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID """ - Updates a single `PlatformFunctionInvocation` using a unique key and a patch. + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - updatePlatformFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionInvocationInput! - ): UpdatePlatformFunctionInvocationPayload + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID! """ - Updates a single `PlatformFunctionInvocationAttempt` using a unique key and a patch. + Unverified provider detail (payload login, commit author, external URLs) """ - updatePlatformFunctionInvocationAttempt( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformFunctionInvocationAttemptInput! - ): UpdatePlatformFunctionInvocationAttemptPayload + metadata: JSON - """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 + """Normalized event body the workflows read""" + payload: JSON! - """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 + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByEventId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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 + """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 `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. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: UpdatePlatformInfraStoreInput! - ): UpdatePlatformInfraStorePayload + offset: Int + + """The method to use when ordering `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [PRIMARY_KEY_ASC] - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: UpdatePlatformNamespaceInput! - ): UpdatePlatformNamespacePayload + where: PlatformBuildFilter + ): PlatformBuildConnection! + + """Git ref the event concerns (refs/heads/main)""" + ref: String """ - Updates a single `PlatformNamespaceEvent` using a unique key and a patch. + Reads a single `PlatformRepository` that is related to this `PlatformRepositoryEvent`. """ - updatePlatformNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformNamespaceEventInput! - ): UpdatePlatformNamespaceEventPayload + repository: PlatformRepository - """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 + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} +"""A connection to a list of `PlatformRepositoryEvent` values.""" +type PlatformRepositoryEventConnection { """ - Updates a single `PlatformResourceDefinition` using a unique key and a patch. + A list of edges which contains the `PlatformRepositoryEvent` and cursor to aid in pagination. """ - updatePlatformResourceDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceDefinitionInput! - ): UpdatePlatformResourceDefinitionPayload + edges: [PlatformRepositoryEventEdge]! + + """A list of `PlatformRepositoryEvent` objects.""" + nodes: [PlatformRepositoryEvent]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Updates a single `PlatformResourceEvent` using a unique key and a patch. + The count of *all* `PlatformRepositoryEvent` you could get from the connection. """ - updatePlatformResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceEventInput! - ): UpdatePlatformResourceEventPayload + totalCount: Int! +} + +"""A `PlatformRepositoryEvent` edge in the connection.""" +type PlatformRepositoryEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformRepositoryEvent` at the end of the edge.""" + node: PlatformRepositoryEvent +} + +""" +A filter to be used against `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""An input for mutations affecting `PlatformRepositoryEvent`""" +input PlatformRepositoryEventInput { """ - Updates a single `PlatformResourceInstallation` using a unique key and a patch. + Authenticated actor behind the event (NULL when only the sending system was proven) """ - updatePlatformResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceInstallationInput! - ): UpdatePlatformResourceInstallationPayload + actorId: UUID + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID """ - Updates a single `PlatformResourceStatusCheck` using a unique key and a patch. + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - updatePlatformResourceStatusCheck( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceStatusCheckInput! - ): UpdatePlatformResourceStatusCheckPayload + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID """ - Updates a single `PlatformResourceUsageLog` using a unique key and a patch. + Unverified provider detail (payload login, commit author, external URLs) """ - updatePlatformResourceUsageLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceUsageLogInput! - ): UpdatePlatformResourceUsageLogPayload + 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 `PlatformRepositoryEvent`.""" +enum 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 +} +""" +Represents an update to a `PlatformRepositoryEvent`. Fields that are set will be updated. +""" +input PlatformRepositoryEventPatch { """ - Updates a single `PlatformResourceUsageSummary` using a unique key and a patch. + Authenticated actor behind the event (NULL when only the sending system was proven) """ - updatePlatformResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformResourceUsageSummaryInput! - ): UpdatePlatformResourceUsageSummaryPayload + actorId: UUID + + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID """ - Updates a single `PlatformWebhookEndpoint` using a unique key and a patch. + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - updatePlatformWebhookEndpoint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformWebhookEndpointInput! - ): UpdatePlatformWebhookEndpointPayload + deliveryId: String + + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String + id: UUID """ - Updates a single `PlatformWebhookEvent` using a unique key and a patch. + Unverified provider detail (payload login, commit author, external URLs) """ - updatePlatformWebhookEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformWebhookEventInput! - ): UpdatePlatformWebhookEventPayload + metadata: JSON - """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 + """Normalized event body the workflows read""" + payload: JSON - """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 + """Git ref the event concerns (refs/heads/main)""" + ref: String - """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 + """Repository this event happened to""" + repositoryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} + +""" +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +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: [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 """ - Updates a single `ResourceInstallation` using a unique key and a patch. + Filter by the object’s `platformRepositoryEventsByRepositoryId` relation. """ - updateResourceInstallation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceInstallationInput! - ): UpdateResourceInstallationPayload + platformRepositoryEventsByRepositoryId: PlatformRepositoryToManyPlatformRepositoryEventFilter - """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 + """`platformRepositoryEventsByRepositoryId` exist.""" + platformRepositoryEventsByRepositoryIdExist: Boolean - """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 + """ + 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 `requiredChecks` field.""" + requiredChecks: StringListFilter + + """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 """ - Updates a single `ResourceUsageSummary` using a unique key and a patch. + 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. """ - updateResourceUsageSummary( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceUsageSummaryInput! - ): UpdateResourceUsageSummaryPayload + unifiedSearch: String - """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 + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """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 + """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 } -""" -Logical namespace containers for grouping secrets, config, functions, and other resources -""" -type Namespace { - """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 + embedding: Vector - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + 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 - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String + id: UUID - """Only read the first `n` values of the set.""" - first: Int + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Provider detail (installation id, topics, external URLs)""" + 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 repository name""" + name: String! + + """User who owns this repository""" + ownerId: UUID + + """Where the repository lives: local (platform git server) or github""" + provider: String + + """ + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges + """ + requiredChecks: [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 `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 + 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 + REQUIRED_CHECKS_ASC + REQUIRED_CHECKS_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 +} - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] +""" +Represents an update to a `PlatformRepository`. Fields that are set will be updated. +""" +input PlatformRepositoryPatch { + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionDeploymentFilter - ): FunctionDeploymentConnection! - id: UUID! + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean! + """What this repository holds""" + description: String + embedding: Vector """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + 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. """ - isManaged: Boolean! + embeddingText: String - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON! + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String + id: UUID - """Most recent provisioning or reconcile error message""" - lastError: String + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """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 """ - Globally unique computed namespace identifier via inflection.underscore + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges """ - namespaceName: String! + requiredChecks: [String] - """Reads and enables pagination through a set of `ResourceDefinition`.""" - resourceDefinitions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """URL-safe identifier, unique within the owning scope""" + slug: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String +} - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryToManyPlatformBuildFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBuildFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where no related entity matches.""" + none: PlatformBuildFilter - """ - 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: PlatformBuildFilter +} - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] +""" +A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryToManyPlatformProposalFilter { + """Filters to entities where every related entity matches.""" + every: PlatformProposalFilter - """ - 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: PlatformProposalFilter - """Reads and enables pagination through a set of `ResourceInstallation`.""" - resourceInstallations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filters to entities where at least one related entity matches.""" + some: PlatformProposalFilter +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against many `PlatformRepositoryEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryToManyPlatformRepositoryEventFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryEventFilter - """Only read the first `n` values of the set.""" - first: Int + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryEventFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryEventFilter +} - """ - 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 `PlatformRepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryToManyPlatformRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRepositoryWorkflowFilter - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """Filters to entities where no related entity matches.""" + none: PlatformRepositoryWorkflowFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceInstallationFilter - ): ResourceInstallationConnection! + """Filters to entities where at least one related entity matches.""" + some: PlatformRepositoryWorkflowFilter +} - """Reads and enables pagination through a set of `Resource`.""" - resources( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""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! - """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 + """Event type that fires this workflow""" + eventType: String! - """Only read the last `n` values of the set.""" - last: Int + """ + Reads a single `FunctionGraph` that is related to this `PlatformRepositoryWorkflow`. + """ + graph: FunctionGraph - """ - 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 `Resource`.""" - orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + """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: ResourceFilter - ): ResourceConnection! + """Whether matching events fire this workflow""" + isEnabled: Boolean! - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String! - updatedAt: Datetime + """Human-readable workflow name""" + name: String! - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuildsByWorkflowId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13275,534 +32462,694 @@ type Namespace { """ offset: Int - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [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: WebhookEndpointFilter - ): WebhookEndpointConnection! -} + where: PlatformBuildFilter + ): PlatformBuildConnection! + + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String -"""A connection to a list of `Namespace` values.""" -type NamespaceConnection { """ - A list of edges which contains the `Namespace` and cursor to aid in pagination. + Reads a single `PlatformRepository` that is related to this `PlatformRepositoryWorkflow`. """ - 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 for system/automated)""" - actorId: UUID - - """Event timestamp (partition key)""" - createdAt: Datetime! + repository: PlatformRepository - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Repository whose events this workflow listens to""" + repositoryId: UUID! """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Secret names this workflow's builds may resolve, intersected with the build lane's realm """ - 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 + requiredSecrets: [String]! - """Namespace this event belongs to""" - namespaceId: UUID! + """URL-safe identifier, unique within the repository""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `NamespaceEvent` values.""" -type NamespaceEventConnection { +"""A connection to a list of `PlatformRepositoryWorkflow` values.""" +type PlatformRepositoryWorkflowConnection { """ - A list of edges which contains the `NamespaceEvent` and cursor to aid in pagination. + A list of edges which contains the `PlatformRepositoryWorkflow` and cursor to aid in pagination. """ - edges: [NamespaceEventEdge]! + edges: [PlatformRepositoryWorkflowEdge]! - """A list of `NamespaceEvent` objects.""" - nodes: [NamespaceEvent]! + """A list of `PlatformRepositoryWorkflow` objects.""" + nodes: [PlatformRepositoryWorkflow]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `NamespaceEvent` you could get from the connection.""" + """ + The count of *all* `PlatformRepositoryWorkflow` you could get from the connection. + """ totalCount: Int! } -"""A `NamespaceEvent` edge in the connection.""" -type NamespaceEventEdge { +"""A `PlatformRepositoryWorkflow` edge in the connection.""" +type PlatformRepositoryWorkflowEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NamespaceEvent` at the end of the edge.""" - node: NamespaceEvent + """The `PlatformRepositoryWorkflow` at the end of the edge.""" + node: PlatformRepositoryWorkflow } """ -A filter to be used against `NamespaceEvent` 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 NamespaceEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformRepositoryWorkflowFilter { """Checks for all expressions in this list.""" - and: [NamespaceEventFilter!] + 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 `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 `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 `message` field.""" - message: StringFilter + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `isEnabled` field.""" + isEnabled: BooleanFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: NamespaceEventFilter + not: PlatformRepositoryWorkflowFilter """Checks for any expressions in this list.""" - or: [NamespaceEventFilter!] -} + or: [PlatformRepositoryWorkflowFilter!] -"""An input for mutations affecting `NamespaceEvent`""" -input NamespaceEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """Filter by the object’s `platformBuildsByWorkflowId` relation.""" + platformBuildsByWorkflowId: PlatformRepositoryWorkflowToManyPlatformBuildFilter - """Event timestamp (partition key)""" - createdAt: Datetime + """`platformBuildsByWorkflowId` exist.""" + platformBuildsByWorkflowIdExist: Boolean - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """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`""" +input PlatformRepositoryWorkflowInput { """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + 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! - """Unique event identifier""" + """Flow graph to run when this workflow fires""" + graphId: UUID id: UUID - """Human-readable description of the event""" - message: String + """Static inputs merged into the graph run alongside the event""" + inputs: JSON - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Whether matching events fire this workflow""" + isEnabled: Boolean - """Namespace this event belongs to""" - namespaceId: UUID! + """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 `NamespaceEvent`.""" -enum NamespaceEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_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 - DATABASE_ID_ASC - DATABASE_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 - 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 + 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 `NamespaceEvent`. Fields that are set will be updated. +Represents an update to a `PlatformRepositoryWorkflow`. Fields that are set will be updated. """ -input NamespaceEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +input PlatformRepositoryWorkflowPatch { + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean - """Event timestamp (partition key)""" + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Database that owns this resource (database-scoped isolation)""" - databaseId: 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 """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Secret names this workflow's builds may resolve, intersected with the build lane's realm """ - eventType: String + requiredSecrets: [String] - """Unique event identifier""" - id: UUID + """URL-safe identifier, unique within the repository""" + slug: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Human-readable description of the event""" - message: String +""" +A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformRepositoryWorkflowToManyPlatformBuildFilter { + """Filters to entities where every related entity matches.""" + every: PlatformBuildFilter - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Filters to entities where no related entity matches.""" + none: PlatformBuildFilter - """Namespace this event belongs to""" - namespaceId: UUID + """Filters to entities where at least one related entity matches.""" + some: PlatformBuildFilter } """ -A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ +Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace """ -input NamespaceFilter { - """Checks for all expressions in this list.""" - and: [NamespaceFilter!] +type PlatformResource { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """ + Reads a single `PlatformImage` that is related to this `PlatformResource`. + """ + catalogImage: PlatformImage - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Catalog image this resource runs (NULL when the image is named inline in spec) + """ + catalogImageId: UUID - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """ + CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) + """ + cpuLimitMillicores: BigInt - """Filter by the object’s `description` field.""" - description: StringFilter + """ + Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) + """ + cpuRequestMillicores: BigInt + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Filter by the object’s `functionDeployments` relation.""" - functionDeployments: NamespaceToManyFunctionDeploymentFilter + """Cumulative error count for this resource""" + errorCount: Int! + id: UUID! - """`functionDeployments` exist.""" - functionDeploymentsExist: Boolean + """ + Reads a single `PlatformResourceInstallation` that is related to this `PlatformResource`. + """ + installation: PlatformResourceInstallation - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Installation ("release") this resource belongs to (NULL for standalone resources) + """ + installationId: UUID - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """ + 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]! - """Filter by the object’s `isManaged` field.""" - isManaged: BooleanFilter + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer + """ + kind: String! - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Key/value pairs for selecting and filtering resources""" + labels: JSON! - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Most recent provisioning or runtime error message""" + lastError: String - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) + """ + lastHeartbeatAt: Datetime - """Filter by the object’s `namespaceName` field.""" - namespaceName: StringFilter + """ + Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) + """ + memoryLimitBytes: BigInt - """Negates the expression.""" - not: NamespaceFilter + """ + Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) + """ + memoryRequestBytes: BigInt - """Checks for any expressions in this list.""" - or: [NamespaceFilter!] + """Human-readable resource name""" + name: String! - """Filter by the object’s `resourceDefinitions` relation.""" - resourceDefinitions: NamespaceToManyResourceDefinitionFilter + """ + Reads a single `PlatformNamespace` that is related to this `PlatformResource`. + """ + namespace: PlatformNamespace - """`resourceDefinitions` exist.""" - resourceDefinitionsExist: Boolean + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! - """Filter by the object’s `resourceInstallations` relation.""" - resourceInstallations: NamespaceToManyResourceInstallationFilter + """ + Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + """ + platformResourceStatusChecksByResourceId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """`resourceInstallations` exist.""" - resourceInstallationsExist: Boolean + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `resources` relation.""" - resources: NamespaceToManyResourceFilter + """Only read the first `n` values of the set.""" + first: Int - """`resources` exist.""" - resourcesExist: Boolean + """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 + + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceStatusCheckFilter + ): PlatformResourceStatusCheckConnection! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + 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 - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: NamespaceToManyWebhookEndpointFilter + """ + Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) + """ + replicas: Int - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean -} + """ + 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]! -"""An input for mutations affecting `Namespace`""" -input NamespaceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime + """ + 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]! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """ + Reads a single `PlatformResourceDefinition` that is related to this `PlatformResource`. + """ + resourceDefinition: PlatformResourceDefinition - """Optional human-readable description of this namespace""" - description: String - id: UUID + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - isManaged: Boolean - - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + spec: JSON! - """Most recent provisioning or reconcile error message""" - lastError: String + """ + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting + """ + status: String! - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON """ - Globally unique computed namespace identifier via inflection.underscore + Storage class/tier, derived from spec.storage_class (StatefulSet; NULL if unset) """ - namespaceName: String! + storageClass: String """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed + Persistent volume size in bytes, derived from spec.storage_size (StatefulSet; NULL if unset/invalid) """ - status: String + storageSizeBytes: BigInt updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""Methods to use when ordering `Namespace`.""" -enum NamespaceOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_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 - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID +"""A connection to a list of `PlatformResource` values.""" +type PlatformResourceConnection { + """ + A list of edges which contains the `PlatformResource` and cursor to aid in pagination. + """ + edges: [PlatformResourceEdge]! - """Optional human-readable description of this namespace""" - description: String - id: UUID + """A list of `PlatformResource` objects.""" + nodes: [PlatformResource]! - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + The count of *all* `PlatformResource` you could get from the connection. """ - isManaged: Boolean - - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON - - """Most recent provisioning or reconcile error message""" - lastError: String + totalCount: Int! +} - """Human-readable namespace name (e.g. default, production, oauth)""" - name: 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 +} +"""A connection to a list of `PlatformResourceDeclaredCapacity` values.""" +type PlatformResourceDeclaredCapacityConnection { """ - Globally unique computed namespace identifier via inflection.underscore + A list of edges which contains the `PlatformResourceDeclaredCapacity` and cursor to aid in pagination. """ - namespaceName: String + edges: [PlatformResourceDeclaredCapacityEdge]! + + """A list of `PlatformResourceDeclaredCapacity` objects.""" + nodes: [PlatformResourceDeclaredCapacity]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed + The count of *all* `PlatformResourceDeclaredCapacity` you could get from the connection. """ - status: String - updatedAt: Datetime + totalCount: Int! } -""" -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 +"""A `PlatformResourceDeclaredCapacity` edge in the connection.""" +type PlatformResourceDeclaredCapacityEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filters to entities where at least one related entity matches.""" - some: FunctionDeploymentFilter + """The `PlatformResourceDeclaredCapacity` at the end of the edge.""" + node: PlatformResourceDeclaredCapacity } """ -A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceDeclaredCapacity` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceToManyResourceDefinitionFilter { - """Filters to entities where every related entity matches.""" - every: ResourceDefinitionFilter +input PlatformResourceDeclaredCapacityFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceDeclaredCapacityFilter!] - """Filters to entities where no related entity matches.""" - none: ResourceDefinitionFilter + """Filter by the object’s `cpuLimitMillicores` field.""" + cpuLimitMillicores: BigIntFilter - """Filters to entities where at least one related entity matches.""" - some: ResourceDefinitionFilter -} + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter -""" -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 + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter - """Filters to entities where no related entity matches.""" - none: ResourceFilter + """Filter by the object’s `isTransient` field.""" + isTransient: BooleanFilter - """Filters to entities where at least one related entity matches.""" - some: ResourceFilter -} + """Filter by the object’s `kind` field.""" + kind: StringFilter -""" -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 + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter - """Filters to entities where no related entity matches.""" - none: ResourceInstallationFilter + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter - """Filters to entities where at least one related entity matches.""" - some: ResourceInstallationFilter -} + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter -""" -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 + """Negates the expression.""" + not: PlatformResourceDeclaredCapacityFilter - """Filters to entities where no related entity matches.""" - none: WebhookEndpointFilter + """Checks for any expressions in this list.""" + or: [PlatformResourceDeclaredCapacityFilter!] - """Filters to entities where at least one related entity matches.""" - some: WebhookEndpointFilter -} + """Filter by the object’s `podCountMax` field.""" + podCountMax: IntFilter -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor + """Filter by the object’s `podCountMin` field.""" + podCountMin: IntFilter - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! + """Filter by the object’s `source` field.""" + source: StringFilter - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Filter by the object’s `sourceId` field.""" + sourceId: UUIDFilter - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor + """Filter by the object’s `storageSizeBytes` field.""" + storageSizeBytes: 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 } """ -Join table binding function definitions to API endpoints with per-binding alias and config +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements """ -type PlatformFunctionApiBinding { - """Binding alias (e.g. default, staging, production)""" - alias: String! +type PlatformResourceDefinition { + """Freeform metadata for tooling and operational notes""" + annotations: JSON! - """API endpoint this function is bound to""" - apiId: UUID! + """ + Reads a single `PlatformImage` that is related to this `PlatformResourceDefinition`. + """ + catalogImage: PlatformImage - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON! + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON! + + """What this resource definition provides""" + description: String + id: UUID! """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionApiBinding`. + 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. """ - functionDefinition: PlatformFunctionDefinition + integrations: [String]! - """Function definition this binding belongs to""" - functionDefinitionId: UUID! - id: UUID! + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds + """ + kind: String! + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON! + + """Human-readable definition name""" + name: String! """ - Reads and enables pagination through a set of `PlatformFunctionInvocation`. + Reads a single `PlatformNamespace` that is related to this `PlatformResourceDefinition`. """ - platformFunctionInvocationsByApiBindingId( + namespace: PlatformNamespace + + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """ + 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! + + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByResourceDefinitionId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -13821,515 +33168,789 @@ type PlatformFunctionApiBinding { """ offset: Int - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!] = [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: PlatformFunctionInvocationFilter - ): PlatformFunctionInvocationConnection! + 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]! + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirement]! + + """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: Interval updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformFunctionApiBinding` values.""" -type PlatformFunctionApiBindingConnection { +"""A connection to a list of `PlatformResourceDefinition` values.""" +type PlatformResourceDefinitionConnection { """ - A list of edges which contains the `PlatformFunctionApiBinding` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceDefinition` and cursor to aid in pagination. """ - edges: [PlatformFunctionApiBindingEdge]! + edges: [PlatformResourceDefinitionEdge]! - """A list of `PlatformFunctionApiBinding` objects.""" - nodes: [PlatformFunctionApiBinding]! + """A list of `PlatformResourceDefinition` objects.""" + nodes: [PlatformResourceDefinition]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionApiBinding` you could get from the connection. + The count of *all* `PlatformResourceDefinition` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionApiBinding` edge in the connection.""" -type PlatformFunctionApiBindingEdge { +"""A `PlatformResourceDefinition` edge in the connection.""" +type PlatformResourceDefinitionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionApiBinding` at the end of the edge.""" - node: PlatformFunctionApiBinding + """The `PlatformResourceDefinition` at the end of the edge.""" + node: PlatformResourceDefinition } """ -A filter to be used against `PlatformFunctionApiBinding` 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 PlatformFunctionApiBindingFilter { - """Filter by the object’s `alias` field.""" - alias: StringFilter - +input PlatformResourceDefinitionFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionApiBindingFilter!] + and: [PlatformResourceDefinitionFilter!] - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Filter by the object’s `config` field.""" - config: JSONFilter + """Filter by the object’s `catalogImage` relation.""" + catalogImage: PlatformImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter """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 `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 +} + +"""An input for mutations affecting `PlatformResourceDefinition`""" +input PlatformResourceDefinitionInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON + + """What this resource definition provides""" + description: String + id: UUID - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """ + 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 `id` field.""" - id: UUIDFilter + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds + """ + kind: String! - """Negates the expression.""" - not: PlatformFunctionApiBindingFilter + """Key/value pairs for selecting and filtering definitions""" + labels: JSON - """Checks for any expressions in this list.""" - or: [PlatformFunctionApiBindingFilter!] + """Human-readable definition name""" + name: String! """ - Filter by the object’s `platformFunctionInvocationsByApiBindingId` relation. + Namespace this definition belongs to (security boundary, maps to K8s namespace) """ - platformFunctionInvocationsByApiBindingId: PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter - - """`platformFunctionInvocationsByApiBindingId` exist.""" - platformFunctionInvocationsByApiBindingIdExist: Boolean + namespaceId: UUID! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """ + 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 -"""An input for mutations affecting `PlatformFunctionApiBinding`""" -input PlatformFunctionApiBindingInput { - """Binding alias (e.g. default, staging, production)""" - alias: String + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] - """API endpoint this function is bound to""" - apiId: UUID! + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON - createdAt: Datetime + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! - """Function definition this binding belongs to""" - functionDefinitionId: UUID! - id: UUID + """ + 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 } -"""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 `PlatformResourceDefinition`.""" +enum PlatformResourceDefinitionOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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 + 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 } """ -Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. +Represents an update to a `PlatformResourceDefinition`. 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 PlatformResourceDefinitionPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Function definition this binding belongs to""" - functionDefinitionId: UUID + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON + + """What this resource definition provides""" + description: String id: 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] + + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds + """ + kind: String + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Human-readable definition name""" + name: String + + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID + + """ + 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 + + """ + 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: 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 `PlatformResource` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionApiBindingToManyPlatformFunctionInvocationFilter { +input PlatformResourceDefinitionToManyPlatformResourceFilter { """Filters to entities where every related entity matches.""" - every: PlatformFunctionInvocationFilter + every: PlatformResourceFilter """Filters to entities where no related entity matches.""" - none: PlatformFunctionInvocationFilter + none: PlatformResourceFilter """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionInvocationFilter + some: PlatformResourceFilter +} + +"""A `PlatformResource` edge in the connection.""" +type PlatformResourceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformResource` at the end of the edge.""" + node: PlatformResource } """ -Capability bindings — declarative grants of typed resource capabilities (buckets) to function/graph holders per lifecycle +Resource lifecycle events — audit log of provisioning, updates, and failure events """ -type PlatformFunctionCapabilityBinding { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID - createdAt: Datetime +type PlatformResourceEvent { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionCapabilityBinding`. - """ - function: PlatformFunctionDefinition + """Event timestamp (partition key)""" + createdAt: Datetime! """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - functionId: UUID + eventType: String! - """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) - """ - graphId: UUID + """Unique event identifier""" 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! + """Human-readable description of the event""" + message: String - """Per-binding annotations (no runtime semantics)""" + """Structured context (old/new values, error details, etc.)""" metadata: JSON - updatedAt: Datetime + + """Resource this event belongs to""" + resourceId: UUID! } -"""A connection to a list of `PlatformFunctionCapabilityBinding` values.""" -type PlatformFunctionCapabilityBindingConnection { +"""A connection to a list of `PlatformResourceEvent` values.""" +type PlatformResourceEventConnection { """ - A list of edges which contains the `PlatformFunctionCapabilityBinding` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceEvent` and cursor to aid in pagination. """ - edges: [PlatformFunctionCapabilityBindingEdge]! + edges: [PlatformResourceEventEdge]! - """A list of `PlatformFunctionCapabilityBinding` objects.""" - nodes: [PlatformFunctionCapabilityBinding]! + """A list of `PlatformResourceEvent` objects.""" + nodes: [PlatformResourceEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionCapabilityBinding` you could get from the connection. + The count of *all* `PlatformResourceEvent` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionCapabilityBinding` edge in the connection.""" -type PlatformFunctionCapabilityBindingEdge { +"""A `PlatformResourceEvent` edge in the connection.""" +type PlatformResourceEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionCapabilityBinding` at the end of the edge.""" - node: PlatformFunctionCapabilityBinding + """The `PlatformResourceEvent` at the end of the edge.""" + node: PlatformResourceEvent } """ -A filter to be used against `PlatformFunctionCapabilityBinding` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionCapabilityBindingFilter { - """Checks for all expressions in this list.""" - and: [PlatformFunctionCapabilityBindingFilter!] +input PlatformResourceEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `bucketId` field.""" - bucketId: UUIDFilter + """Checks for all expressions in this list.""" + and: [PlatformResourceEventFilter!] """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 `eventType` field.""" + eventType: StringFilter """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 `message` field.""" + message: StringFilter """Filter by the object’s `metadata` field.""" metadata: JSONFilter """Negates the expression.""" - not: PlatformFunctionCapabilityBindingFilter + not: PlatformResourceEventFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionCapabilityBindingFilter!] + or: [PlatformResourceEventFilter!] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter } -"""An input for mutations affecting `PlatformFunctionCapabilityBinding`""" -input PlatformFunctionCapabilityBindingInput { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID +"""An input for mutations affecting `PlatformResourceEvent`""" +input PlatformResourceEventInput { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Event timestamp (partition key)""" createdAt: Datetime """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - functionId: UUID + eventType: String! - """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) - """ - graphId: UUID + """Unique event identifier""" 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! + """Human-readable description of the event""" + message: String - """Per-binding annotations (no runtime semantics)""" + """Structured context (old/new values, error details, etc.)""" metadata: JSON - updatedAt: Datetime + + """Resource this event belongs to""" + resourceId: UUID! } -"""Methods to use when ordering `PlatformFunctionCapabilityBinding`.""" -enum PlatformFunctionCapabilityBindingOrderBy { - BUCKET_ID_ASC - BUCKET_ID_DESC +"""Methods to use when ordering `PlatformResourceEvent`.""" +enum PlatformResourceEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - FUNCTION_ID_ASC - FUNCTION_ID_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC ID_ASC ID_DESC - KEY_ASC - KEY_DESC - LIFECYCLE_ASC - LIFECYCLE_DESC + MESSAGE_ASC + MESSAGE_DESC METADATA_ASC METADATA_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC } """ -Represents an update to a `PlatformFunctionCapabilityBinding`. Fields that are set will be updated. +Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. """ -input PlatformFunctionCapabilityBindingPatch { - """Bucket this capability targets (exactly one typed target is set)""" - bucketId: UUID +input PlatformResourceEventPatch { + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Event timestamp (partition key)""" createdAt: Datetime """ - Function definition holding this capability (exactly one of function_id / graph_id is set) + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - functionId: UUID + eventType: String - """ - Flow graph holding this capability (exactly one of function_id / graph_id is set) - """ - graphId: UUID + """Unique event identifier""" 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 + """Human-readable description of the event""" + message: String - """Per-binding annotations (no runtime semantics)""" + """Structured context (old/new values, error details, etc.)""" metadata: JSON - updatedAt: Datetime + + """Resource this event belongs to""" + resourceId: UUID } """ -Function definitions — registered cloud functions with routing, queue, and retry configuration +A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ """ -type PlatformFunctionDefinition { +input PlatformResourceFilter { + """Checks for all expressions in this list.""" + and: [PlatformResourceFilter!] + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `catalogImage` relation.""" + catalogImage: PlatformImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 `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!] + """ - 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. + Filter by the object’s `platformResourceStatusChecksByResourceId` relation. """ - accessChannels: [String]! + 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 + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformResource`""" +input PlatformResourceInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON """ - Whether executions are metered through the invocation ledger and billing quota gate + Catalog image this resource runs (NULL when the image is named inline in spec) """ - billable: Boolean! + catalogImageId: UUID + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Function task category (e.g. email, embed, chunk, custom)""" - category: String! + """Cumulative error count for this resource""" + errorCount: Int + id: UUID """ - Knative containerConcurrency — max concurrent requests per pod instance + Installation ("release") this resource belongs to (NULL for standalone resources) """ - concurrency: Int! + installationId: UUID """ - CPU limit in millicores, derived from resources.limits.cpu (NULL if unset/invalid) + 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. """ - cpuLimitMillicores: BigInt + integrations: [String] """ - Requested CPU in millicores, derived from resources.requests.cpu (NULL if unset/invalid) + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer """ - cpuRequestMillicores: BigInt - createdAt: Datetime + kind: String! - """Human-readable description of what this function does""" - description: String + """Key/value pairs for selecting and filtering resources""" + labels: JSON - """Palette grouping category (e.g. email, data, ai, custom)""" - fnCategory: String + """Most recent provisioning or runtime error message""" + lastError: 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. + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) """ - functionColumns: JSON + lastHeartbeatAt: Datetime - """ - Reads a single `FunctionGraph` that is related to this `PlatformFunctionDefinition`. - """ - graph: FunctionGraph + """Human-readable resource name""" + name: String! """ - Existing flow graph invoked when runtime=graph. Required for graph runtime and forbidden for all other runtimes. + Namespace this resource belongs to (security boundary, maps to K8s namespace) """ - graphId: UUID - - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - id: UUID! + namespaceId: 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. + Config/secret realm this resource resolves against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane. """ - image: String + realm: String """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + 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. """ - inputs: JSON! + requiredConfigs: [ResourceRequirementInput] """ - 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 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. """ - integrations: [String]! + requiredSecrets: [ResourceRequirementInput] """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + Definition template this resource was created from (NULL for standalone resources) """ - isPublished: Boolean! + resourceDefinitionId: UUID - """Maximum retry attempts for the underlying job""" - maxAttempts: Int! + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! """ - Memory limit in bytes, derived from resources.limits.memory (NULL if unset/invalid) + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - memoryLimitBytes: BigInt + spec: JSON """ - Requested memory in bytes, derived from resources.requests.memory (NULL if unset/invalid) + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting """ - memoryRequestBytes: BigInt + status: 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. + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) """ - moduleTable: String + statusObserved: JSON + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} +""" +Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback +""" +type PlatformResourceInstallation { """ - Function name within category (e.g. send_verification_link, process_file_embedding) + 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! + + """Human-readable release name""" name: String! """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] + Reads a single `PlatformNamespace` that is related to this `PlatformResourceInstallation`. """ - outputs: JSON! + namespace: PlatformNamespace - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. - """ - payloadArgs: JSON! + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID! """ - Reads and enables pagination through a set of `PlatformFunctionApiBinding`. + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. """ - 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! + params: JSON! - """ - Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. - """ - platformFunctionCapabilityBindingsByFunctionId( + """Reads and enables pagination through a set of `PlatformRegistry`.""" + platformRegistriesByInstallationId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -14348,19 +33969,17 @@ type PlatformFunctionDefinition { """ offset: Int - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [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: PlatformFunctionCapabilityBindingFilter - ): PlatformFunctionCapabilityBindingConnection! + where: PlatformRegistryFilter + ): PlatformRegistryConnection! - """ - Reads and enables pagination through a set of `PlatformWebhookEndpoint`. - """ - platformWebhookEndpointsByFunctionDefinitionId( + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByInstallationId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -14379,3031 +33998,2625 @@ 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]! - - """ - 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! + where: PlatformResourceFilter + ): PlatformResourceConnection! """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback """ - system: Boolean! + revision: Int! """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] """ - targetFunction: String + slug: String! - """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. - """ - targetSchema: String + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: String! """ - Routing slug generated as category || ':' || name (used by the Knative job worker for dispatch) + Infra merkle store holding this installation's history (stamped by the versioned trigger) """ - taskIdentifier: String - - """Knative request timeout in seconds""" - timeoutSeconds: Int! + storeId: UUID 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 `PlatformResourceInstallation` values.""" +type PlatformResourceInstallationConnection { """ - A list of edges which contains the `PlatformFunctionDefinition` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceInstallation` and cursor to aid in pagination. """ - edges: [PlatformFunctionDefinitionEdge]! + edges: [PlatformResourceInstallationEdge]! - """A list of `PlatformFunctionDefinition` objects.""" - nodes: [PlatformFunctionDefinition]! + """A list of `PlatformResourceInstallation` objects.""" + nodes: [PlatformResourceInstallation]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionDefinition` you could get from the connection. + The count of *all* `PlatformResourceInstallation` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionDefinition` edge in the connection.""" -type PlatformFunctionDefinitionEdge { +"""A `PlatformResourceInstallation` edge in the connection.""" +type PlatformResourceInstallationEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionDefinition` at the end of the edge.""" - node: PlatformFunctionDefinition + """The `PlatformResourceInstallation` at the end of the edge.""" + node: PlatformResourceInstallation } """ -A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceInstallation` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionDefinitionFilter { - """Filter by the object’s `accessChannels` field.""" - accessChannels: StringListFilter - +input PlatformResourceInstallationFilter { """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: [PlatformResourceInstallationFilter!] - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """Filter by the object’s `commitId` field.""" + commitId: 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 `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `icon` field.""" - icon: StringFilter + """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 `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 -} - -"""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 - createdAt: Datetime - - """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 + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter - """ - 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 `namespaceId` field.""" + namespaceId: UUIDFilter - """ - Function name within category (e.g. send_verification_link, process_file_embedding) - """ - name: String! + """Negates the expression.""" + not: PlatformResourceInstallationFilter - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Checks for any expressions in this list.""" + or: [PlatformResourceInstallationFilter!] - """ - Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. - """ - payloadArgs: JSON + """Filter by the object’s `params` field.""" + params: JSONFilter - """Job priority (lower = higher priority)""" - priority: Int + """Filter by the object’s `platformRegistriesByInstallationId` relation.""" + platformRegistriesByInstallationId: PlatformResourceInstallationToManyPlatformRegistryFilter - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """`platformRegistriesByInstallationId` exist.""" + platformRegistriesByInstallationIdExist: Boolean - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean + """Filter by the object’s `platformResourcesByInstallationId` relation.""" + platformResourcesByInstallationId: PlatformResourceInstallationToManyPlatformResourceFilter - """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility - """ - publishedAt: Datetime + """`platformResourcesByInstallationId` exist.""" + platformResourcesByInstallationIdExist: Boolean - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Filter by the object’s `revision` field.""" + revision: IntFilter - """ - 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 `slug` field.""" + slug: 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 `status` field.""" + status: StringFilter - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String] + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """ - 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 `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - 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 `updatedBy` field.""" + updatedBy: UUIDFilter - """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} - """ - resources: JSON + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} +"""An input for mutations affecting `PlatformResourceInstallation`""" +input PlatformResourceInstallationInput { """ - 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) + Infra store commit for the current params (stamped by the versioned trigger on every write) """ - runtime: String + commitId: UUID + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + """Human-readable release name""" + name: String! - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID! """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. """ - system: Boolean + params: JSON """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback """ - targetFunction: String + revision: Int """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] """ - targetSchema: String + slug: String! - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: String """ - Whether this function has side effects and cannot be cached or memoized + Infra merkle store holding this installation's history (stamped by the versioned trigger) """ - volatile: Boolean + storeId: UUID + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: 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 `PlatformResourceInstallation`.""" +enum PlatformResourceInstallationOrderBy { + COMMIT_ID_ASC + COMMIT_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 + 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 + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC NAME_ASC NAME_DESC NATURAL - OUTPUTS_ASC - OUTPUTS_DESC - PAYLOAD_ARGS_ASC - PAYLOAD_ARGS_DESC + PARAMS_ASC + PARAMS_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 + REVISION_ASC + REVISION_DESC + SLUG_ASC + SLUG_DESC + STATUS_ASC + STATUS_DESC + STORE_ID_ASC + STORE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC - VOLATILE_ASC - VOLATILE_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ -Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. +Represents an update to a `PlatformResourceInstallation`. 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 executions are metered through the invocation ledger and billing quota gate - """ - billable: Boolean - - """Function task category (e.g. email, embed, chunk, custom)""" - category: String - +input PlatformResourceInstallationPatch { """ - Knative containerConcurrency — max concurrent requests per pod instance + Infra store commit for the current params (stamped by the versioned trigger on every write) """ - concurrency: Int + commitId: UUID createdAt: Datetime - - """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 + createdBy: UUID + createdByPrincipal: UUID 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 + """Human-readable release name""" + name: String + + """Namespace this installation belongs to (security boundary)""" + namespaceId: UUID """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] + Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. """ - inputs: JSON + params: 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. + Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback """ - integrations: [String] + revision: Int """ - Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + URL-safe release identifier, unique within the namespace; the release's path in the infra tree is [resource_installation, slug] """ - isPublished: Boolean + slug: String - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + """Installation lifecycle status: pending, installed, uninstalled, failed""" + status: 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. + Infra merkle store holding this installation's history (stamped by the versioned trigger) """ - moduleTable: String + storeId: UUID + 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 `PlatformRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceInstallationToManyPlatformRegistryFilter { + """Filters to entities where every related entity matches.""" + every: PlatformRegistryFilter - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Filters to entities where no related entity matches.""" + none: PlatformRegistryFilter - """ - 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: PlatformRegistryFilter +} - """Job priority (lower = higher priority)""" - priority: 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 - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """Filters to entities where no related entity matches.""" + none: PlatformResourceFilter - """ - Protected platform definition: narrower scopes cannot register the same task_identifier - """ - protected: Boolean + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceFilter +} +"""All input for the `platformResourceInstallationsInstall` mutation.""" +input PlatformResourceInstallationsInstallInput { """ - Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - publishedAt: Datetime - - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + clientMutationId: String + definitionIds: [UUID] + name: String + namespaceId: UUID + newParams: JSON + slug: String +} +"""The output of our `platformResourceInstallationsInstall` mutation.""" +type PlatformResourceInstallationsInstallPayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredBuckets: [String] + clientMutationId: String """ - Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredConfigs: [ResourceRequirementInput] + query: Query + result: UUID +} +"""All input for the `platformResourceInstallationsRollback` mutation.""" +input PlatformResourceInstallationsRollbackInput { """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - requiredModels: [String] + clientMutationId: String + commitId: UUID + targetInstallationId: UUID +} +"""The output of our `platformResourceInstallationsRollback` mutation.""" +type PlatformResourceInstallationsRollbackPayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - requiredModules: [String] + clientMutationId: String """ - Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredSecrets: [ResourceRequirementInput] + query: Query +} +"""All input for the `platformResourceInstallationsUninstall` mutation.""" +input PlatformResourceInstallationsUninstallInput { """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - resources: JSON + clientMutationId: String + targetInstallationId: UUID +} +"""The output of our `platformResourceInstallationsUninstall` mutation.""" +type PlatformResourceInstallationsUninstallPayload { """ - 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 exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - runtime: String - - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int - - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + clientMutationId: String """ - Platform system definition: its task_identifier cannot be shadowed by non-platform registration + Our root query field type. Allows us to run any query from our mutation payload. """ - system: Boolean + query: Query +} +"""All input for the `platformResourceInstallationsUpgrade` mutation.""" +input PlatformResourceInstallationsUpgradeInput { """ - Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - targetFunction: String + clientMutationId: String + newParams: JSON + targetInstallationId: UUID +} +"""The output of our `platformResourceInstallationsUpgrade` mutation.""" +type PlatformResourceInstallationsUpgradePayload { """ - Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - targetSchema: String - - """Knative request timeout in seconds""" - timeoutSeconds: Int - updatedAt: Datetime + clientMutationId: String """ - Whether this function has side effects and cannot be cached or memoized + Our root query field type. Allows us to run any query from our mutation payload. """ - 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 + query: Query } -""" -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 +"""Methods to use when ordering `PlatformResource`.""" +enum PlatformResourceOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_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 + 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 + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_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 `PlatformResource`. Fields that are set will be updated. """ -type PlatformFunctionDeployment { +input PlatformResourcePatch { """Freeform metadata for tooling and operational notes""" - annotations: JSON! + annotations: JSON - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int + """ + Catalog image this resource runs (NULL when the image is named inline in spec) + """ + catalogImageId: UUID createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Cumulative error count for this deployment""" - errorCount: Int! + """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 + Installation ("release") this resource belongs to (NULL for standalone resources) """ - handlerName: String - id: UUID! + installationId: UUID """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + 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. """ - image: String! + integrations: [String] - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String! + """ + Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer + """ + kind: String - """Key/value pairs for selecting and filtering deployments""" - labels: JSON! + """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 - """ - Reads a single `PlatformNamespace` that is related to this `PlatformFunctionDeployment`. + Last time a usage heartbeat was received for this resource (NULL until first heartbeat) """ - namespace: PlatformNamespace + 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 - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - status: String! - - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime -} + spec: JSON -"""A connection to a list of `PlatformFunctionDeployment` values.""" -type PlatformFunctionDeploymentConnection { """ - A list of edges which contains the `PlatformFunctionDeployment` and cursor to aid in pagination. + Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting """ - edges: [PlatformFunctionDeploymentEdge]! - - """A list of `PlatformFunctionDeployment` objects.""" - nodes: [PlatformFunctionDeployment]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + status: String """ - The count of *all* `PlatformFunctionDeployment` you could get from the connection. + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) """ - 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 + statusObserved: JSON + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } """ -Deployment lifecycle events — audit log of provisioning, scaling, and failure events +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) """ -type PlatformFunctionDeploymentEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +type PlatformResourceStatusCheck { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Event timestamp (partition key)""" - createdAt: Datetime! + """Unique status check identifier""" + id: UUID! - """Deployment this event belongs to""" - deploymentId: UUID! + """When the check was requested""" + requestedAt: Datetime! + + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + Reads a single `PlatformResource` that is related to this `PlatformResourceStatusCheck`. """ - eventType: String! + resource: PlatformResource - """Unique event identifier""" - id: UUID! + """Resource to check""" + resourceId: UUID! - """Human-readable description of the event""" - message: String + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Check lifecycle: pending, running, completed, failed""" + status: String! } -"""A connection to a list of `PlatformFunctionDeploymentEvent` values.""" -type PlatformFunctionDeploymentEventConnection { +"""A connection to a list of `PlatformResourceStatusCheck` values.""" +type PlatformResourceStatusCheckConnection { """ - A list of edges which contains the `PlatformFunctionDeploymentEvent` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceStatusCheck` and cursor to aid in pagination. """ - edges: [PlatformFunctionDeploymentEventEdge]! + edges: [PlatformResourceStatusCheckEdge]! - """A list of `PlatformFunctionDeploymentEvent` objects.""" - nodes: [PlatformFunctionDeploymentEvent]! + """A list of `PlatformResourceStatusCheck` objects.""" + nodes: [PlatformResourceStatusCheck]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionDeploymentEvent` you could get from the connection. + The count of *all* `PlatformResourceStatusCheck` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionDeploymentEvent` edge in the connection.""" -type PlatformFunctionDeploymentEventEdge { +"""A `PlatformResourceStatusCheck` edge in the connection.""" +type PlatformResourceStatusCheckEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionDeploymentEvent` at the end of the edge.""" - node: PlatformFunctionDeploymentEvent + """The `PlatformResourceStatusCheck` at the end of the edge.""" + node: PlatformResourceStatusCheck } """ -A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ """ -input PlatformFunctionDeploymentEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformResourceStatusCheckFilter { """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 + and: [PlatformResourceStatusCheckFilter!] - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter """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: PlatformResourceStatusCheckFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionDeploymentEventFilter!] -} + or: [PlatformResourceStatusCheckFilter!] -"""An input for mutations affecting `PlatformFunctionDeploymentEvent`""" -input PlatformFunctionDeploymentEventInput { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """Filter by the object’s `requestedAt` field.""" + requestedAt: DatetimeFilter - """Event timestamp (partition key)""" - createdAt: Datetime + """Filter by the object’s `requestedBy` field.""" + requestedBy: UUIDFilter - """Deployment this event belongs to""" - deploymentId: UUID! + """Filter by the object’s `resource` relation.""" + resource: PlatformResourceFilter - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Unique event identifier""" + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Filter by the object’s `status` field.""" + status: StringFilter +} + +"""An input for mutations affecting `PlatformResourceStatusCheck`""" +input PlatformResourceStatusCheckInput { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime + + """Unique status check identifier""" id: UUID - """Human-readable description of the event""" - message: String + """When the check was requested""" + requestedAt: Datetime - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID + + """Resource to check""" + resourceId: UUID! + + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON + + """Check lifecycle: pending, running, completed, failed""" + status: String } -"""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 +"""Methods to use when ordering `PlatformResourceStatusCheck`.""" +enum PlatformResourceStatusCheckOrderBy { + COMPLETED_AT_ASC + COMPLETED_AT_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_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 } """ -Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. +Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. """ -input PlatformFunctionDeploymentEventPatch { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +input PlatformResourceStatusCheckPatch { + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Event timestamp (partition key)""" - createdAt: Datetime + """Unique status check identifier""" + id: UUID - """Deployment this event belongs to""" - deploymentId: UUID + """When the check was requested""" + requestedAt: Datetime - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """Unique event identifier""" - id: UUID + """Resource to check""" + resourceId: UUID - """Human-readable description of the event""" - message: String + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Check lifecycle: pending, running, completed, failed""" + status: String } """ -A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformResourceStatusCheck` 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 `errorCount` field.""" - errorCount: IntFilter - - """Filter by the object’s `handlerName` field.""" - handlerName: StringFilter +input PlatformResourceToManyPlatformResourceStatusCheckFilter { + """Filters to entities where every related entity matches.""" + every: PlatformResourceStatusCheckFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filters to entities where no related entity matches.""" + none: PlatformResourceStatusCheckFilter - """Filter by the object’s `image` field.""" - image: StringFilter + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceStatusCheckFilter +} - """Filter by the object’s `imageVersion` field.""" - imageVersion: StringFilter +""" +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 - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Unique sample identifier""" + id: UUID! - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: Int! - """Filter by the object’s `lastErrorAt` field.""" - lastErrorAt: DatetimeFilter + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """ + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics + """ + metrics: JSON! - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Namespace the measured workload runs in""" + namespaceId: UUID! - """Negates the expression.""" - not: PlatformFunctionDeploymentFilter + """ + Resource this sample measures (NULL for namespace-grain catch-all rows) + """ + resourceId: UUID - """Checks for any expressions in this list.""" - or: [PlatformFunctionDeploymentFilter!] + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime! - """Filter by the object’s `realm` field.""" - realm: StringFilter + """ + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) + """ + source: String! +} - """Filter by the object’s `resources` field.""" - resources: JSONFilter +"""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]! - """Filter by the object’s `revision` field.""" - revision: IntFilter + """A list of `PlatformResourceUsageLog` objects.""" + nodes: [PlatformResourceUsageLog]! - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """ + The count of *all* `PlatformResourceUsageLog` you could get from the connection. + """ + totalCount: Int! +} - """Filter by the object’s `serviceName` field.""" - serviceName: StringFilter +"""A `PlatformResourceUsageLog` edge in the connection.""" +type PlatformResourceUsageLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `serviceUrl` field.""" - serviceUrl: StringFilter + """The `PlatformResourceUsageLog` at the end of the edge.""" + node: PlatformResourceUsageLog +} - """Filter by the object’s `status` field.""" - status: StringFilter +""" +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!] - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""An input for mutations affecting `PlatformFunctionDeployment`""" -input PlatformFunctionDeploymentInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON + """Filter by the object’s `intervalSeconds` field.""" + intervalSeconds: IntFilter - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter - """Cumulative error count for this deployment""" - errorCount: Int + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter - """ - 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 `namespaceId` field.""" + namespaceId: UUIDFilter - """ - 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! + """Negates the expression.""" + not: PlatformResourceUsageLogFilter - """Image tag/version for the handler container (e.g. latest, 2.6.4)""" - imageVersion: String + """Checks for any expressions in this list.""" + or: [PlatformResourceUsageLogFilter!] - """Key/value pairs for selecting and filtering deployments""" - labels: JSON + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Most recent provisioning or runtime error message""" - lastError: String + """Filter by the object’s `sampledAt` field.""" + sampledAt: DatetimeFilter - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """Filter by the object’s `source` field.""" + source: StringFilter +} - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! +"""An input for mutations affecting `PlatformResourceUsageLog`""" +input PlatformResourceUsageLogInput { + """CPU gauge in millicores at sample time (NULL when unknown)""" + cpuMillicores: BigInt - """ - 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 + """Unique sample identifier""" + id: UUID - """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} - """ - resources: JSON + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: Int! - """Deployment revision number (incremented on each redeployment)""" - revision: Int + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt """ - Maximum replica count (NULL = inherit from definition or Knative default) + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics """ - scaleMax: Int + metrics: JSON - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Namespace the measured workload runs in""" + namespaceId: 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 + Resource this sample measures (NULL for namespace-grain catch-all rows) """ - serviceName: String + resourceId: UUID - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) """ - status: String - - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime + source: String! } -"""Methods to use when ordering `PlatformFunctionDeployment`.""" -enum PlatformFunctionDeploymentOrderBy { - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - HANDLER_NAME_ASC - HANDLER_NAME_DESC +"""Methods to use when ordering `PlatformResourceUsageLog`.""" +enum PlatformResourceUsageLogOrderBy { + CPU_MILLICORES_ASC + CPU_MILLICORES_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 + 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 - 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 + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SAMPLED_AT_ASC + SAMPLED_AT_DESC + SOURCE_ASC + SOURCE_DESC } """ -Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. +Represents an update to a `PlatformResourceUsageLog`. Fields that are set will be updated. """ -input PlatformFunctionDeploymentPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON +input PlatformResourceUsageLogPatch { + """CPU gauge in millicores at sample time (NULL when unknown)""" + cpuMillicores: BigInt - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int - createdAt: Datetime + """Unique sample identifier""" + id: UUID - """Cumulative error count for this deployment""" - errorCount: Int + """Seconds covered by this sample — runtime is SUM(interval_seconds)""" + intervalSeconds: 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 + """Memory gauge in bytes at sample time (NULL when unknown)""" + memoryBytes: BigInt """ - Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. + Structured gauges: replicas, pod counts, phases, and other producer-specific metrics """ - 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 + metrics: JSON - """Target namespace for this deployment (maps to a K8s namespace)""" + """Namespace the measured workload runs in""" 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). + Resource this sample measures (NULL for namespace-grain catch-all rows) """ - realm: String + resourceId: UUID + + """Sample timestamp (partition key) — end of the measured interval""" + sampledAt: Datetime """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Sample producer: self (workload heartbeat), observer (reconciler), or prometheus (namespace-grain usage collector) """ - resources: JSON + source: String +} - """Deployment revision number (incremented on each redeployment)""" - revision: Int +""" +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! """ - Maximum replica count (NULL = inherit from definition or Knative default) + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds """ - scaleMax: Int + gbSeconds: BigFloat! - """ - Minimum replica count (NULL = inherit from definition or Knative default) - """ - scaleMin: Int + """Unique usage summary 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 + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + Maximum memory gauge observed during the day (NULL when never reported) """ - serviceUrl: String + maxMemoryBytes: BigInt + + """Namespace the resource runs in""" + namespaceId: UUID! """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + Resource this summary covers (NULL for namespace-grain catch-all summaries) """ - status: String - - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int - updatedAt: Datetime -} - -"""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! - - """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! + resourceId: UUID - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Total measured runtime for the day — SUM(interval_seconds)""" + runtimeSeconds: BigInt! - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Number of raw samples aggregated into this summary""" + sampleCount: Int! } -"""A connection to a list of `PlatformFunctionExecutionLog` values.""" -type PlatformFunctionExecutionLogConnection { +"""A connection to a list of `PlatformResourceUsageSummary` values.""" +type PlatformResourceUsageSummaryConnection { """ - A list of edges which contains the `PlatformFunctionExecutionLog` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceUsageSummary` and cursor to aid in pagination. """ - edges: [PlatformFunctionExecutionLogEdge]! + edges: [PlatformResourceUsageSummaryEdge]! - """A list of `PlatformFunctionExecutionLog` objects.""" - nodes: [PlatformFunctionExecutionLog]! + """A list of `PlatformResourceUsageSummary` objects.""" + nodes: [PlatformResourceUsageSummary]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionExecutionLog` you could get from the connection. + The count of *all* `PlatformResourceUsageSummary` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionExecutionLog` edge in the connection.""" -type PlatformFunctionExecutionLogEdge { +"""A `PlatformResourceUsageSummary` edge in the connection.""" +type PlatformResourceUsageSummaryEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionExecutionLog` at the end of the edge.""" - node: PlatformFunctionExecutionLog + """The `PlatformResourceUsageSummary` at the end of the edge.""" + node: PlatformResourceUsageSummary } """ -A filter to be used against `PlatformFunctionExecutionLog` 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 PlatformFunctionExecutionLogFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformResourceUsageSummaryFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionExecutionLogFilter!] + and: [PlatformResourceUsageSummaryFilter!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """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 `invocationId` field.""" - invocationId: UUIDFilter - - """Filter by the object’s `logLevel` field.""" - logLevel: StringFilter + """Filter by the object’s `maxCpuMillicores` field.""" + maxCpuMillicores: BigIntFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `maxMemoryBytes` field.""" + maxMemoryBytes: BigIntFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: PlatformFunctionExecutionLogFilter + not: PlatformResourceUsageSummaryFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionExecutionLogFilter!] + or: [PlatformResourceUsageSummaryFilter!] - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """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 `PlatformFunctionExecutionLog`""" -input PlatformFunctionExecutionLogInput { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +"""An input for mutations affecting `PlatformResourceUsageSummary`""" +input PlatformResourceUsageSummaryInput { + """Day this summary covers (partition key)""" + date: Date! - """Log entry timestamp (partition key)""" - createdAt: Datetime + """ + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + """ + gbSeconds: BigFloat - """Unique log entry identifier""" + """Unique usage summary identifier""" id: UUID - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt - """Log severity: debug, info, warn, error""" - logLevel: String + """ + Maximum memory gauge observed during the day (NULL when never reported) + """ + maxMemoryBytes: BigInt - """Log message text""" - message: String! + """Namespace the resource runs in""" + namespaceId: UUID! - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """ + Resource this summary covers (NULL for namespace-grain catch-all summaries) + """ + resourceId: UUID - """Function routing key (NULL for generic job logs)""" - 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 `PlatformFunctionExecutionLog`.""" -enum PlatformFunctionExecutionLogOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC +"""Methods to use when ordering `PlatformResourceUsageSummary`.""" +enum PlatformResourceUsageSummaryOrderBy { + DATE_ASC + DATE_DESC + GB_SECONDS_ASC + GB_SECONDS_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 + 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 - 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 `PlatformFunctionExecutionLog`. Fields that are set will be updated. +Represents an update to a `PlatformResourceUsageSummary`. Fields that are set will be updated. """ -input PlatformFunctionExecutionLogPatch { - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID +input PlatformResourceUsageSummaryPatch { + """Day this summary covers (partition key)""" + date: Date - """Log entry timestamp (partition key)""" - createdAt: Datetime + """ + Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + """ + gbSeconds: BigFloat - """Unique log entry identifier""" + """Unique usage summary 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 for system/cron)""" - actorId: UUID + """Maximum CPU gauge observed during the day (NULL when never reported)""" + maxCpuMillicores: BigInt """ - Reads a single `PlatformFunctionApiBinding` that is related to this `PlatformFunctionInvocation`. + Maximum memory gauge observed during the day (NULL when never reported) """ - apiBinding: PlatformFunctionApiBinding + maxMemoryBytes: BigInt + + """Namespace the resource runs in""" + namespaceId: UUID """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + Resource this summary covers (NULL for namespace-grain catch-all summaries) """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String + resourceId: UUID - """When execution completed""" - completedAt: Datetime + """Total measured runtime for the day — SUM(interval_seconds)""" + runtimeSeconds: BigInt - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """Number of raw samples aggregated into this summary""" + sampleCount: Int +} - """Database this invocation is attributed to (usage/billing attribution)""" - databaseId: UUID! +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 { """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + A list of edges which contains the `PlatformResourceUtilization` and cursor to aid in pagination. """ - definitionScope: String + edges: [PlatformResourceUtilizationEdge]! - """Wall-clock execution time in milliseconds""" - durationMs: Int + """A list of `PlatformResourceUtilization` objects.""" + nodes: [PlatformResourceUtilization]! - """ - Error message when status is failed, or the reason the run was skipped when status is skipped - """ - error: String + """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!] + + """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 - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Filter by the object’s `cpuRequestMillicores` field.""" + cpuRequestMillicores: BigIntFilter - """Function input payload""" - payload: JSON + """Filter by the object’s `date` field.""" + date: DateFilter - """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) - """ - provenance: JSON! + """Filter by the object’s `gbSeconds` field.""" + gbSeconds: BigFloatFilter - """Function return value (success) or structured error (failure)""" - result: JSON + """Filter by the object’s `kind` field.""" + kind: StringFilter - """When execution started""" - startedAt: Datetime + """Filter by the object’s `maxCpuMillicores` field.""" + maxCpuMillicores: BigIntFilter - """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) - """ - status: String! + """Filter by the object’s `maxMemoryBytes` field.""" + maxMemoryBytes: BigIntFilter - """ - 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 `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter -""" -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 + """Filter by the object’s `memoryPeakUtilization` field.""" + memoryPeakUtilization: BigFloatFilter - """1-based attempt number for this invocation""" - attempt: Int! + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter - """When the attempt result was recorded (partition key)""" - createdAt: Datetime! + """Filter by the object’s `memoryRequestHeadroomBytes` field.""" + memoryRequestHeadroomBytes: BigIntFilter - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Error message when the attempt failed""" - error: String + """Negates the expression.""" + not: PlatformResourceUtilizationFilter - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """Checks for any expressions in this list.""" + or: [PlatformResourceUtilizationFilter!] - """Unique attempt identifier""" - id: UUID! + """Filter by the object’s `replicas` field.""" + replicas: IntFilter - """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) - """ - invocationCreatedAt: Datetime! + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) - """ - invocationId: UUID! + """Filter by the object’s `runtimeSeconds` field.""" + runtimeSeconds: BigIntFilter - """When the attempt began executing""" - startedAt: Datetime + """Filter by the object’s `sampleCount` field.""" + sampleCount: IntFilter +} - """Whether this attempt completed successfully""" - success: Boolean! +"""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 +} - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! +type PlatformResourcesHealth { + annotations: JSON + catalogImageId: UUID + cpuLimitMillicores: BigInt + cpuRequestMillicores: BigInt + createdAt: Datetime + createdBy: UUID + createdByPrincipal: 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 + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformFunctionInvocationAttempt` values.""" -type PlatformFunctionInvocationAttemptConnection { +"""A connection to a list of `PlatformResourcesHealth` values.""" +type PlatformResourcesHealthConnection { """ - A list of edges which contains the `PlatformFunctionInvocationAttempt` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourcesHealth` and cursor to aid in pagination. """ - edges: [PlatformFunctionInvocationAttemptEdge]! + edges: [PlatformResourcesHealthEdge]! - """A list of `PlatformFunctionInvocationAttempt` objects.""" - nodes: [PlatformFunctionInvocationAttempt]! + """A list of `PlatformResourcesHealth` objects.""" + nodes: [PlatformResourcesHealth]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionInvocationAttempt` you could get from the connection. + The count of *all* `PlatformResourcesHealth` you could get from the connection. """ totalCount: Int! } -"""A `PlatformFunctionInvocationAttempt` edge in the connection.""" -type PlatformFunctionInvocationAttemptEdge { +"""A `PlatformResourcesHealth` edge in the connection.""" +type PlatformResourcesHealthEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformFunctionInvocationAttempt` at the end of the edge.""" - node: PlatformFunctionInvocationAttempt + """The `PlatformResourcesHealth` at the end of the edge.""" + node: PlatformResourcesHealth } """ -A filter to be used against `PlatformFunctionInvocationAttempt` 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 PlatformFunctionInvocationAttemptFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input PlatformResourcesHealthFilter { """Checks for all expressions in this list.""" - and: [PlatformFunctionInvocationAttemptFilter!] + and: [PlatformResourcesHealthFilter!] - """Filter by the object’s `attempt` field.""" - attempt: IntFilter + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + + """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 `durationMs` field.""" - durationMs: IntFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `errorDetail` field.""" - errorDetail: JSONFilter + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `invocationCreatedAt` field.""" - invocationCreatedAt: DatetimeFilter + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter - """Negates the expression.""" - not: PlatformFunctionInvocationAttemptFilter + """Filter by the object’s `kind` field.""" + kind: StringFilter - """Checks for any expressions in this list.""" - or: [PlatformFunctionInvocationAttemptFilter!] + """Filter by the object’s `labels` field.""" + labels: JSONFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `lastError` field.""" + lastError: StringFilter - """Filter by the object’s `success` field.""" - success: BooleanFilter + """Filter by the object’s `lastHeartbeatAt` field.""" + lastHeartbeatAt: DatetimeFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter -} + """Filter by the object’s `memoryLimitBytes` field.""" + memoryLimitBytes: BigIntFilter -"""An input for mutations affecting `PlatformFunctionInvocationAttempt`""" -input PlatformFunctionInvocationAttemptInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Filter by the object’s `memoryRequestBytes` field.""" + memoryRequestBytes: BigIntFilter - """1-based attempt number for this invocation""" - attempt: Int! + """Filter by the object’s `name` field.""" + name: StringFilter - """When the attempt result was recorded (partition key)""" - createdAt: Datetime + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Wall-clock attempt time in milliseconds""" - durationMs: Int + """Negates the expression.""" + not: PlatformResourcesHealthFilter - """Error message when the attempt failed""" - error: String + """Checks for any expressions in this list.""" + or: [PlatformResourcesHealthFilter!] - """Structured error context (stack, code, provider response)""" - errorDetail: JSON + """Filter by the object’s `realm` field.""" + realm: StringFilter - """Unique attempt identifier""" - id: UUID + """Filter by the object’s `replicas` field.""" + replicas: IntFilter - """ - created_at of the referenced invocation (partition-pruned lookups against the invocations PK) - """ - invocationCreatedAt: Datetime! + """Filter by the object’s `resourceDefinitionId` field.""" + resourceDefinitionId: UUIDFilter - """ - Invocation this attempt belongs to (soft reference paired with invocation_created_at) - """ - invocationId: UUID! + """Filter by the object’s `slug` field.""" + slug: StringFilter - """When the attempt began executing""" - startedAt: Datetime + """Filter by the object’s `spec` field.""" + spec: JSONFilter - """Whether this attempt completed successfully""" - success: Boolean! + """Filter by the object’s `status` field.""" + status: StringFilter - """Function routing slug (denormalized from the invocation)""" - taskIdentifier: String! + """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 } -"""Methods to use when ordering `PlatformFunctionInvocationAttempt`.""" -enum PlatformFunctionInvocationAttemptOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - ATTEMPT_ASC - ATTEMPT_DESC +"""Methods to use when ordering `PlatformResourcesHealth`.""" +enum PlatformResourcesHealthOrderBy { + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_DESC + CPU_LIMIT_MILLICORES_ASC + CPU_LIMIT_MILLICORES_DESC + CPU_REQUEST_MILLICORES_ASC + CPU_REQUEST_MILLICORES_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 + ERROR_COUNT_ASC + ERROR_COUNT_DESC ID_ASC ID_DESC - INVOCATION_CREATED_AT_ASC - INVOCATION_CREATED_AT_DESC - INVOCATION_ID_ASC - INVOCATION_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 - STARTED_AT_ASC - STARTED_AT_DESC - SUCCESS_ASC - SUCCESS_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_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 + 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 `PlatformFunctionInvocationAttempt`. Fields that are set will be updated. -""" -input PlatformFunctionInvocationAttemptPatch { - """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 - - """ - 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 +type PlatformResourcesRequirementsState { + configHash: String + configObjectName: String + requirementsHash: String + resourceId: UUID + secretsHash: String + secretsObjectName: String + slug: String } -"""A connection to a list of `PlatformFunctionInvocation` values.""" -type PlatformFunctionInvocationConnection { +"""A connection to a list of `PlatformResourcesRequirementsState` values.""" +type PlatformResourcesRequirementsStateConnection { """ - A list of edges which contains the `PlatformFunctionInvocation` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourcesRequirementsState` and cursor to aid in pagination. """ - edges: [PlatformFunctionInvocationEdge]! + edges: [PlatformResourcesRequirementsStateEdge]! - """A list of `PlatformFunctionInvocation` objects.""" - nodes: [PlatformFunctionInvocation]! + """A list of `PlatformResourcesRequirementsState` objects.""" + nodes: [PlatformResourcesRequirementsState]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformFunctionInvocation` you could get from the connection. + The count of *all* `PlatformResourcesRequirementsState` 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 `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `definitionScope` field.""" - definitionScope: StringFilter - - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter + totalCount: Int! +} - """Filter by the object’s `error` field.""" - error: StringFilter +"""A `PlatformResourcesRequirementsState` edge in the connection.""" +type PlatformResourcesRequirementsStateEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """The `PlatformResourcesRequirementsState` at the end of the edge.""" + node: PlatformResourcesRequirementsState +} - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter +""" +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!] - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `configHash` field.""" + configHash: StringFilter - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter """Negates the expression.""" - not: PlatformFunctionInvocationFilter + not: PlatformResourcesRequirementsStateFilter """Checks for any expressions in this list.""" - or: [PlatformFunctionInvocationFilter!] - - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + or: [PlatformResourcesRequirementsStateFilter!] - """Filter by the object’s `payload` field.""" - payload: JSONFilter + """Filter by the object’s `requirementsHash` field.""" + requirementsHash: StringFilter - """Filter by the object’s `provenance` field.""" - provenance: JSONFilter + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `result` field.""" - result: JSONFilter + """Filter by the object’s `secretsHash` field.""" + secretsHash: StringFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter +} - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter +"""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 } -"""An input for mutations affecting `PlatformFunctionInvocation`""" -input PlatformFunctionInvocationInput { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +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 { """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + A list of edges which contains the `PlatformResourcesResolvedRequirement` and cursor to aid in pagination. """ - apiBindingId: UUID - - """Invocation trigger channel: api, graph, cron, sync, webhook, or worker""" - channel: String - - """When execution completed""" - completedAt: Datetime + edges: [PlatformResourcesResolvedRequirementEdge]! - """Invocation creation timestamp (partition key)""" - createdAt: Datetime + """A list of `PlatformResourcesResolvedRequirement` objects.""" + nodes: [PlatformResourcesResolvedRequirement]! - """Database this invocation is attributed to (usage/billing attribution)""" - databaseId: UUID + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + The count of *all* `PlatformResourcesResolvedRequirement` you could get from the connection. """ - definitionScope: String + totalCount: Int! +} - """Wall-clock execution time in milliseconds""" - durationMs: Int +"""A `PlatformResourcesResolvedRequirement` edge in the connection.""" +type PlatformResourcesResolvedRequirementEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Error message when status is failed, or the reason the run was skipped when status is skipped - """ - error: String + """The `PlatformResourcesResolvedRequirement` at the end of the edge.""" + node: PlatformResourcesResolvedRequirement +} - """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. - """ - functionDefinitionId: UUID +""" +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!] - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Filter by the object’s `atomId` field.""" + atomId: UUIDFilter - """Unique invocation identifier""" - id: UUID + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Filter by the object’s `name` field.""" + name: StringFilter - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Function input payload""" - payload: JSON + """Negates the expression.""" + not: PlatformResourcesResolvedRequirementFilter - """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) - """ - provenance: JSON + """Checks for any expressions in this list.""" + or: [PlatformResourcesResolvedRequirementFilter!] - """Function return value (success) or structured error (failure)""" - result: JSON + """Filter by the object’s `present` field.""" + present: BooleanFilter - """When execution started""" - startedAt: Datetime + """Filter by the object’s `realm` field.""" + realm: StringFilter - """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) - """ - status: String + """Filter by the object’s `required` field.""" + required: BooleanFilter - """ - 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 `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 } -"""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 - ID_ASC - ID_DESC - JOB_ID_ASC - JOB_ID_DESC +"""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 - 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 + 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 } """ -Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. +Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window """ -input PlatformFunctionInvocationPatch { - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID +type PlatformWebhookEndpoint { + """Whether this endpoint currently accepts deliveries""" + active: Boolean! + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID """ - API binding this invocation arrived through (NULL for cron/graph/system/worker paths) + Reads a single `PlatformFunctionDefinition` that is related to this `PlatformWebhookEndpoint`. """ - 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 + functionDefinition: PlatformFunctionDefinition """ - Scope that owns function_definition_id (e.g. app/org/database/platform) — the per-scope definitions table the resolver selected + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. """ - definitionScope: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int + functionDefinitionId: UUID! """ - Error message when status is failed, or the reason the run was skipped when status is skipped + Inbound Host header this endpoint matches (normalized lower-case, no port) """ - error: String + host: String! + id: UUID! """ - Function definition this invocation ran (soft cross-scope ref; paired with definition_scope). task_identifier stays as the audit slug. + Reads a single `PlatformNamespace` that is related to this `PlatformWebhookEndpoint`. """ - functionDefinitionId: UUID + namespace: PlatformNamespace - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID! - """Unique invocation identifier""" - id: UUID + """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" + path: String! - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" + platformWebhookEventsByEndpointId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Function input payload""" - payload: JSON + """Only read the first `n` values of the set.""" + first: Int - """ - Non-secret channel-specific invocation provenance (route/binding/event identifiers only) - """ - provenance: JSON + """Only read the last `n` values of the set.""" + last: Int - """Function return value (success) or structured error (failure)""" - 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 - """When execution started""" - startedAt: Datetime + """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! """ - Lifecycle: pending → running → completed/failed/cancelled; skipped = never ran (a gate rejected the intended run) + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay """ - status: String + replayWindowSeconds: Int! """ - Function routing slug (category:name). Denormalized from the definition — must match the row referenced by function_definition_id when that is set. + 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. """ - taskIdentifier: String -} - -"""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 + signingSecretName: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A connection to a list of `PlatformInfraCommit` values.""" -type PlatformInfraCommitConnection { +"""A connection to a list of `PlatformWebhookEndpoint` values.""" +type PlatformWebhookEndpointConnection { """ - A list of edges which contains the `PlatformInfraCommit` and cursor to aid in pagination. + A list of edges which contains the `PlatformWebhookEndpoint` and cursor to aid in pagination. """ - edges: [PlatformInfraCommitEdge]! + edges: [PlatformWebhookEndpointEdge]! - """A list of `PlatformInfraCommit` objects.""" - nodes: [PlatformInfraCommit]! + """A list of `PlatformWebhookEndpoint` objects.""" + nodes: [PlatformWebhookEndpoint]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraCommit` you could get from the connection. + The count of *all* `PlatformWebhookEndpoint` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraCommit` edge in the connection.""" -type PlatformInfraCommitEdge { +"""A `PlatformWebhookEndpoint` edge in the connection.""" +type PlatformWebhookEndpointEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraCommit` at the end of the edge.""" - node: PlatformInfraCommit + """The `PlatformWebhookEndpoint` at the end of the edge.""" + node: PlatformWebhookEndpoint } """ -A filter to be used against `PlatformInfraCommit` 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 PlatformInfraCommitFilter { +input PlatformWebhookEndpointFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + """Checks for all expressions in this list.""" - and: [PlatformInfraCommitFilter!] + and: [PlatformWebhookEndpointFilter!] - """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 `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """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 `message` field.""" - message: StringFilter + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Negates the expression.""" - not: PlatformInfraCommitFilter + not: PlatformWebhookEndpointFilter """Checks for any expressions in this list.""" - or: [PlatformInfraCommitFilter!] + or: [PlatformWebhookEndpointFilter!] - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter + """Filter by the object’s `path` field.""" + path: StringFilter - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Filter by the object’s `platformWebhookEventsByEndpointId` relation.""" + platformWebhookEventsByEndpointId: PlatformWebhookEndpointToManyPlatformWebhookEventFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """`platformWebhookEventsByEndpointId` exist.""" + platformWebhookEventsByEndpointIdExist: Boolean - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter -} + """Filter by the object’s `provider` field.""" + provider: StringFilter -"""An input for mutations affecting `PlatformInfraCommit`""" -input PlatformInfraCommitInput { - """User who authored the changes""" - authorId: UUID + """Filter by the object’s `replayWindowSeconds` field.""" + replayWindowSeconds: IntFilter - """User who committed (may differ from author)""" - committerId: UUID + """Filter by the object’s `signingSecretName` field.""" + signingSecretName: StringFilter - """Commit timestamp""" - date: Datetime + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Unique commit identifier""" + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformWebhookEndpoint`""" +input PlatformWebhookEndpointInput { + """Whether this endpoint currently accepts deliveries""" + active: Boolean + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """ + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. + """ + functionDefinitionId: UUID! + + """ + Inbound Host header this endpoint matches (normalized lower-case, no port) + """ + host: String! id: UUID - """Optional commit message""" - message: String + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID! - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """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 - """Store this commit belongs to""" - storeId: UUID! + """ + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay + """ + replayWindowSeconds: Int - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """ + 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 `PlatformInfraCommit`.""" -enum PlatformInfraCommitOrderBy { - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - DATE_ASC - DATE_DESC +"""Methods to use when ordering `PlatformWebhookEndpoint`.""" +enum 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 - MESSAGE_ASC - MESSAGE_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC NATURAL - PARENT_IDS_ASC - PARENT_IDS_DESC + PATH_ASC + PATH_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 + 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 `PlatformInfraCommit`. Fields that are set will be updated. +Represents an update to a `PlatformWebhookEndpoint`. 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 +input PlatformWebhookEndpointPatch { + """Whether this endpoint currently accepts deliveries""" + active: Boolean + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Commit timestamp""" - date: Datetime + """ + Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. + """ + functionDefinitionId: UUID - """Unique commit identifier""" + """ + Inbound Host header this endpoint matches (normalized lower-case, no port) + """ + host: String 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 + """Namespace that owns this endpoint and contains its signing secret""" + namespaceId: UUID - """Store this commit belongs to""" - storeId: UUID + """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" + path: String - """Root object ID of the tree snapshot at this commit""" - treeId: UUID -} + """Verification scheme: generic (HMAC), stripe, or github""" + provider: String -"""A connection to a list of `PlatformInfraGetAllTreeNodesRecord` values.""" -type PlatformInfraGetAllTreeNodesConnection { """ - A list of edges which contains the `PlatformInfraGetAllTreeNodesRecord` and cursor to aid in pagination. + Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay """ - edges: [PlatformInfraGetAllTreeNodesEdge]! - - """A list of `PlatformInfraGetAllTreeNodesRecord` objects.""" - nodes: [PlatformInfraGetAllTreeNodesRecord]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + replayWindowSeconds: Int """ - The count of *all* `PlatformInfraGetAllTreeNodesRecord` you could get from the connection. + 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. """ - totalCount: Int! + signingSecretName: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID } -"""A `PlatformInfraGetAllTreeNodesRecord` edge in the connection.""" -type PlatformInfraGetAllTreeNodesEdge { - """A cursor for use in pagination.""" - cursor: 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 - """The `PlatformInfraGetAllTreeNodesRecord` at the end of the edge.""" - node: PlatformInfraGetAllTreeNodesRecord -} + """Filters to entities where no related entity matches.""" + none: PlatformWebhookEventFilter -type PlatformInfraGetAllTreeNodesRecord { - data: JSON - path: [String] + """Filters to entities where at least one related entity matches.""" + some: PlatformWebhookEventFilter } -"""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 -} +""" +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 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. + Reads a single `PlatformWebhookEndpoint` that is related to this `PlatformWebhookEvent`. """ - clientMutationId: String + endpoint: PlatformWebhookEndpoint - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Endpoint that accepted this delivery""" + endpointId: UUID! -"""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 -} + """Failure detail when status = failed""" + error: String + + """Provider-supplied delivery/event id used for idempotent dedup""" + externalEventId: String! + id: 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. + created_at of the enqueued invocation (partition key companion to invocation_id) """ - clientMutationId: String + invocationCreatedAt: Datetime """ - Our root query field type. Allows us to run any query from our mutation payload. + Pending function invocation enqueued for this delivery (NULL until enqueued) """ - query: Query - result: UUID -} + invocationId: 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. + Parsed delivery payload (parsed only after signature verification over the exact raw bytes) """ - clientMutationId: String - datas: [JSON] - kidsList: JSON - ktreeList: JSON - paths: JSON - root: UUID - sId: UUID -} + payload: JSON! -"""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. + Provider that produced this delivery (copied from the endpoint at acceptance) """ - clientMutationId: String + provider: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) """ - 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] + providerTimestamp: Datetime - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Acceptance lifecycle: accepted, processed, failed""" + status: String! + updatedAt: Datetime } -"""A connection to a list of `PlatformInfraObject` values.""" -type PlatformInfraObjectConnection { +"""A connection to a list of `PlatformWebhookEvent` values.""" +type PlatformWebhookEventConnection { """ - A list of edges which contains the `PlatformInfraObject` and cursor to aid in pagination. + A list of edges which contains the `PlatformWebhookEvent` and cursor to aid in pagination. """ - edges: [PlatformInfraObjectEdge]! + edges: [PlatformWebhookEventEdge]! - """A list of `PlatformInfraObject` objects.""" - nodes: [PlatformInfraObject]! + """A list of `PlatformWebhookEvent` objects.""" + nodes: [PlatformWebhookEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformInfraObject` you could get from the connection. + The count of *all* `PlatformWebhookEvent` you could get from the connection. """ totalCount: Int! } -"""A `PlatformInfraObject` edge in the connection.""" -type PlatformInfraObjectEdge { +"""A `PlatformWebhookEvent` edge in the connection.""" +type PlatformWebhookEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformInfraObject` at the end of the edge.""" - node: PlatformInfraObject + """The `PlatformWebhookEvent` at the end of the edge.""" + node: PlatformWebhookEvent } """ -A filter to be used against `PlatformInfraObject` 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 PlatformInfraObjectFilter { +input PlatformWebhookEventFilter { """Checks for all expressions in this list.""" - and: [PlatformInfraObjectFilter!] + and: [PlatformWebhookEventFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `data` field.""" - data: JSONFilter + """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 `kids` field.""" - kids: UUIDListFilter + """Filter by the object’s `invocationCreatedAt` field.""" + invocationCreatedAt: DatetimeFilter - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter """Negates the expression.""" - not: PlatformInfraObjectFilter + not: PlatformWebhookEventFilter """Checks for any expressions in this list.""" - or: [PlatformInfraObjectFilter!] + 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 `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 `PlatformInfraObject`""" -input PlatformInfraObjectInput { - """Timestamp of object creation""" +"""An input for mutations affecting `PlatformWebhookEvent`""" +input PlatformWebhookEventInput { createdAt: Datetime - """Payload data for this object node""" - data: JSON + """Endpoint that accepted this delivery""" + endpointId: UUID! - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Failure detail when status = failed""" + error: String - """Ordered array of child object IDs""" - kids: [UUID] + """Provider-supplied delivery/event id used for idempotent dedup""" + externalEventId: String! + id: UUID - """Ordered array of child path names (parallel to kids)""" - ktree: [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 + + """ + 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 `PlatformInfraObject`.""" -enum PlatformInfraObjectOrderBy { +"""Methods to use when ordering `PlatformWebhookEvent`.""" +enum PlatformWebhookEventOrderBy { CREATED_AT_ASC CREATED_AT_DESC - DATA_ASC - DATA_DESC + ENDPOINT_ID_ASC + ENDPOINT_ID_DESC + ERROR_ASC + ERROR_DESC + EXTERNAL_EVENT_ID_ASC + EXTERNAL_EVENT_ID_DESC ID_ASC ID_DESC - KIDS_ASC - KIDS_DESC - KTREE_ASC - KTREE_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 + 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 `PlatformInfraObject`. Fields that are set will be updated. +Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. """ -input PlatformInfraObjectPatch { - """Timestamp of object creation""" +input PlatformWebhookEventPatch { 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! + """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 -"""A connection to a list of `PlatformInfraRef` values.""" -type PlatformInfraRefConnection { """ - A list of edges which contains the `PlatformInfraRef` and cursor to aid in pagination. + created_at of the enqueued invocation (partition key companion to invocation_id) """ - edges: [PlatformInfraRefEdge]! + invocationCreatedAt: Datetime - """A list of `PlatformInfraRef` objects.""" - nodes: [PlatformInfraRef]! + """ + Pending function invocation enqueued for this delivery (NULL until enqueued) + """ + invocationId: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Parsed delivery payload (parsed only after signature verification over the exact raw bytes) + """ + payload: JSON """ - The count of *all* `PlatformInfraRef` you could get from the connection. + Provider that produced this delivery (copied from the endpoint at acceptance) """ - totalCount: Int! -} + provider: String -"""A `PlatformInfraRef` edge in the connection.""" -type PlatformInfraRefEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) + """ + providerTimestamp: Datetime - """The `PlatformInfraRef` at the end of the edge.""" - node: PlatformInfraRef + """Acceptance lifecycle: accepted, processed, failed""" + status: String + updatedAt: Datetime } """ -A filter to be used against `PlatformInfraRef` object types. All fields are combined with a logical ‘and.’ +Proposals against a repository: issues, changes to merge, discussions and decisions """ -input PlatformInfraRefFilter { - """Checks for all expressions in this list.""" - and: [PlatformInfraRefFilter!] - - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter +type Proposal { + """Actor who opened the proposal""" + actorId: UUID - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Description of the proposed change""" + body: String - """Filter by the object’s `name` field.""" - name: StringFilter + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float - """Negates the expression.""" - not: PlatformInfraRefFilter + """Reads and enables pagination through a set of `Build`.""" + builds( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Checks for any expressions in this list.""" - or: [PlatformInfraRefFilter!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `scopeId` field.""" - scopeId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter -} + """Only read the last `n` values of the set.""" + last: Int -"""An input for mutations affecting `PlatformInfraRef`""" -input PlatformInfraRefInput { - """Commit this ref points to""" - commitId: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Unique ref identifier""" - id: UUID + """The method to use when ordering `Build`.""" + orderBy: [BuildOrderBy!] = [PRIMARY_KEY_ASC] - """Ref name (e.g. HEAD, main)""" - name: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: BuildFilter + ): BuildConnection! - """Opaque store partition key for the global tier""" - scopeId: UUID! + """Reads and enables pagination through a set of `Proposal`.""" + childProposals( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Store this ref belongs to""" - storeId: UUID! -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""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 -} + """Only read the first `n` values of the set.""" + first: Int -""" -Represents an update to a `PlatformInfraRef`. Fields that are set will be updated. -""" -input PlatformInfraRefPatch { - """Commit this ref points to""" - commitId: UUID + """Only read the last `n` values of the set.""" + last: Int - """Unique ref 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 - """Ref name (e.g. HEAD, main)""" - name: String + """The method to use when ordering `Proposal`.""" + orderBy: [ProposalOrderBy!] = [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: ProposalFilter + ): ProposalConnection! - """Store this ref belongs to""" - storeId: UUID -} + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String -"""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. + TRGM similarity when searching `closedReason`. Returns null when no trgm search filter is active. """ - clientMutationId: String - data: JSON - kids: [UUID] - ktree: [String] - message: String - path: [String] - refname: String - sId: UUID - storeId: UUID -} + closedReasonTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: 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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """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 + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: PlatformInfraCommit -} + """When this is wanted by (NULL when nothing is promised)""" + dueAt: Datetime + embedding: Vector + embeddingUpdatedAt: Datetime -"""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. + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. """ - clientMutationId: String - data: JSON - path: [String] - root: UUID - sId: UUID -} + embeddingVectorDistance: Float + id: 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. + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) """ - clientMutationId: String + kind: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. """ - query: Query - result: UUID -} + kindTrgmSimilarity: Float -"""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. + Labels for filtering and grouping (a board is a query over kind, status and these) """ - clientMutationId: String - entries: JSON - message: String - refname: String - sId: UUID - storeId: UUID -} + labels: [String] + + """Commit the merge produced""" + mergeCommit: 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 `mergeCommit`. Returns null when no trgm search filter is active. """ - clientMutationId: String + mergeCommitTrgmSimilarity: 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 + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String """ - Our root query field type. Allows us to run any query from our mutation payload. + TRGM similarity when searching `mergeMethod`. 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""" - createdAt: Datetime + mergeMethodTrgmSimilarity: Float - """Current root object hash of this store""" - hash: UUID + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime - """Unique store identifier""" - id: UUID! + """When the merge completed""" + mergedAt: Datetime - """Human-readable store name""" - name: String! + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON - """Opaque store partition key for the global tier""" - scopeId: UUID! -} + """Reads a single `Proposal` that is related to this `Proposal`.""" + parent: Proposal -"""A connection to a list of `PlatformInfraStore` values.""" -type PlatformInfraStoreConnection { """ - A list of edges which contains the `PlatformInfraStore` and cursor to aid in pagination. + Proposal this one hangs under: an epic, or the discussion a decision came out of """ - edges: [PlatformInfraStoreEdge]! - - """A list of `PlatformInfraStore` objects.""" - nodes: [PlatformInfraStore]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + parentId: UUID """ - The count of *all* `PlatformInfraStore` you could get from the connection. + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) """ - totalCount: Int! -} - -"""A `PlatformInfraStore` edge in the connection.""" -type PlatformInfraStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor + priority: BigFloat - """The `PlatformInfraStore` at the end of the edge.""" - node: PlatformInfraStore -} + """Reads and enables pagination through a set of `ProposalComment`.""" + proposalComments( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -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!] + """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 `hash` field.""" - hash: UUIDFilter + """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 `name` field.""" - name: StringFilter + """The method to use when ordering `ProposalComment`.""" + orderBy: [ProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] - """Negates the expression.""" - not: PlatformInfraStoreFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ProposalCommentFilter + ): ProposalCommentConnection! - """Checks for any expressions in this list.""" - or: [PlatformInfraStoreFilter!] + """Reads and enables pagination through a set of `ProposalFileView`.""" + proposalFileViews( + """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 `ProposalFileView`.""" + orderBy: [ProposalFileViewOrderBy!] = [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: ProposalFileViewFilter + ): ProposalFileViewConnection! -"""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 `ProposalReaction`.""" + proposalReactions( + """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 `ProposalReaction`.""" + orderBy: [ProposalReactionOrderBy!] = [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: ProposalReactionFilter + ): ProposalReactionConnection! - """Optional human-readable description of this namespace""" - description: String - id: UUID! + """Reads and enables pagination through a set of `ProposalReview`.""" + proposalReviews( + """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 `ProposalReview`.""" + orderBy: [ProposalReviewOrderBy!] = [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: ProposalReviewFilter + ): ProposalReviewConnection! - """ - Reads and enables pagination through a set of `PlatformFunctionDeployment`. - """ - platformFunctionDeploymentsByNamespaceId( + """Reads and enables pagination through a set of `ProposalsChunk`.""" + proposalsChunksByProposalsId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17422,19 +36635,130 @@ type PlatformNamespace { """ offset: Int - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!] = [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: PlatformFunctionDeploymentFilter - ): PlatformFunctionDeploymentConnection! + 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 `PlatformResourceDefinition`. + What was decided (for kind = decision; NULL while the question is open) """ - platformResourceDefinitionsByNamespaceId( + 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""" + 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 @@ -17453,1683 +36777,2241 @@ type PlatformNamespace { """ offset: Int - """The method to use when ordering `PlatformResourceDefinition`.""" - orderBy: [PlatformResourceDefinitionOrderBy!] = [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: PlatformResourceDefinitionFilter - ): PlatformResourceDefinitionConnection! + where: ProposalReactionFilter + ): ProposalReactionConnection! + + """When this comment was marked resolved""" + resolvedAt: Datetime + search: FullText """ - Reads and enables pagination through a set of `PlatformResourceInstallation`. + 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. """ - platformResourceInstallationsByNamespaceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + searchScore: Float - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + 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""" + 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 - """Only read the first `n` values of the set.""" - first: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + embedding: Vector - """Only read the last `n` values of the set.""" - last: Int + """ + 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 - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """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""" + 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 { +input ProposalFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + """Checks for all expressions in this list.""" - and: [PlatformNamespaceFilter!] + and: [ProposalFilter!] - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """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 `description` field.""" - description: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Filter by the object’s `isManaged` field.""" - isManaged: BooleanFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Filter by the object’s `decidedAt` field.""" + decidedAt: DatetimeFilter - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Filter by the object’s `dueAt` field.""" + dueAt: DatetimeFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter - """Filter by the object’s `namespaceName` field.""" - namespaceName: StringFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter - """Negates the expression.""" - not: PlatformNamespaceFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Checks for any expressions in this list.""" - or: [PlatformNamespaceFilter!] + """Filter by the object’s `kind` field.""" + kind: StringTrgmFilter - """ - Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. - """ - platformFunctionDeploymentsByNamespaceId: PlatformNamespaceToManyPlatformFunctionDeploymentFilter + """Filter by the object’s `labels` field.""" + labels: StringListFilter - """`platformFunctionDeploymentsByNamespaceId` exist.""" - platformFunctionDeploymentsByNamespaceIdExist: Boolean + """Filter by the object’s `mergeCommit` field.""" + mergeCommit: StringTrgmFilter - """ - Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. - """ - platformResourceDefinitionsByNamespaceId: PlatformNamespaceToManyPlatformResourceDefinitionFilter + """Filter by the object’s `mergeMethod` field.""" + mergeMethod: StringTrgmFilter - """`platformResourceDefinitionsByNamespaceId` exist.""" - platformResourceDefinitionsByNamespaceIdExist: Boolean + """Filter by the object’s `mergeRequestedAt` field.""" + mergeRequestedAt: DatetimeFilter - """ - Filter by the object’s `platformResourceInstallationsByNamespaceId` relation. - """ - platformResourceInstallationsByNamespaceId: PlatformNamespaceToManyPlatformResourceInstallationFilter + """Filter by the object’s `mergedAt` field.""" + mergedAt: DatetimeFilter - """`platformResourceInstallationsByNamespaceId` exist.""" - platformResourceInstallationsByNamespaceIdExist: Boolean + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter - """Filter by the object’s `platformResourcesByNamespaceId` relation.""" - platformResourcesByNamespaceId: PlatformNamespaceToManyPlatformResourceFilter + """Negates the expression.""" + not: ProposalFilter - """`platformResourcesByNamespaceId` exist.""" - platformResourcesByNamespaceIdExist: Boolean + """Checks for any expressions in this list.""" + or: [ProposalFilter!] - """ - Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. - """ - platformWebhookEndpointsByNamespaceId: PlatformNamespaceToManyPlatformWebhookEndpointFilter + """Filter by the object’s `parent` relation.""" + parent: ProposalFilter - """`platformWebhookEndpointsByNamespaceId` exist.""" - platformWebhookEndpointsByNamespaceIdExist: Boolean + """A related `parent` exists.""" + parentExists: Boolean - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} + """Filter by the object’s `priority` field.""" + priority: BigFloatFilter -"""An input for mutations affecting `PlatformNamespace`""" -input PlatformNamespaceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime + """Filter by the object’s `proposalComments` relation.""" + proposalComments: ProposalToManyProposalCommentFilter - """Optional human-readable description of this namespace""" - description: String - id: UUID + """`proposalComments` exist.""" + proposalCommentsExist: Boolean - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """Filter by the object’s `proposalFileViews` relation.""" + proposalFileViews: ProposalToManyProposalFileViewFilter - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean + """`proposalFileViews` exist.""" + proposalFileViewsExist: Boolean - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Filter by the object’s `proposalReactions` relation.""" + proposalReactions: ProposalToManyProposalReactionFilter - """Most recent provisioning or reconcile error message""" - lastError: String + """`proposalReactions` exist.""" + proposalReactionsExist: Boolean - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """Filter by the object’s `proposalReviews` relation.""" + proposalReviews: ProposalToManyProposalReviewFilter - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String! + """`proposalReviews` exist.""" + proposalReviewsExist: Boolean - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String - updatedAt: Datetime -} + """Filter by the object’s `proposalsChunksByProposalsId` relation.""" + proposalsChunksByProposalsId: ProposalToManyProposalsChunkFilter -"""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 -} + """`proposalsChunksByProposalsId` exist.""" + proposalsChunksByProposalsIdExist: 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 `repository` relation.""" + repository: RepositoryFilter - """Optional human-readable description of this namespace""" - description: String - id: UUID + """Filter by the object’s `repositoryId` field.""" + repositoryId: UUIDFilter - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """Filter by the object’s `resolution` field.""" + resolution: StringTrgmFilter - """ - true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) - """ - isManaged: Boolean + """Filter by the object’s `search` field.""" + search: FullTextFilter - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """Filter by the object’s `sourceRef` field.""" + sourceRef: StringTrgmFilter - """Most recent provisioning or reconcile error message""" - lastError: String + """Filter by the object’s `status` field.""" + status: StringTrgmFilter - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String + """Filter by the object’s `targetRef` field.""" + targetRef: StringTrgmFilter - """ - Globally unique computed namespace identifier via inflection.underscore - """ - namespaceName: String + """Filter by the object’s `title` field.""" + title: StringTrgmFilter - """ - Namespace provisioning lifecycle status: pending, provisioning, active, failed - """ - status: String - updatedAt: Datetime -} + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput -""" -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 + """TRGM search on the `closed_reason` column.""" + trgmClosedReason: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformFunctionDeploymentFilter + """TRGM search on the `kind` column.""" + trgmKind: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformFunctionDeploymentFilter -} + """TRGM search on the `merge_commit` column.""" + trgmMergeCommit: TrgmSearchInput -""" -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 + """TRGM search on the `merge_method` column.""" + trgmMergeMethod: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformResourceDefinitionFilter + """TRGM search on the `resolution` column.""" + trgmResolution: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceDefinitionFilter -} + """TRGM search on the `source_ref` column.""" + trgmSourceRef: 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 `status` column.""" + trgmStatus: TrgmSearchInput - """Filters to entities where no related entity matches.""" - none: PlatformResourceFilter + """TRGM search on the `target_ref` column.""" + trgmTargetRef: TrgmSearchInput - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceFilter -} + """TRGM search on the `title` column.""" + trgmTitle: 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 + """TSV search on the `search` column.""" + tsvSearch: String - """Filters to entities where no related entity matches.""" - none: PlatformResourceInstallationFilter + """ + 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 - """Filters to entities where at least one related entity matches.""" - some: PlatformResourceInstallationFilter -} + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter -""" -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 + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filters to entities where no related entity matches.""" - none: PlatformWebhookEndpointFilter + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter - """Filters to entities where at least one related entity matches.""" - some: PlatformWebhookEndpointFilter + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput } -""" -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! +"""An input for mutations affecting `Proposal`""" +input ProposalInput { + """Actor who opened the proposal""" + actorId: UUID - """ - CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) - """ - cpuLimitMillicores: BigInt + """Description of the proposed change""" + body: String - """ - Requested CPU in millicores, derived from spec.resources.requests.cpu (NULL if unset/invalid) - """ - cpuRequestMillicores: BigInt + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID - """Cumulative error count for this resource""" - errorCount: Int! - id: 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 """ - Reads a single `PlatformResourceInstallation` that is related to this `PlatformResource`. + 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. """ - installation: PlatformResourceInstallation + embeddingText: String + id: UUID """ - Installation ("release") this resource belongs to (NULL for standalone resources) + issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) """ - installationId: UUID + kind: 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. + Labels for filtering and grouping (a board is a query over kind, status and these) """ - integrations: [String]! + labels: [String] - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer - """ - kind: String! + """Commit the merge produced""" + mergeCommit: String - """Key/value pairs for selecting and filtering resources""" - labels: JSON! + """How to merge when eligible: merge, squash, rebase""" + mergeMethod: String - """Most recent provisioning or runtime error message""" - lastError: String + """When merge-when-green was requested (NULL when no merge is pending)""" + mergeRequestedAt: Datetime - """ - Last time a usage heartbeat was received for this resource (NULL until first heartbeat) - """ - lastHeartbeatAt: Datetime + """When the merge completed""" + mergedAt: Datetime + + """Review detail (reviewers, labels, checks summary)""" + metadata: JSON """ - Memory limit in bytes, derived from spec.resources.limits.memory (NULL if unset/invalid) + Proposal this one hangs under: an epic, or the discussion a decision came out of """ - memoryLimitBytes: BigInt + parentId: UUID """ - Requested memory in bytes, derived from spec.resources.requests.memory (NULL if unset/invalid) + Manual order within a board column, sparse so an insert between two rows moves one row (NULL when unranked) """ - memoryRequestBytes: BigInt + priority: BigFloat - """Human-readable resource name""" - name: String! + """Repository this proposal is against""" + repositoryId: UUID! """ - Reads a single `PlatformNamespace` that is related to this `PlatformResource`. + What was decided (for kind = decision; NULL while the question is open) """ - namespace: PlatformNamespace + resolution: String - """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID! + """Ref holding the proposed commits (NULL unless kind is change)""" + sourceRef: String - """ - Reads and enables pagination through a set of `PlatformResourceStatusCheck`. - """ - platformResourceStatusChecksByResourceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Lifecycle state: draft, open, merged, closed""" + status: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Ref the commits are proposed for (NULL unless kind is change)""" + targetRef: String - """Only read the first `n` values of the set.""" - first: Int + """What this proposal does""" + title: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """Only read the last `n` values of the set.""" - last: Int +"""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 +} - """ - 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 `Proposal`. Fields that are set will be updated. +""" +input ProposalPatch { + """Actor who opened the proposal""" + actorId: UUID - """The method to use when ordering `PlatformResourceStatusCheck`.""" - orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + """Description of the proposed change""" + body: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceStatusCheckFilter - ): PlatformResourceStatusCheckConnection! + """Why this was closed: completed, not_planned, duplicate, superseded""" + closedReason: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """ - 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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """ - Desired pod count, derived from spec.replicas — the multiplier for total requested capacity (NULL if unset/invalid) - """ - replicas: Int + """When the decision was taken (NULL while the question is open)""" + decidedAt: Datetime - """ - 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]! + """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!] - - """Filter by the object’s `paramsSchema` field.""" - paramsSchema: JSONFilter + or: [ProposalReviewFilter!] - """ - 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 `PlatformResourceDefinition`. Fields that are set will be updated. +Represents an update to a `ProposalReview`. Fields that are set will be updated. """ -input PlatformResourceDefinitionPatch { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID +input ProposalReviewPatch { + """Summary the reviewer submitted with the verdict""" + body: String - """Template spec for creating resource instances of this kind""" - defaultSpec: JSON + """Head commit this verdict was submitted against""" + commitSha: String + createdAt: Datetime + createdByPrincipal: UUID - """What this resource definition provides""" - description: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID id: 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] + """Proposal being reviewed""" + proposalId: UUID - """ - Resource kind: Deployment, StatefulSet, Job, Service, Ingress, Certificate, ClusterIssuer, or custom kinds - """ - kind: String + """Actor who submitted the verdict""" + reviewerId: UUID - """Key/value pairs for selecting and filtering definitions""" - labels: JSON + """When the verdict was submitted""" + submittedAt: Datetime + updatedAt: Datetime + updatedByPrincipal: UUID - """Human-readable definition name""" - name: String + """approve, reject or comment (a review that gates nothing)""" + verdict: String +} - """ - Namespace this definition belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID +""" +A filter to be used against many `Build` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyBuildFilter { + """Filters to entities where every related entity matches.""" + every: BuildFilter - """ - 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: BuildFilter - """ - 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: BuildFilter +} - """ - 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 `ProposalComment` object types. All fields are combined with a logical ‘and.’ +""" +input ProposalToManyProposalCommentFilter { + """Filters to entities where every related entity matches.""" + every: ProposalCommentFilter - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String + """Filters to entities where no related entity matches.""" + none: ProposalCommentFilter - """ - 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: ProposalCommentFilter } """ -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 `ProposalFileView` object types. All fields are combined with a logical ‘and.’ """ -input PlatformResourceDefinitionToManyPlatformResourceFilter { +input ProposalToManyProposalFileViewFilter { """Filters to entities where every related entity matches.""" - every: PlatformResourceFilter + every: ProposalFileViewFilter """Filters to entities where no related entity matches.""" - none: PlatformResourceFilter + none: ProposalFileViewFilter """Filters to entities where at least one related entity matches.""" - some: PlatformResourceFilter + some: ProposalFileViewFilter } -"""A `PlatformResource` edge in the connection.""" -type PlatformResourceEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +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 - """The `PlatformResource` at the end of the edge.""" - node: PlatformResource + """Filters to entities where no related entity matches.""" + none: ProposalFilter + + """Filters to entities where at least one related entity matches.""" + some: ProposalFilter } """ -Resource lifecycle events — audit log of provisioning, updates, and failure events +A filter to be used against many `ProposalReaction` object types. All fields are combined with a logical ‘and.’ """ -type PlatformResourceEvent { - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +input ProposalToManyProposalReactionFilter { + """Filters to entities where every related entity matches.""" + every: ProposalReactionFilter - """Event timestamp (partition key)""" - createdAt: Datetime! + """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.’ +""" +input 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.’ +""" +input 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 +} + +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 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! } -""" -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 `Build`.""" + builds( + """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 `Build`.""" + orderBy: [BuildOrderBy!] = [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: BuildFilter + ): BuildConnection - """Filter by the object’s `lastHeartbeatAt` field.""" - lastHeartbeatAt: DatetimeFilter + """Reads and enables pagination through a set of `ContentPreset`.""" + contentPresets( + """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 `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!] = [PRIMARY_KEY_ASC] - """Negates the expression.""" - not: PlatformResourceFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetFilter + ): ContentPresetConnection - """Checks for any expressions in this list.""" - or: [PlatformResourceFilter!] + """ + 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 """ - Filter by the object’s `platformResourceStatusChecksByResourceId` relation. + Reads and enables pagination through a set of `DatabaseFunctionGraphExecutionOutput`. """ - platformResourceStatusChecksByResourceId: PlatformResourceToManyPlatformResourceStatusCheckFilter + 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 + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """`platformResourceStatusChecksByResourceId` exist.""" - platformResourceStatusChecksByResourceIdExist: Boolean + """The method to use when ordering `DatabaseGraphObject`.""" + orderBy: [DatabaseGraphObjectOrderBy!] = [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: DatabaseGraphObjectFilter + ): DatabaseGraphObjectConnection - """Filter by the object’s `replicas` field.""" - replicas: IntFilter + """Reads and enables pagination through a set of `DatabaseGraphRef`.""" + databaseGraphRefs( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `resourceDefinition` relation.""" - resourceDefinition: PlatformResourceDefinitionFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """A related `resourceDefinition` exists.""" - resourceDefinitionExists: Boolean + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `resourceDefinitionId` field.""" - resourceDefinitionId: UUIDFilter + """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 - """Filter by the object’s `spec` field.""" - spec: JSONFilter + """The method to use when ordering `DatabaseGraphRef`.""" + orderBy: [DatabaseGraphRefOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `status` field.""" - status: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseGraphRefFilter + ): DatabaseGraphRefConnection - """Filter by the object’s `statusObserved` field.""" - statusObserved: JSONFilter + """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 `storageClass` field.""" - storageClass: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `storageSizeBytes` field.""" - storageSizeBytes: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """ + 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 `PlatformResource`""" -input PlatformResourceInput { - """Freeform metadata for tooling and operational notes""" - annotations: JSON - createdAt: Datetime - createdBy: UUID + """The method to use when ordering `DatabaseGraphStore`.""" + orderBy: [DatabaseGraphStoreOrderBy!] = [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: DatabaseGraphStoreFilter + ): DatabaseGraphStoreConnection + databaseReadFunctionGraph(graphId: UUID): JSON - """ - Installation ("release") this resource belongs to (NULL for standalone resources) - """ - installationId: UUID + """Reads and enables pagination through a set of `DbPreset`.""" + dbPresets( + """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 `DbPreset`.""" + orderBy: [DbPresetOrderBy!] = [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: DbPresetFilter + ): DbPresetConnection - """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) - """ - namespaceId: UUID! + """Reads and enables pagination through a set of `FunctionApiBinding`.""" + functionApiBindings( + """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 `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!] = [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: FunctionApiBindingFilter + ): FunctionApiBindingConnection """ - Resource lifecycle status: pending, provisioning, active, completed, failed, draining, deleting + Reads and enables pagination through a set of `FunctionCapabilityBinding`. """ - status: String + functionCapabilityBindings( + """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 -""" -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! + """Only read the first `n` values of the set.""" + first: Int - """Human-readable release name""" - name: String! + """Only read the last `n` values of the set.""" + last: Int - """ - Reads a single `PlatformNamespace` that is related to this `PlatformResourceInstallation`. - """ - 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 - """Namespace this installation belongs to (security boundary)""" - namespaceId: UUID! + """The method to use when ordering `FunctionCapabilityBinding`.""" + orderBy: [FunctionCapabilityBindingOrderBy!] = [PRIMARY_KEY_ASC] - """ - Release parameters — the readily-cached head; history lives in the infra store. Never contains secret/config literals. - """ - params: JSON! + """ + 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 `PlatformResource`.""" - platformResourcesByInstallationId( + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -19148,1753 +39030,1567 @@ 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 -} + functionGraphExecutionOutputs( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""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 -} + """Read all values in the set before (above) this cursor.""" + before: 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 + """Only read the first `n` values of the set.""" + first: Int - """Human-readable release name""" - name: String + """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 `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] - """ - Monotonic release revision counter: install starts at 1, bumped on every upgrade/rollback - """ - revision: Int + """ + 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) - """ - source: String -} + """Reads and enables pagination through a set of `PlatformBuild`.""" + platformBuilds( + """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 `PlatformBuild`.""" + orderBy: [PlatformBuildOrderBy!] = [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: PlatformBuildFilter + ): PlatformBuildConnection """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) + Reads and enables pagination through a set of `PlatformFunctionApiBinding`. """ - resourceId: UUID + platformFunctionApiBindings( + """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 - """A list of `PlatformResourceUsageSummary` objects.""" - nodes: [PlatformResourceUsageSummary]! + """ + 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 `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionApiBindingFilter + ): PlatformFunctionApiBindingConnection """ - The count of *all* `PlatformResourceUsageSummary` you could get from the connection. + Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. """ - 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 -} + platformFunctionCapabilityBindings( + """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 `PlatformFunctionCapabilityBinding`.""" + orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [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: PlatformFunctionCapabilityBindingFilter + ): PlatformFunctionCapabilityBindingConnection - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformFunctionDefinition`. + """ + platformFunctionDefinitions( + """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 `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!] = [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: PlatformFunctionDefinitionFilter + ): PlatformFunctionDefinitionConnection """ - Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + Reads and enables pagination through a set of `PlatformFunctionDeploymentEvent`. """ - gbSeconds: BigFloat + platformFunctionDeploymentEvents( + """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 `PlatformFunctionDeploymentEvent`.""" + orderBy: [PlatformFunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentEventFilter + ): PlatformFunctionDeploymentEventConnection """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) + Reads and enables pagination through a set of `PlatformFunctionDeployment`. """ - resourceId: UUID + platformFunctionDeployments( + """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 `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentFilter + ): PlatformFunctionDeploymentConnection """ - Memory usage for the day — SUM(memory_bytes * interval_seconds) normalized to GB-seconds + Reads and enables pagination through a set of `PlatformFunctionExecutionLog`. """ - gbSeconds: BigFloat + platformFunctionExecutionLogs( + """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 `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionExecutionLogFilter + ): PlatformFunctionExecutionLogConnection """ - Resource this summary covers (NULL for namespace-grain catch-all summaries) + Reads and enables pagination through a set of `PlatformFunctionInvocationAttempt`. """ - resourceId: UUID + platformFunctionInvocationAttempts( + """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 `PlatformFunctionInvocationAttempt`.""" + orderBy: [PlatformFunctionInvocationAttemptOrderBy!] = [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: PlatformFunctionInvocationAttemptFilter + ): PlatformFunctionInvocationAttemptConnection """ - The count of *all* `PlatformResourceUtilization` you could get from the connection. + Reads and enables pagination through a set of `PlatformFunctionInvocation`. """ - totalCount: Int! -} - -"""A `PlatformResourceUtilization` edge in the connection.""" -type PlatformResourceUtilizationEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformResourceUtilization` at the end of the edge.""" - node: PlatformResourceUtilization -} + platformFunctionInvocations( + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -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!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `avgMemoryBytes` field.""" - avgMemoryBytes: BigIntFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `cpuLimitMillicores` field.""" - cpuLimitMillicores: BigIntFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `cpuPeakUtilization` field.""" - cpuPeakUtilization: BigFloatFilter + """ + 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 `cpuRequestHeadroomMillicores` field.""" - cpuRequestHeadroomMillicores: BigIntFilter + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `cpuRequestMillicores` field.""" - cpuRequestMillicores: BigIntFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionInvocationFilter + ): PlatformFunctionInvocationConnection - """Filter by the object’s `date` field.""" - date: DateFilter + """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 `gbSeconds` field.""" - gbSeconds: BigFloatFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `kind` field.""" - kind: StringFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `maxCpuMillicores` field.""" - maxCpuMillicores: BigIntFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `maxMemoryBytes` field.""" - maxMemoryBytes: 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 `memoryLimitBytes` field.""" - memoryLimitBytes: BigIntFilter + """The method to use when ordering `PlatformImageGrant`.""" + orderBy: [PlatformImageGrantOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `memoryPeakUtilization` field.""" - memoryPeakUtilization: BigFloatFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformImageGrantFilter + ): PlatformImageGrantConnection - """Filter by the object’s `memoryRequestBytes` field.""" - memoryRequestBytes: BigIntFilter + """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 `memoryRequestHeadroomBytes` field.""" - memoryRequestHeadroomBytes: BigIntFilter + """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: PlatformResourceUtilizationFilter + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [PlatformResourceUtilizationFilter!] + """ + 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 `replicas` field.""" - replicas: IntFilter + """The method to use when ordering `PlatformImage`.""" + orderBy: [PlatformImageOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformImageFilter + ): PlatformImageConnection - """Filter by the object’s `runtimeSeconds` field.""" - runtimeSeconds: BigIntFilter + """Reads and enables pagination through a set of `PlatformInfraCommit`.""" + platformInfraCommits( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `sampleCount` field.""" - sampleCount: IntFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""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 -} + """Only read the first `n` values of the set.""" + first: 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 -} + """Only read the last `n` values of the set.""" + last: Int -"""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]! + """ + 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 `PlatformResourcesHealth` objects.""" - nodes: [PlatformResourcesHealth]! + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!] = [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: 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 + + """Only read the last `n` values of the set.""" + last: 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 `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceEventFilter + ): PlatformNamespaceEventConnection + + """Reads and enables pagination through a set of `PlatformNamespace`.""" + platformNamespaces( + """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 `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceFilter + ): PlatformNamespaceConnection """ - The count of *all* `PlatformResourcesRequirementsState` you could get from the connection. + Reads and enables pagination through a set of `PlatformProposalComment`. """ - totalCount: Int! -} - -"""A `PlatformResourcesRequirementsState` edge in the connection.""" -type PlatformResourcesRequirementsStateEdge { - """A cursor for use in pagination.""" - cursor: Cursor + platformProposalComments( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The `PlatformResourcesRequirementsState` at the end of the edge.""" - node: PlatformResourcesRequirementsState -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -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!] + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `configHash` field.""" - configHash: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `configObjectName` field.""" - configObjectName: 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: PlatformResourcesRequirementsStateFilter + """The method to use when ordering `PlatformProposalComment`.""" + orderBy: [PlatformProposalCommentOrderBy!] = [PRIMARY_KEY_ASC] - """Checks for any expressions in this list.""" - or: [PlatformResourcesRequirementsStateFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalCommentFilter + ): PlatformProposalCommentConnection - """Filter by the object’s `requirementsHash` field.""" - requirementsHash: StringFilter + """ + Reads and enables pagination through a set of `PlatformProposalFileView`. + """ + platformProposalFileViews( + """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 `secretsHash` field.""" - secretsHash: StringFilter + """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 `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 -} + """The method to use when ordering `PlatformProposalFileView`.""" + orderBy: [PlatformProposalFileViewOrderBy!] = [PRIMARY_KEY_ASC] -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 filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFileViewFilter + ): PlatformProposalFileViewConnection -""" -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 `PlatformProposalReaction`. """ - edges: [PlatformResourcesResolvedRequirementEdge]! + platformProposalReactions( + """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 `PlatformProposalReaction`.""" + orderBy: [PlatformProposalReactionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalReactionFilter + ): PlatformProposalReactionConnection """ - The count of *all* `PlatformResourcesResolvedRequirement` you could get from the connection. + Reads and enables pagination through a set of `PlatformProposalReview`. """ - totalCount: Int! -} + platformProposalReviews( + """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 + + """Only read the last `n` values of the set.""" + last: 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 `PlatformProposal`.""" + platformProposals( + """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 -""" -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!] + """The method to use when ordering `PlatformProposal`.""" + orderBy: [PlatformProposalOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `atomId` field.""" - atomId: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformProposalFilter + ): PlatformProposalConnection - """Filter by the object’s `configObjectName` field.""" - configObjectName: StringFilter + """ + Reads and enables pagination through a set of `PlatformProposalsChunk`. + """ + platformProposalsChunks( + """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 `PlatformProposalsChunk`.""" + orderBy: [PlatformProposalsChunkOrderBy!] = [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: PlatformProposalsChunkFilter + ): PlatformProposalsChunkConnection - """Filter by the object’s `required` field.""" - required: BooleanFilter + """Reads and enables pagination through a set of `PlatformRegistry`.""" + platformRegistries( + """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 `PlatformRegistry`.""" + orderBy: [PlatformRegistryOrderBy!] = [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: PlatformRegistryFilter + ): PlatformRegistryConnection """ - Reads a single `PlatformFunctionDefinition` that is related to this `PlatformWebhookEndpoint`. + Reads and enables pagination through a set of `PlatformRegistryBinding`. """ - functionDefinition: PlatformFunctionDefinition + platformRegistryBindings( + """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 `PlatformRegistryBinding`.""" + orderBy: [PlatformRegistryBindingOrderBy!] = [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: PlatformRegistryBindingFilter + ): PlatformRegistryBindingConnection + + """Reads and enables pagination through a set of `PlatformRegistryGrant`.""" + platformRegistryGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -20913,546 +40609,538 @@ type PlatformWebhookEndpoint { """ offset: Int - """The method to use when ordering `PlatformWebhookEvent`.""" - orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformRegistryGrant`.""" + orderBy: [PlatformRegistryGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformWebhookEventFilter - ): PlatformWebhookEventConnection! + where: PlatformRegistryGrantFilter + ): PlatformRegistryGrantConnection - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String! + """Reads and enables pagination through a set of `PlatformRepository`.""" + platformRepositories( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay - """ - replayWindowSeconds: Int! + """Read all values in the set before (above) this cursor.""" + before: 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 -} + """Only read the first `n` values of the set.""" + first: Int -"""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]! + """Only read the last `n` values of the set.""" + last: Int - """A list of `PlatformWebhookEndpoint` objects.""" - nodes: [PlatformWebhookEndpoint]! + """ + 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 `PlatformRepository`.""" + orderBy: [PlatformRepositoryOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryFilter + ): PlatformRepositoryConnection """ - The count of *all* `PlatformWebhookEndpoint` you could get from the connection. + Reads and enables pagination through a set of `PlatformRepositoryEvent`. """ - totalCount: Int! -} + platformRepositoryEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A `PlatformWebhookEndpoint` edge in the connection.""" -type PlatformWebhookEndpointEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The `PlatformWebhookEndpoint` at the end of the edge.""" - node: PlatformWebhookEndpoint -} + """Only read the first `n` values of the set.""" + first: Int -""" -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 + """Only read the last `n` values of the set.""" + last: Int - """Checks for all expressions in this list.""" - and: [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 `createdAt` field.""" - createdAt: DatetimeFilter + """The method to use when ordering `PlatformRepositoryEvent`.""" + orderBy: [PlatformRepositoryEventOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryEventFilter + ): PlatformRepositoryEventConnection - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: PlatformFunctionDefinitionFilter + """ + Reads and enables pagination through a set of `PlatformRepositoryWorkflow`. + """ + platformRepositoryWorkflows( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `host` field.""" - host: 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 `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 `PlatformRepositoryWorkflow`.""" + orderBy: [PlatformRepositoryWorkflowOrderBy!] = [PRIMARY_KEY_ASC] - """Negates the expression.""" - not: PlatformWebhookEndpointFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformRepositoryWorkflowFilter + ): PlatformRepositoryWorkflowConnection - """Checks for any expressions in this list.""" - or: [PlatformWebhookEndpointFilter!] + """ + Reads and enables pagination through a set of `PlatformResourceDeclaredCapacity`. + """ + platformResourceDeclaredCapacities( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `path` field.""" - path: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `platformWebhookEventsByEndpointId` relation.""" - platformWebhookEventsByEndpointId: PlatformWebhookEndpointToManyPlatformWebhookEventFilter + """Only read the first `n` values of the set.""" + first: Int - """`platformWebhookEventsByEndpointId` exist.""" - platformWebhookEventsByEndpointIdExist: Boolean + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `provider` field.""" - provider: 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 `replayWindowSeconds` field.""" - replayWindowSeconds: IntFilter + """The method to use when ordering `PlatformResourceDeclaredCapacity`.""" + orderBy: [PlatformResourceDeclaredCapacityOrderBy!] = [NATURAL] - """Filter by the object’s `signingSecretName` field.""" - signingSecretName: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDeclaredCapacityFilter + ): PlatformResourceDeclaredCapacityConnection - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + Reads and enables pagination through a set of `PlatformResourceDefinition`. + """ + platformResourceDefinitions( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""An input for mutations affecting `PlatformWebhookEndpoint`""" -input PlatformWebhookEndpointInput { - """Whether this endpoint currently accepts deliveries""" - active: Boolean - createdAt: Datetime - createdBy: UUID + """Only read the first `n` values of the set.""" + first: Int - """ - Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. - """ - functionDefinitionId: UUID! + """Only read the last `n` values of the set.""" + last: Int - """ - Inbound Host header this endpoint matches (normalized lower-case, no port) - """ - host: 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 - """Namespace that owns this endpoint and contains its signing secret""" - namespaceId: UUID! + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" - path: String! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDefinitionFilter + ): PlatformResourceDefinitionConnection - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String + """Reads and enables pagination through a set of `PlatformResourceEvent`.""" + platformResourceEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay - """ - replayWindowSeconds: Int + """Read all values in the set before (above) this cursor.""" + before: 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 -} + """Only read the first `n` values of the set.""" + first: Int -"""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 -} + """Only read the last `n` values of the set.""" + last: Int -""" -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 + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Same-scope function definition invoked on delivery. The function must list the webhook channel in access_channels. - """ - functionDefinitionId: UUID + """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 """ - Inbound Host header this endpoint matches (normalized lower-case, no port) + Reads and enables pagination through a set of `PlatformResourceInstallation`. """ - host: String - id: UUID + platformResourceInstallations( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Namespace that owns this endpoint and contains its signing secret""" - namespaceId: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Exact request path this endpoint matches (e.g. /webhooks/stripe)""" - path: String + """Only read the first `n` values of the set.""" + first: Int - """Verification scheme: generic (HMAC), stripe, or github""" - provider: String + """Only read the last `n` values of the set.""" + last: Int - """ - Maximum age (seconds) of a signed provider timestamp before the delivery is rejected as a replay - """ - replayWindowSeconds: 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 """ - 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 `PlatformResourceStatusCheck`. """ - signingSecretName: String - updatedAt: Datetime - updatedBy: UUID -} + platformResourceStatusChecks( + """Read all values in the set after (below) this cursor.""" + after: 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 + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filters to entities where no related entity matches.""" - none: PlatformWebhookEventFilter + """Only read the first `n` values of the set.""" + first: Int - """Filters to entities where at least one related entity matches.""" - some: PlatformWebhookEventFilter -} + """Only read the last `n` values of the set.""" + last: 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 + """ + 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 `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceStatusCheckFilter + ): PlatformResourceStatusCheckConnection """ - Reads a single `PlatformWebhookEndpoint` that is related to this `PlatformWebhookEvent`. + Reads and enables pagination through a set of `PlatformResourceUsageLog`. """ - endpoint: PlatformWebhookEndpoint + platformResourceUsageLogs( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Endpoint that accepted this delivery""" - endpointId: UUID! + """Only read the first `n` values of the set.""" + first: Int - """Failure detail when status = failed""" - error: String + """Only read the last `n` values of the set.""" + last: Int - """Provider-supplied delivery/event id used for idempotent dedup""" - externalEventId: 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 - """ - created_at of the enqueued invocation (partition key companion to invocation_id) - """ - invocationCreatedAt: Datetime + """The method to use when ordering `PlatformResourceUsageLog`.""" + orderBy: [PlatformResourceUsageLogOrderBy!] = [PRIMARY_KEY_ASC] - """ - Pending function invocation enqueued for this delivery (NULL until enqueued) - """ - invocationId: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceUsageLogFilter + ): PlatformResourceUsageLogConnection """ - Parsed delivery payload (parsed only after signature verification over the exact raw bytes) + Reads and enables pagination through a set of `PlatformResourceUsageSummary`. """ - payload: JSON! + platformResourceUsageSummaries( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Provider that produced this delivery (copied from the endpoint at acceptance) - """ - provider: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) - """ - providerTimestamp: Datetime + """Only read the first `n` values of the set.""" + first: Int - """Acceptance lifecycle: accepted, processed, failed""" - status: String! - updatedAt: Datetime -} + """Only read the last `n` values of the set.""" + last: 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]! + """ + 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 `PlatformWebhookEvent` objects.""" - nodes: [PlatformWebhookEvent]! + """The method to use when ordering `PlatformResourceUsageSummary`.""" + orderBy: [PlatformResourceUsageSummaryOrderBy!] = [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: PlatformResourceUsageSummaryFilter + ): PlatformResourceUsageSummaryConnection """ - The count of *all* `PlatformWebhookEvent` you could get from the connection. + Reads and enables pagination through a set of `PlatformResourceUtilization`. """ - 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 -} + platformResourceUtilizations( + """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 `PlatformResourceUtilization`.""" + orderBy: [PlatformResourceUtilizationOrderBy!] = [NATURAL] - """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: PlatformResourceUtilizationFilter + ): PlatformResourceUtilizationConnection - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResources( + """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 `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] - """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: PlatformResourceFilter + ): PlatformResourceConnection - """Filter by the object’s `providerTimestamp` field.""" - providerTimestamp: DatetimeFilter + """ + Reads and enables pagination through a set of `PlatformResourcesHealth`. + """ + platformResourcesHealths( + """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 `PlatformResourcesHealth`.""" + orderBy: [PlatformResourcesHealthOrderBy!] = [NATURAL] - """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: PlatformResourcesHealthFilter + ): PlatformResourcesHealthConnection """ - created_at of the enqueued invocation (partition key companion to invocation_id) + Reads and enables pagination through a set of `PlatformResourcesRequirementsState`. """ - invocationCreatedAt: Datetime + platformResourcesRequirementsStates( + """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 `PlatformResourcesRequirementsState`.""" + orderBy: [PlatformResourcesRequirementsStateOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourcesRequirementsStateFilter + ): PlatformResourcesRequirementsStateConnection """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) + Reads and enables pagination through a set of `PlatformResourcesResolvedRequirement`. """ - providerTimestamp: Datetime - - """Acceptance lifecycle: accepted, processed, failed""" - status: String - updatedAt: Datetime -} + platformResourcesResolvedRequirements( + """Read all values in the set after (below) this cursor.""" + after: 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 -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -""" -Represents an update to a `PlatformWebhookEvent`. Fields that are set will be updated. -""" -input PlatformWebhookEventPatch { - createdAt: Datetime + """Only read the first `n` values of the set.""" + first: Int - """Endpoint that accepted this delivery""" - endpointId: UUID + """Only read the last `n` values of the set.""" + last: Int - """Failure detail when status = 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 - """Provider-supplied delivery/event id used for idempotent dedup""" - externalEventId: String - id: UUID + """ + The method to use when ordering `PlatformResourcesResolvedRequirement`. + """ + orderBy: [PlatformResourcesResolvedRequirementOrderBy!] = [NATURAL] - """ - created_at of the enqueued invocation (partition key companion to invocation_id) - """ - invocationCreatedAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourcesResolvedRequirementFilter + ): PlatformResourcesResolvedRequirementConnection """ - Pending function invocation enqueued for this delivery (NULL until enqueued) + Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ - invocationId: UUID + platformWebhookEndpoints( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Parsed delivery payload (parsed only after signature verification over the exact raw bytes) - """ - payload: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Provider that produced this delivery (copied from the endpoint at acceptance) - """ - provider: String + """Only read the first `n` values of the set.""" + first: Int - """ - Signed provider timestamp used for replay-window validation (NULL when the provider supplies none) - """ - providerTimestamp: Datetime + """Only read the last `n` values of the set.""" + last: Int - """Acceptance lifecycle: accepted, processed, failed""" - status: String - updatedAt: Datetime -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -input ProvisionBucketInput { - """The logical bucket key (e.g., "public", "private")""" - bucketKey: String! + """The method to use when ordering `PlatformWebhookEndpoint`.""" + orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] - """ - Owner entity ID for entity-scoped bucket provisioning. - Omit for app-level (database-wide) storage. - """ - ownerId: UUID -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformWebhookEndpointFilter + ): PlatformWebhookEndpointConnection -type ProvisionBucketPayload { - """The access type applied""" - accessType: String! + """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" + platformWebhookEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """The S3 bucket name that was provisioned""" - bucketName: String! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The S3 endpoint (null for AWS S3 default)""" - endpoint: String + """Only read the first `n` values of the set.""" + first: Int - """Error message if provisioning failed""" - error: String + """Only read the last `n` values of the set.""" + last: Int - """The storage provider used""" - 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 - """Whether provisioning succeeded""" - success: Boolean! -} + """The method to use when ordering `PlatformWebhookEvent`.""" + orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] -"""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 filter to be used in determining which values should be returned by the collection. + """ + where: PlatformWebhookEventFilter + ): PlatformWebhookEventConnection - """Reads and enables pagination through a set of `ContentPreset`.""" - contentPresets( + """Reads and enables pagination through a set of `ProposalComment`.""" + proposalComments( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21471,17 +41159,17 @@ type Query { """ offset: Int - """The method to use when ordering `ContentPreset`.""" - orderBy: [ContentPresetOrderBy!] = [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: ContentPresetFilter - ): ContentPresetConnection + where: ProposalCommentFilter + ): ProposalCommentConnection - """Reads and enables pagination through a set of `DbPreset`.""" - dbPresets( + """Reads and enables pagination through a set of `ProposalFileView`.""" + proposalFileViews( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21500,17 +41188,17 @@ type Query { """ offset: Int - """The method to use when ordering `DbPreset`.""" - orderBy: [DbPresetOrderBy!] = [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: DbPresetFilter - ): DbPresetConnection + where: ProposalFileViewFilter + ): ProposalFileViewConnection - """Reads and enables pagination through a set of `FunctionApiBinding`.""" - functionApiBindings( + """Reads and enables pagination through a set of `ProposalReaction`.""" + proposalReactions( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21529,19 +41217,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!] = [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: FunctionApiBindingFilter - ): FunctionApiBindingConnection + where: ProposalReactionFilter + ): ProposalReactionConnection - """ - Reads and enables pagination through a set of `FunctionCapabilityBinding`. - """ - functionCapabilityBindings( + """Reads and enables pagination through a set of `ProposalReview`.""" + proposalReviews( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21560,17 +41246,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionCapabilityBinding`.""" - orderBy: [FunctionCapabilityBindingOrderBy!] = [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: FunctionCapabilityBindingFilter - ): FunctionCapabilityBindingConnection + where: ProposalReviewFilter + ): ProposalReviewConnection - """Reads and enables pagination through a set of `FunctionDefinition`.""" - functionDefinitions( + """Reads and enables pagination through a set of `Proposal`.""" + proposals( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21589,19 +41275,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!] = [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: FunctionDefinitionFilter - ): FunctionDefinitionConnection + where: ProposalFilter + ): ProposalConnection - """ - Reads and enables pagination through a set of `FunctionDeploymentEvent`. - """ - functionDeploymentEvents( + """Reads and enables pagination through a set of `ProposalsChunk`.""" + proposalsChunks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21620,17 +41304,18 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!] = [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: FunctionDeploymentEventFilter - ): FunctionDeploymentEventConnection + where: ProposalsChunkFilter + ): ProposalsChunkConnection + readFunctionGraph(graphId: UUID): JSON - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + """Reads and enables pagination through a set of `Registry`.""" + registries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21649,17 +41334,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [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: FunctionDeploymentFilter - ): FunctionDeploymentConnection + where: RegistryFilter + ): RegistryConnection - """Reads and enables pagination through a set of `FunctionExecutionLog`.""" - functionExecutionLogs( + """Reads and enables pagination through a set of `RegistryBinding`.""" + registryBindings( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21678,17 +41363,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!] = [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: FunctionExecutionLogFilter - ): FunctionExecutionLogConnection + where: RegistryBindingFilter + ): RegistryBindingConnection - """Reads and enables pagination through a set of `FunctionGraphCommit`.""" - functionGraphCommits( + """Reads and enables pagination through a set of `RegistryGrant`.""" + registryGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21707,19 +41392,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!] = [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: FunctionGraphCommitFilter - ): FunctionGraphCommitConnection + where: RegistryGrantFilter + ): RegistryGrantConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecutionNodeState`. - """ - functionGraphExecutionNodeStates( + """Reads and enables pagination through a set of `Repository`.""" + repositories( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21738,19 +41421,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!] = [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: FunctionGraphExecutionNodeStateFilter - ): FunctionGraphExecutionNodeStateConnection + where: RepositoryFilter + ): RepositoryConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecutionOutput`. - """ - functionGraphExecutionOutputs( + """Reads and enables pagination through a set of `RepositoryEvent`.""" + repositoryEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21769,19 +41450,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!] = [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: FunctionGraphExecutionOutputFilter - ): FunctionGraphExecutionOutputConnection + where: RepositoryEventFilter + ): RepositoryEventConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecution`. - """ - functionGraphExecutions( + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflows( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21800,17 +41479,19 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!] = [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: FunctionGraphExecutionFilter - ): FunctionGraphExecutionConnection + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection - """Reads and enables pagination through a set of `FunctionGraphObject`.""" - functionGraphObjects( + """ + Reads and enables pagination through a set of `ResourceDeclaredCapacity`. + """ + resourceDeclaredCapacities( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21829,17 +41510,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] + """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: FunctionGraphObjectFilter - ): FunctionGraphObjectConnection - - """Reads and enables pagination through a set of `FunctionGraphRef`.""" - functionGraphRefs( + 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 @@ -21858,17 +41539,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!] = [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: FunctionGraphRefFilter - ): FunctionGraphRefConnection + where: ResourceDefinitionFilter + ): ResourceDefinitionConnection - """Reads and enables pagination through a set of `FunctionGraphStore`.""" - functionGraphStores( + """Reads and enables pagination through a set of `ResourceEvent`.""" + resourceEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21887,17 +41568,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!] = [PRIMARY_KEY_ASC] + """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: FunctionGraphStoreFilter - ): FunctionGraphStoreConnection + where: ResourceEventFilter + ): ResourceEventConnection - """Reads and enables pagination through a set of `FunctionGraph`.""" - functionGraphs( + """Reads and enables pagination through a set of `ResourceInstallation`.""" + resourceInstallations( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21916,19 +41597,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!] = [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: FunctionGraphFilter - ): FunctionGraphConnection + where: ResourceInstallationFilter + ): ResourceInstallationConnection - """ - Reads and enables pagination through a set of `FunctionInvocationAttempt`. - """ - functionInvocationAttempts( + """Reads and enables pagination through a set of `ResourceStatusCheck`.""" + resourceStatusChecks( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21947,17 +41626,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionInvocationAttempt`.""" - orderBy: [FunctionInvocationAttemptOrderBy!] = [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: FunctionInvocationAttemptFilter - ): FunctionInvocationAttemptConnection + where: ResourceStatusCheckFilter + ): ResourceStatusCheckConnection - """Reads and enables pagination through a set of `FunctionInvocation`.""" - functionInvocations( + """Reads and enables pagination through a set of `ResourceUsageLog`.""" + resourceUsageLogs( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21976,35 +41655,17 @@ type Query { """ offset: Int - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!] = [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: FunctionInvocationFilter - ): FunctionInvocationConnection - - """Reads and enables pagination through a set of `GetAllTreeNodesRecord`.""" - getAllTreeNodes( - """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 - ): GetAllTreeNodesConnection - getNodeAtPath(id: UUID, path: [String], sId: UUID): FunctionGraphObject + where: ResourceUsageLogFilter + ): ResourceUsageLogConnection - """Reads and enables pagination through a set of `InfraCommit`.""" - infraCommits( + """Reads and enables pagination through a set of `ResourceUsageSummary`.""" + resourceUsageSummaries( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22023,37 +41684,46 @@ type Query { """ offset: Int - """The method to use when ordering `InfraCommit`.""" - orderBy: [InfraCommitOrderBy!] = [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: InfraCommitFilter - ): InfraCommitConnection + where: ResourceUsageSummaryFilter + ): ResourceUsageSummaryConnection - """ - Reads and enables pagination through a set of `InfraGetAllTreeNodesRecord`. - """ - infraGetAllTreeNodes( + """Reads and enables pagination through a set of `ResourceUtilization`.""" + resourceUtilizations( """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 `ResourceUtilization`.""" + orderBy: [ResourceUtilizationOrderBy!] = [NATURAL] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceUtilizationFilter + ): ResourceUtilizationConnection + + """Reads and enables pagination through a set of `Resource`.""" + resources( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22072,17 +41742,17 @@ type Query { """ offset: Int - """The method to use when ordering `InfraObject`.""" - orderBy: [InfraObjectOrderBy!] = [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: InfraObjectFilter - ): InfraObjectConnection + where: ResourceFilter + ): ResourceConnection - """Reads and enables pagination through a set of `InfraRef`.""" - infraRefs( + """Reads and enables pagination through a set of `ResourcesHealth`.""" + resourcesHealths( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22101,17 +41771,19 @@ type Query { """ offset: Int - """The method to use when ordering `InfraRef`.""" - orderBy: [InfraRefOrderBy!] = [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: InfraRefFilter - ): InfraRefConnection + where: ResourcesHealthFilter + ): ResourcesHealthConnection - """Reads and enables pagination through a set of `InfraStore`.""" - infraStores( + """ + Reads and enables pagination through a set of `ResourcesRequirementsState`. + """ + resourcesRequirementsStates( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22130,17 +41802,19 @@ type Query { """ offset: Int - """The method to use when ordering `InfraStore`.""" - orderBy: [InfraStoreOrderBy!] = [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: InfraStoreFilter - ): InfraStoreConnection + where: ResourcesRequirementsStateFilter + ): ResourcesRequirementsStateConnection - """Reads and enables pagination through a set of `IntegrationProvider`.""" - integrationProviders( + """ + Reads and enables pagination through a set of `ResourcesResolvedRequirement`. + """ + resourcesResolvedRequirements( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22159,17 +41833,17 @@ type Query { """ offset: Int - """The method to use when ordering `IntegrationProvider`.""" - orderBy: [IntegrationProviderOrderBy!] = [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: IntegrationProviderFilter - ): IntegrationProviderConnection + where: ResourcesResolvedRequirementFilter + ): ResourcesResolvedRequirementConnection - """Reads and enables pagination through a set of `NamespaceEvent`.""" - namespaceEvents( + """Reads and enables pagination through a set of `WebhookEndpoint`.""" + webhookEndpoints( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22188,17 +41862,17 @@ type Query { """ offset: Int - """The method to use when ordering `NamespaceEvent`.""" - orderBy: [NamespaceEventOrderBy!] = [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: NamespaceEventFilter - ): NamespaceEventConnection + where: WebhookEndpointFilter + ): WebhookEndpointConnection - """Reads and enables pagination through a set of `Namespace`.""" - namespaces( + """Reads and enables pagination through a set of `WebhookEvent`.""" + webhookEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22217,19 +41891,79 @@ type Query { """ offset: Int - """The method to use when ordering `Namespace`.""" - orderBy: [NamespaceOrderBy!] = [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: NamespaceFilter - ): NamespaceConnection + 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 `PlatformFunctionApiBinding`. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - platformFunctionApiBindings( + 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 @@ -22248,19 +41982,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionApiBinding`.""" - orderBy: [PlatformFunctionApiBindingOrderBy!] = [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: PlatformFunctionApiBindingFilter - ): PlatformFunctionApiBindingConnection + where: RegistryBindingFilter + ): RegistryBindingConnection! - """ - Reads and enables pagination through a set of `PlatformFunctionCapabilityBinding`. - """ - platformFunctionCapabilityBindings( + """Reads and enables pagination through a set of `RegistryGrant`.""" + registryGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22279,401 +42011,840 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformFunctionCapabilityBinding`.""" - orderBy: [PlatformFunctionCapabilityBindingOrderBy!] = [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: PlatformFunctionCapabilityBindingFilter - ): PlatformFunctionCapabilityBindingConnection + where: RegistryGrantFilter + ): RegistryGrantConnection! """ - Reads and enables pagination through a set of `PlatformFunctionDefinition`. + Role in this scope: source (the push target), cache (read-through mirror), external (pull only) """ - platformFunctionDefinitions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + role: String! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + status: String! + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Only read the first `n` values of the set.""" - first: Int +""" +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 - """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 `updatedAt` field.""" + updatedAt: DatetimeFilter - """The method to use when ordering `PlatformFunctionDefinition`.""" - orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionDefinitionFilter - ): PlatformFunctionDefinitionConnection +"""Grants that make a registry usable by one scope""" +type RegistryGrant { + """Endpoint actions this grant allows (read, write)""" + actions: [String]! + createdAt: Datetime + createdByPrincipal: UUID - """ - Reads and enables pagination through a set of `PlatformFunctionDeploymentEvent`. - """ - platformFunctionDeploymentEvents( - """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 `PlatformFunctionDeploymentEvent`.""" - orderBy: [PlatformFunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + """Reads a single `Registry` that is related to this `RegistryGrant`.""" + registry: Registry - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionDeploymentEventFilter - ): PlatformFunctionDeploymentEventConnection + """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 `PlatformFunctionDeployment`. + A list of edges which contains the `RegistryGrant` and cursor to aid in pagination. """ - platformFunctionDeployments( - """Read all values in the set after (below) this cursor.""" - after: Cursor + edges: [RegistryGrantEdge]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """A list of `RegistryGrant` objects.""" + nodes: [RegistryGrant]! - """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* `RegistryGrant` 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 `RegistryGrant` edge in the connection.""" +type RegistryGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `PlatformFunctionDeployment`.""" - orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + """The `RegistryGrant` at the end of the edge.""" + node: RegistryGrant +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionDeploymentFilter - ): PlatformFunctionDeploymentConnection +""" +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 - """ - Reads and enables pagination through a set of `PlatformFunctionExecutionLog`. - """ - platformFunctionExecutionLogs( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Checks for all expressions in this list.""" + and: [RegistryGrantFilter!] - """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 `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `databaseId` field.""" + databaseId: 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 `expiresAt` field.""" + expiresAt: DatetimeFilter - """The method to use when ordering `PlatformFunctionExecutionLog`.""" - orderBy: [PlatformFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `grantedBy` field.""" + grantedBy: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionExecutionLogFilter - ): PlatformFunctionExecutionLogConnection + """Filter by the object’s `granteeKey` field.""" + granteeKey: UUIDFilter - """ - Reads and enables pagination through a set of `PlatformFunctionInvocationAttempt`. - """ - platformFunctionInvocationAttempts( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `granteeScope` field.""" + granteeScope: StringFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Negates the expression.""" + not: RegistryGrantFilter - """Only read the last `n` values of the set.""" - last: Int + """Checks for any expressions in this list.""" + or: [RegistryGrantFilter!] - """ - 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 `registry` relation.""" + registry: RegistryFilter - """The method to use when ordering `PlatformFunctionInvocationAttempt`.""" - orderBy: [PlatformFunctionInvocationAttemptOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `registryId` field.""" + registryId: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionInvocationAttemptFilter - ): PlatformFunctionInvocationAttemptConnection + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - 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 `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""An input for mutations affecting `RegistryGrant`""" +input RegistryGrantInput { + """Endpoint actions this grant allows (read, write)""" + actions: [String] + createdAt: Datetime + 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 + """When this grant stops applying (NULL never expires)""" + expiresAt: 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 issued this grant""" + grantedBy: UUID - """The method to use when ordering `PlatformFunctionInvocation`.""" - orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + """Scope key of the grantee (a database_id or an entity_id)""" + granteeKey: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformFunctionInvocationFilter - ): PlatformFunctionInvocationConnection + """Scope tier of the grantee (database, org, app, platform)""" + granteeScope: String! + id: UUID - """Reads and enables pagination through a set of `PlatformInfraCommit`.""" - platformInfraCommits( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Registry this grant applies to""" + registryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""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 +} - """Only read the first `n` values of the set.""" - first: Int +""" +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 - """Only read the last `n` values of the set.""" - last: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: 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 this grant stops applying (NULL never expires)""" + expiresAt: Datetime - """The method to use when ordering `PlatformInfraCommit`.""" - orderBy: [PlatformInfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + """User who issued this grant""" + grantedBy: UUID - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformInfraCommitFilter - ): PlatformInfraCommitConnection + """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 +} + +"""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 `PlatformInfraGetAllTreeNodesRecord`. + Path prefix within the host (npm scope, OCI project); NULL = the host root """ - platformInfraGetAllTreeNodes( - """Read all values in the set after (below) this cursor.""" - after: Cursor + basePath: String + createdAt: Datetime + createdByPrincipal: UUID - """Only read the first `n` values of the set.""" - first: Int - id: UUID + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + credentialSecretName: String - """ - 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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Reads and enables pagination through a set of `PlatformInfraObject`.""" - platformInfraObjects( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + 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 - """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 `PlatformInfraObject`.""" - orderBy: [PlatformInfraObjectOrderBy!] = [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: PlatformInfraObjectFilter - ): PlatformInfraObjectConnection + """Freeform metadata (mirror-of pointer, rate limits, contact)""" + metadata: JSON - """Reads and enables pagination through a set of `PlatformInfraRef`.""" - platformInfraRefs( - """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 `PlatformInfraRef`.""" - orderBy: [PlatformInfraRefOrderBy!] = [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: PlatformInfraRefFilter - ): PlatformInfraRefConnection + """ + 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 `PlatformInfraStore`.""" - platformInfraStores( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Name of the infra secret carrying this registry's credential (NULL when auth_mode = none) + """ + 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 `PlatformInfraStore`.""" - orderBy: [PlatformInfraStoreOrderBy!] = [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: PlatformInfraStoreFilter - ): PlatformInfraStoreConnection + """Labels for selecting registries (lane, region, mirror role)""" + labels: JSON """ - Reads and enables pagination through a set of `PlatformNamespaceEvent`. + Message from the last failed provision/deprovision attempt (NULL when healthy) """ - platformNamespaceEvents( - """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 `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!] = [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: PlatformNamespaceEventFilter - ): PlatformNamespaceEventConnection + """ + 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 `PlatformNamespace`.""" - platformNamespaces( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Provisioning state (pending, provisioning, active, failed); rows the platform does not create are active on insert + """ + 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 `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!] = [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: PlatformNamespaceFilter - ): PlatformNamespaceConnection + """Filters to entities where at least one related entity matches.""" + some: RegistryGrantFilter +} - """ - Reads and enables pagination through a set of `PlatformResourceDeclaredCapacity`. - """ - platformResourceDeclaredCapacities( +"""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 @@ -22692,79 +42863,82 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourceDeclaredCapacity`.""" - orderBy: [PlatformResourceDeclaredCapacityOrderBy!] = [NATURAL] + """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: PlatformResourceDeclaredCapacityFilter - ): PlatformResourceDeclaredCapacityConnection + where: BuildFilter + ): BuildConnection! + + """URL a workspace clones from (NULL until the repository is provisioned)""" + cloneUrl: String """ - Reads and enables pagination through a set of `PlatformResourceDefinition`. + TRGM similarity when searching `cloneUrl`. Returns null when no trgm search filter is active. """ - platformResourceDefinitions( - """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 + cloneUrlTrgmSimilarity: Float + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """Only read the last `n` values of the set.""" - last: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Branch a clone checks out and a proposal targets by default""" + defaultBranch: String! - """The method to use when ordering `PlatformResourceDefinition`.""" - orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """ + TRGM similarity when searching `defaultBranch`. Returns null when no trgm search filter is active. + """ + defaultBranchTrgmSimilarity: Float - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceDefinitionFilter - ): PlatformResourceDefinitionConnection + """What this repository holds""" + description: String - """Reads and enables pagination through a set of `PlatformResourceEvent`.""" - platformResourceEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. + """ + descriptionTrgmSimilarity: Float + embedding: Vector + embeddingUpdatedAt: Datetime - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float - """Only read the first `n` values of the set.""" - first: Int + """ + Identifier of this repository in the external provider (NULL for local) + """ + externalId: String - """Only read the last `n` values of the set.""" - last: Int + """ + TRGM similarity when searching `externalId`. Returns null when no trgm search filter is active. + """ + externalIdTrgmSimilarity: Float + 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 + """Whether this repository is retired: readable, not written to""" + isArchived: Boolean! - """The method to use when ordering `PlatformResourceEvent`.""" - orderBy: [PlatformResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + """Provider detail (installation id, topics, external URLs)""" + metadata: JSON - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceEventFilter - ): PlatformResourceEventConnection + """Human-readable repository name""" + name: String! """ - Reads and enables pagination through a set of `PlatformResourceInstallation`. + TRGM similarity when searching `name`. Returns null when no trgm search filter is active. """ - platformResourceInstallations( + 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 @@ -22783,19 +42957,25 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourceInstallation`.""" - orderBy: [PlatformResourceInstallationOrderBy!] = [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: PlatformResourceInstallationFilter - ): PlatformResourceInstallationConnection + where: ProposalFilter + ): ProposalConnection! + + """Where the repository lives: local (platform git server) or github""" + provider: String! """ - Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + TRGM similarity when searching `provider`. Returns null when no trgm search filter is active. """ - platformResourceStatusChecks( + providerTrgmSimilarity: Float + + """Reads and enables pagination through a set of `RepositoryEvent`.""" + repositoryEvents( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22814,19 +42994,17 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourceStatusCheck`.""" - orderBy: [PlatformResourceStatusCheckOrderBy!] = [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: PlatformResourceStatusCheckFilter - ): PlatformResourceStatusCheckConnection + where: RepositoryEventFilter + ): RepositoryEventConnection! - """ - Reads and enables pagination through a set of `PlatformResourceUsageLog`. - """ - platformResourceUsageLogs( + """Reads and enables pagination through a set of `RepositoryWorkflow`.""" + repositoryWorkflows( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22845,79 +43023,88 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResourceUsageLog`.""" - orderBy: [PlatformResourceUsageLogOrderBy!] = [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: PlatformResourceUsageLogFilter - ): PlatformResourceUsageLogConnection + where: RepositoryWorkflowFilter + ): RepositoryWorkflowConnection! """ - Reads and enables pagination through a set of `PlatformResourceUsageSummary`. + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges """ - platformResourceUsageSummaries( - """Read all values in the set after (below) this cursor.""" - after: Cursor + requiredChecks: [String]! + search: FullText - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + 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 - """Only read the first `n` values of the set.""" - first: Int + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float - """Only read the last `n` values of the set.""" - last: Int + """URL-safe identifier, unique within the owning scope""" + 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 + """ + TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. + """ + slugTrgmSimilarity: Float + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID - """The method to use when ordering `PlatformResourceUsageSummary`.""" - orderBy: [PlatformResourceUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] + """ + Read reach: private (owner), internal (scope members), public (any authenticated actor) + """ + visibility: String! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceUsageSummaryFilter - ): PlatformResourceUsageSummaryConnection + """ + 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 { """ - Reads and enables pagination through a set of `PlatformResourceUtilization`. + A list of edges which contains the `Repository` and cursor to aid in pagination. """ - platformResourceUtilizations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + edges: [RepositoryEdge]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """A list of `Repository` objects.""" + nodes: [Repository]! - """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* `Repository` 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 `Repository` edge in the connection.""" +type RepositoryEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `PlatformResourceUtilization`.""" - orderBy: [PlatformResourceUtilizationOrderBy!] = [NATURAL] + """The `Repository` at the end of the edge.""" + node: Repository +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourceUtilizationFilter - ): PlatformResourceUtilizationConnection +"""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 `PlatformResource`.""" - platformResources( + """Reads and enables pagination through a set of `Build`.""" + buildsByEventId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22936,233 +43123,683 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformResource`.""" - orderBy: [PlatformResourceOrderBy!] = [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: PlatformResourceFilter - ): PlatformResourceConnection + 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 `PlatformResourcesHealth`. + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) """ - platformResourcesHealths( - """Read all values in the set after (below) this cursor.""" - after: Cursor + deliveryId: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID! - """Only read the first `n` values of the set.""" - first: Int + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON - """Only read the last `n` values of the set.""" - last: Int + """Normalized event body the workflows read""" + payload: JSON! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Git ref the event concerns (refs/heads/main)""" + ref: String - """The method to use when ordering `PlatformResourcesHealth`.""" - orderBy: [PlatformResourcesHealthOrderBy!] = [NATURAL] + """Reads a single `Repository` that is related to this `RepositoryEvent`.""" + repository: Repository - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourcesHealthFilter - ): PlatformResourcesHealthConnection + """Repository this event happened to""" + repositoryId: UUID! + updatedAt: Datetime + updatedByPrincipal: UUID +} +"""A connection to a list of `RepositoryEvent` values.""" +type RepositoryEventConnection { """ - Reads and enables pagination through a set of `PlatformResourcesRequirementsState`. + A list of edges which contains the `RepositoryEvent` and cursor to aid in pagination. """ - platformResourcesRequirementsStates( - """Read all values in the set after (below) this cursor.""" - after: Cursor + edges: [RepositoryEventEdge]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """A list of `RepositoryEvent` objects.""" + nodes: [RepositoryEvent]! - """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* `RepositoryEvent` 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 `RepositoryEvent` edge in the connection.""" +type RepositoryEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `PlatformResourcesRequirementsState`.""" - orderBy: [PlatformResourcesRequirementsStateOrderBy!] = [NATURAL] + """The `RepositoryEvent` at the end of the edge.""" + node: RepositoryEvent +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourcesRequirementsStateFilter - ): PlatformResourcesRequirementsStateConnection +""" +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 { """ - Reads and enables pagination through a set of `PlatformResourcesResolvedRequirement`. + Authenticated actor behind the event (NULL when only the sending system was proven) """ - platformResourcesResolvedRequirements( - """Read all values in the set after (below) this cursor.""" - after: Cursor + actorId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + 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 + """ + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) + """ + deliveryId: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String! + id: UUID - """ - The method to use when ordering `PlatformResourcesResolvedRequirement`. - """ - orderBy: [PlatformResourcesResolvedRequirementOrderBy!] = [NATURAL] + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformResourcesResolvedRequirementFilter - ): PlatformResourcesResolvedRequirementConnection + """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 { """ - Reads and enables pagination through a set of `PlatformWebhookEndpoint`. + Authenticated actor behind the event (NULL when only the sending system was proven) """ - platformWebhookEndpoints( - """Read all values in the set after (below) this cursor.""" - after: Cursor + actorId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Commit the ref points at after the event""" + commitSha: String + createdAt: Datetime + 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 + """ + Provider delivery identifier, for redelivery dedupe (NULL for local hooks) + """ + deliveryId: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """What happened: push, tag, pr_open, pr_merge, proposal_comment, manual""" + eventType: String + id: UUID - """The method to use when ordering `PlatformWebhookEndpoint`.""" - orderBy: [PlatformWebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """ + Unverified provider detail (payload login, commit author, external URLs) + """ + metadata: JSON - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformWebhookEndpointFilter - ): PlatformWebhookEndpointConnection + """Normalized event body the workflows read""" + payload: JSON - """Reads and enables pagination through a set of `PlatformWebhookEvent`.""" - platformWebhookEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Git ref the event concerns (refs/heads/main)""" + ref: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Repository this event happened to""" + repositoryId: UUID + updatedAt: Datetime + updatedByPrincipal: UUID +} - """Only read the first `n` values of the set.""" - first: Int +""" +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 - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where no related entity matches.""" + none: BuildFilter - """ - 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: BuildFilter +} - """The method to use when ordering `PlatformWebhookEvent`.""" - orderBy: [PlatformWebhookEventOrderBy!] = [PRIMARY_KEY_ASC] +""" +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!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformWebhookEventFilter - ): PlatformWebhookEventConnection - readFunctionGraph(graphId: UUID): JSON + """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 `repositoryWorkflows` relation.""" + repositoryWorkflows: RepositoryToManyRepositoryWorkflowFilter + + """`repositoryWorkflows` exist.""" + repositoryWorkflowsExist: Boolean + + """Filter by the object’s `requiredChecks` field.""" + requiredChecks: StringListFilter + + """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 """ - Reads and enables pagination through a set of `ResourceDeclaredCapacity`. + 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. """ - resourceDeclaredCapacities( - """Read all values in the set after (below) this cursor.""" - after: Cursor + unifiedSearch: String - """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 + + """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 + + """ + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges + """ + requiredChecks: [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 + REQUIRED_CHECKS_ASC + REQUIRED_CHECKS_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 + + """ + Workflow slugs that must have a succeeded build for a proposal's head commit before it merges + """ + requiredChecks: [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 +} + +""" +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 - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where no related entity matches.""" + none: BuildFilter - """ - 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: BuildFilter +} - """The method to use when ordering `ResourceDeclaredCapacity`.""" - orderBy: [ResourceDeclaredCapacityOrderBy!] = [NATURAL] +""" +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 - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceDeclaredCapacityFilter - ): ResourceDeclaredCapacityConnection + """Filters to entities where no related entity matches.""" + none: ProposalFilter - """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 at least one related entity matches.""" + some: ProposalFilter +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +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 - """Only read the first `n` values of the set.""" - first: Int + """Filters to entities where no related entity matches.""" + none: RepositoryEventFilter - """Only read the last `n` values of the set.""" - last: Int + """Filters to entities where at least one related entity matches.""" + some: RepositoryEventFilter +} - """ - 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 `RepositoryWorkflow` object types. All fields are combined with a logical ‘and.’ +""" +input RepositoryToManyRepositoryWorkflowFilter { + """Filters to entities where every related entity matches.""" + every: RepositoryWorkflowFilter - """The method to use when ordering `ResourceDefinition`.""" - orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + """Filters to entities where no related entity matches.""" + none: RepositoryWorkflowFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceDefinitionFilter - ): ResourceDefinitionConnection + """Filters to entities where at least one related entity matches.""" + some: RepositoryWorkflowFilter +} - """Reads and enables pagination through a set of `ResourceEvent`.""" - resourceEvents( +"""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,337 +43818,352 @@ 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 - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int + """ + Whether a new build cancels a running build with the same concurrency key instead of queueing + """ + cancelInProgress: Boolean! - """Only read the last `n` values of the set.""" - last: Int + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """The method to use when ordering `ResourceInstallation`.""" - orderBy: [ResourceInstallationOrderBy!] = [PRIMARY_KEY_ASC] + """Event type that fires this workflow""" + eventType: String! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceInstallationFilter - ): ResourceInstallationConnection + """ + Reads a single `DatabaseFunctionGraph` that is related to this `RepositoryWorkflow`. + """ + graph: DatabaseFunctionGraph - """Reads and enables pagination through a set of `ResourceStatusCheck`.""" - resourceStatusChecks( - """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 `ResourceStatusCheck`.""" - orderBy: [ResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + """ + Reads a single `Repository` that is related to this `RepositoryWorkflow`. + """ + repository: Repository - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourceStatusCheckFilter - ): ResourceStatusCheckConnection + """Repository whose events this workflow listens to""" + repositoryId: UUID! - """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 `requiredSecrets` field.""" + requiredSecrets: StringListFilter - """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 + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """The method to use when ordering `ResourcesHealth`.""" - orderBy: [ResourcesHealthOrderBy!] = [NATURAL] + """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: ResourcesHealthFilter - ): ResourcesHealthConnection + """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 - """ - Reads and enables pagination through a set of `ResourcesResolvedRequirement`. - """ - resourcesResolvedRequirements( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Human-readable workflow name""" + name: String! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String - """Only read the first `n` values of the set.""" - first: Int + """Repository whose events this workflow listens to""" + repositoryId: UUID! - """Only read the last `n` values of the set.""" - last: Int + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String] - """ - 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 the repository""" + slug: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} - """The method to use when ordering `ResourcesResolvedRequirement`.""" - orderBy: [ResourcesResolvedRequirementOrderBy!] = [NATURAL] +"""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 +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ResourcesResolvedRequirementFilter - ): ResourcesResolvedRequirementConnection +""" +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 - """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Builds of this workflow sharing this key run one at a time (NULL = unlimited) + """ + concurrencyKey: String + createdAt: Datetime + createdBy: UUID + 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 + """Event type that fires this workflow""" + eventType: String - """Only read the last `n` values of the set.""" - last: Int + """Flow graph to run when this workflow fires""" + graphId: 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 + """Static inputs merged into the graph run alongside the event""" + inputs: JSON - """The method to use when ordering `WebhookEndpoint`.""" - orderBy: [WebhookEndpointOrderBy!] = [PRIMARY_KEY_ASC] + """Whether matching events fire this workflow""" + isEnabled: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: WebhookEndpointFilter - ): WebhookEndpointConnection + """Human-readable workflow name""" + name: String - """Reads and enables pagination through a set of `WebhookEvent`.""" - webhookEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Glob the event ref must match (NULL matches any ref)""" + refPattern: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Repository whose events this workflow listens to""" + repositoryId: UUID - """Only read the first `n` values of the set.""" - first: Int + """ + Secret names this workflow's builds may resolve, intersected with the build lane's realm + """ + requiredSecrets: [String] - """Only read the last `n` values of the set.""" - last: Int + """URL-safe identifier, unique within the repository""" + slug: String + updatedAt: Datetime + updatedBy: UUID + 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 +""" +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 - """The method to use when ordering `WebhookEvent`.""" - orderBy: [WebhookEventOrderBy!] = [PRIMARY_KEY_ASC] + """Filters to entities where no related entity matches.""" + none: BuildFilter - """ - 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: BuildFilter } """ @@ -23521,6 +44173,14 @@ type Resource { """Freeform metadata for tooling and operational notes""" annotations: JSON! + """Reads a single `Image` that is related to this `Resource`.""" + catalogImage: Image + + """ + Catalog image this resource runs (NULL when the image is named inline in spec) + """ + catalogImageId: UUID + """ CPU limit in millicores, derived from spec.resources.limits.cpu (NULL if unset/invalid) """ @@ -23532,6 +44192,7 @@ type Resource { cpuRequestMillicores: BigInt createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -23680,6 +44341,7 @@ type Resource { storageSizeBytes: BigInt updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `Resource` values.""" @@ -23833,8 +44495,17 @@ Resource definitions — templates for resource kinds declaring default spec and type ResourceDefinition { """Freeform metadata for tooling and operational notes""" annotations: JSON! + + """Reads a single `Image` that is related to this `ResourceDefinition`.""" + catalogImage: Image + + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -23925,6 +44596,7 @@ type ResourceDefinition { stepUpMinAge: Interval updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourceDefinition` values.""" @@ -23965,12 +44637,24 @@ input ResourceDefinitionFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `catalogImage` relation.""" + catalogImage: ImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: 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 @@ -24027,14 +44711,23 @@ 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`""" input ResourceDefinitionInput { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24091,16 +44784,21 @@ input ResourceDefinitionInput { stepUpMinAge: IntervalInput updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `ResourceDefinition`.""" enum ResourceDefinitionOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_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 DEFAULT_SPEC_ASC @@ -24136,6 +44834,8 @@ enum ResourceDefinitionOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -24144,8 +44844,14 @@ Represents an update to a `ResourceDefinition`. Fields that are set will be upda input ResourceDefinitionPatch { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Catalog image resources from this definition run (NULL when the image is named inline in default_spec) + """ + catalogImageId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -24202,6 +44908,7 @@ input ResourceDefinitionPatch { stepUpMinAge: IntervalInput updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -24415,6 +45122,15 @@ input ResourceFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `catalogImage` relation.""" + catalogImage: ImageFilter + + """A related `catalogImage` exists.""" + catalogImageExists: Boolean + + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + """Filter by the object’s `cpuLimitMillicores` field.""" cpuLimitMillicores: BigIntFilter @@ -24427,6 +45143,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 @@ -24525,14 +45244,23 @@ input ResourceFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """An input for mutations affecting `Resource`""" input ResourceInput { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Catalog image this resource runs (NULL when the image is named inline in spec) + """ + catalogImageId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24614,6 +45342,7 @@ input ResourceInput { statusObserved: JSON updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """ @@ -24626,6 +45355,7 @@ type ResourceInstallation { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24647,6 +45377,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 +45454,7 @@ type ResourceInstallation { storeId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourceInstallation` values.""" @@ -24741,6 +45501,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 +45528,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 +45557,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 +45570,7 @@ input ResourceInstallationInput { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -24833,6 +45606,7 @@ input ResourceInstallationInput { storeId: UUID updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `ResourceInstallation`.""" @@ -24843,6 +45617,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 +45644,8 @@ enum ResourceInstallationOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -24880,6 +45658,7 @@ input ResourceInstallationPatch { commitId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -24915,6 +45694,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 } """ @@ -25038,6 +45832,8 @@ type ResourceInstallationsUpgradePayload { enum ResourceOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_DESC CPU_LIMIT_MILLICORES_ASC CPU_LIMIT_MILLICORES_DESC CPU_REQUEST_MILLICORES_ASC @@ -25046,6 +45842,8 @@ 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 @@ -25101,6 +45899,8 @@ enum ResourceOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -25109,8 +45909,14 @@ Represents an update to a `Resource`. Fields that are set will be updated. input ResourcePatch { """Freeform metadata for tooling and operational notes""" annotations: JSON + + """ + Catalog image this resource runs (NULL when the image is named inline in spec) + """ + catalogImageId: UUID createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -25192,6 +45998,7 @@ input ResourcePatch { statusObserved: JSON updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } type ResourceRequirement { @@ -26009,10 +46816,12 @@ enum ResourceUtilizationOrderBy { type ResourcesHealth { annotations: JSON + catalogImageId: UUID cpuLimitMillicores: BigInt cpuRequestMillicores: BigInt createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID databaseId: UUID errorCount: Int id: UUID @@ -26040,6 +46849,7 @@ type ResourcesHealth { storageSizeBytes: BigInt updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """A connection to a list of `ResourcesHealth` values.""" @@ -26080,6 +46890,9 @@ input ResourcesHealthFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `catalogImageId` field.""" + catalogImageId: UUIDFilter + """Filter by the object’s `cpuLimitMillicores` field.""" cpuLimitMillicores: BigIntFilter @@ -26092,6 +46905,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 @@ -26172,12 +46988,17 @@ input ResourcesHealthFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter } """Methods to use when ordering `ResourcesHealth`.""" enum ResourcesHealthOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC + CATALOG_IMAGE_ID_ASC + CATALOG_IMAGE_ID_DESC CPU_LIMIT_MILLICORES_ASC CPU_LIMIT_MILLICORES_DESC CPU_REQUEST_MILLICORES_ASC @@ -26186,6 +47007,8 @@ 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 @@ -26241,6 +47064,8 @@ enum ResourcesHealthOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } type ResourcesRequirementsState { @@ -26808,6 +47633,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 +47898,87 @@ 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 `updateContentPreset` mutation.""" input UpdateContentPresetInput { """ @@ -26958,6 +48019,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 +49089,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 +49453,87 @@ 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 `updatePlatformFunctionApiBinding` mutation.""" input UpdatePlatformFunctionApiBindingInput { """ @@ -28292,6 +49872,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 +50117,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 +50278,462 @@ 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 `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 +51097,462 @@ 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 `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 +51940,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 +52023,7 @@ type WebhookEndpoint { active: Boolean! createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29343,6 +52067,7 @@ type WebhookEndpoint { signingSecretName: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID """Reads and enables pagination through a set of `WebhookEvent`.""" webhookEventsByEndpointId( @@ -29418,6 +52143,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 +52191,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 +52207,7 @@ input WebhookEndpointInput { active: Boolean createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! @@ -29511,6 +52243,7 @@ input WebhookEndpointInput { signingSecretName: String! updatedAt: Datetime updatedBy: UUID + updatedByPrincipal: UUID } """Methods to use when ordering `WebhookEndpoint`.""" @@ -29521,6 +52254,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 +52281,8 @@ enum WebhookEndpointOrderBy { UPDATED_AT_DESC UPDATED_BY_ASC UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC } """ @@ -29556,6 +52293,7 @@ input WebhookEndpointPatch { active: Boolean createdAt: Datetime createdBy: UUID + createdByPrincipal: UUID """Database that owns this resource (database-scoped isolation)""" databaseId: UUID @@ -29591,6 +52329,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..0bc80f9038 100644 --- a/sdk/constructive-sdk/schemas/config.graphql +++ b/sdk/constructive-sdk/schemas/config.graphql @@ -5,6 +5,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 +38,7 @@ type Config { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -81,6 +83,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 +122,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 +134,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 +167,7 @@ input ConfigInput { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -169,6 +179,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 +204,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 +217,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 +250,7 @@ input ConfigPatch { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -275,6 +291,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 +361,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 +485,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,6 +555,383 @@ type DeletePlatformConfigPayload { query: Query } +"""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). """ @@ -807,6 +1305,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. @@ -840,6 +1362,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 +1378,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 +1394,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 +1409,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. @@ -933,6 +1487,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 +1502,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 +1536,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 +1566,7 @@ type PlatformConfig { """ realm: String updatedAt: Datetime + updatedByPrincipal: UUID """Plaintext config value""" value: String @@ -1020,16 +1594,257 @@ type PlatformConfigEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformConfig` at the end of the edge.""" - node: PlatformConfig + """The `PlatformConfig` at the end of the edge.""" + node: PlatformConfig +} + +""" +A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformConfigFilter { + """Checks for all expressions in this list.""" + and: [PlatformConfigFilter!] + + """Filter by the object’s `annotations` field.""" + 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.""" + 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 + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformConfigFilter + + """Checks for any expressions in this list.""" + or: [PlatformConfigFilter!] + + """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 `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter + + """Filter by the object’s `value` field.""" + value: StringFilter +} + +"""An input for mutations affecting `PlatformConfig`""" +input PlatformConfigInput { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + createdByPrincipal: 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! + + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID! + + """ + 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 + updatedByPrincipal: UUID + + """Plaintext config value""" + value: String +} + +"""Methods to use when ordering `PlatformConfig`.""" +enum 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 + EXPIRES_AT_DESC + ID_ASC + ID_DESC + LABELS_ASC + LABELS_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_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 + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC + VALUE_ASC + VALUE_DESC +} + +""" +Represents an update to a `PlatformConfig`. Fields that are set will be updated. +""" +input PlatformConfigPatch { + """Freeform metadata for tooling and operational notes""" + annotations: JSON + createdAt: Datetime + createdByPrincipal: 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 + + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID + + """ + 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 + 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 `PlatformConfig` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformInternalConfig` object types. All fields are combined with a logical ‘and.’ """ -input PlatformConfigFilter { +input PlatformInternalConfigFilter { """Checks for all expressions in this list.""" - and: [PlatformConfigFilter!] + and: [PlatformInternalConfigFilter!] """Filter by the object’s `annotations` field.""" annotations: JSONFilter @@ -1052,14 +1867,11 @@ input PlatformConfigFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - """Negates the expression.""" - not: PlatformConfigFilter + not: PlatformInternalConfigFilter """Checks for any expressions in this list.""" - or: [PlatformConfigFilter!] + or: [PlatformInternalConfigFilter!] """Filter by the object’s `provider` field.""" provider: StringFilter @@ -1074,8 +1886,8 @@ input PlatformConfigFilter { value: StringFilter } -"""An input for mutations affecting `PlatformConfig`""" -input PlatformConfigInput { +"""An input for mutations affecting `PlatformInternalConfig`""" +input PlatformInternalConfigInput { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime @@ -1095,9 +1907,6 @@ input PlatformConfigInput { """Key name identifying the config entry""" name: String! - """FK to namespaces — logical grouping for config entries""" - namespaceId: UUID! - """ Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. """ @@ -1113,8 +1922,8 @@ input PlatformConfigInput { value: String } -"""Methods to use when ordering `PlatformConfig`.""" -enum PlatformConfigOrderBy { +"""Methods to use when ordering `PlatformInternalConfig`.""" +enum PlatformInternalConfigOrderBy { ANNOTATIONS_ASC ANNOTATIONS_DESC CREATED_AT_ASC @@ -1127,8 +1936,6 @@ enum PlatformConfigOrderBy { ID_DESC LABELS_ASC LABELS_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NAME_ASC NAME_DESC NATURAL @@ -1145,9 +1952,9 @@ enum PlatformConfigOrderBy { } """ -Represents an update to a `PlatformConfig`. Fields that are set will be updated. +Represents an update to a `PlatformInternalConfig`. Fields that are set will be updated. """ -input PlatformConfigPatch { +input PlatformInternalConfigPatch { """Freeform metadata for tooling and operational notes""" annotations: JSON createdAt: Datetime @@ -1167,9 +1974,6 @@ input PlatformConfigPatch { """Key name identifying the config entry""" name: String - """FK to namespaces — logical grouping for config entries""" - namespaceId: UUID - """ Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. """ @@ -1192,7 +1996,6 @@ type PlatformInternalSecret { id: UUID labels: JSON name: String - namespaceId: UUID realm: String retiredAt: Datetime rotatedAt: Datetime @@ -1252,9 +2055,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 +2086,6 @@ enum PlatformInternalSecretOrderBy { ID_DESC LABELS_ASC LABELS_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NAME_ASC NAME_DESC NATURAL @@ -1308,7 +2106,6 @@ input PlatformInternalSecretsDelInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - namespaceId: UUID realm: String secretName: String } @@ -1334,7 +2131,6 @@ input PlatformInternalSecretsRemoveArrayInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - namespaceId: UUID realm: String secretNames: [String] } @@ -1362,7 +2158,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 +2188,6 @@ input PlatformInternalSecretsSetInput { """ clientMutationId: String secretName: String - secretNamespaceId: UUID secretRealm: String secretValue: String } @@ -1713,6 +2507,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 +2594,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 +3060,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 +3140,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..d18a705f1b 100644 --- a/sdk/constructive-sdk/schemas/infra.graphql +++ b/sdk/constructive-sdk/schemas/infra.graphql @@ -40,6 +40,285 @@ input BooleanFilter { notIn: [Boolean!] } +""" +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store +""" +type ContentPreset { + """Whether this preset is selectable at provision time""" + active: Boolean! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime! + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID! + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `ContentPreset` values.""" +type ContentPresetConnection { + """ + A list of edges which contains the `ContentPreset` and cursor to aid in pagination. + """ + edges: [ContentPresetEdge]! + + """A list of `ContentPreset` objects.""" + nodes: [ContentPreset]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ContentPreset` you could get from the connection.""" + totalCount: Int! +} + +"""A `ContentPreset` edge in the connection.""" +type ContentPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ContentPreset` at the end of the edge.""" + node: ContentPreset +} + +""" +A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ +""" +input ContentPresetFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ContentPresetFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Negates the expression.""" + not: ContentPresetFilter + + """Checks for any expressions in this list.""" + or: [ContentPresetFilter!] + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `ContentPreset`""" +input ContentPresetInput { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `ContentPreset`.""" +enum ContentPresetOrderBy { + ACTIVE_ASC + ACTIVE_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DEFINITION_ASC + DEFINITION_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + LABEL_ASC + LABEL_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SLUG_ASC + SLUG_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `ContentPreset`. Fields that are set will be updated. +""" +input ContentPresetPatch { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""All input for the create `ContentPreset` mutation.""" +input CreateContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ContentPreset` to be created by this mutation.""" + contentPreset: ContentPresetInput! +} + +"""The output of our create `ContentPreset` mutation.""" +type CreateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was created by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `DbPreset` mutation.""" input CreateDbPresetInput { """ @@ -653,6 +932,41 @@ input DbPresetPatch { updatedAt: Datetime } +"""All input for the `deleteContentPreset` mutation.""" +input DeleteContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique preset identifier""" + id: UUID! +} + +"""The output of our delete `ContentPreset` mutation.""" +type DeleteContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was deleted by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteDbPreset` mutation.""" input DeleteDbPresetInput { """ @@ -1352,6 +1666,14 @@ type MetaUniqueConstraint { The root mutation type which contains root level fields which mutate data. """ type Mutation { + """Creates a single `ContentPreset`.""" + createContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateContentPresetInput! + ): CreateContentPresetPayload + """Creates a single `DbPreset`.""" createDbPreset( """ @@ -1424,6 +1746,14 @@ type Mutation { input: CreatePlatformNamespaceEventInput! ): CreatePlatformNamespaceEventPayload + """Deletes a single `ContentPreset` using a unique key.""" + deleteContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteContentPresetInput! + ): DeleteContentPresetPayload + """Deletes a single `DbPreset` using a unique key.""" deleteDbPreset( """ @@ -1507,12 +1837,30 @@ type Mutation { """ input: PlatformInfraInsertNodeAtPathInput! ): PlatformInfraInsertNodeAtPathPayload + platformInfraInsertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraInsertNodesAtPathsInput! + ): PlatformInfraInsertNodesAtPathsPayload + platformInfraSetAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetAndCommitInput! + ): PlatformInfraSetAndCommitPayload platformInfraSetDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformInfraSetDataAtPathInput! ): PlatformInfraSetDataAtPathPayload + platformInfraSetManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetManyAndCommitInput! + ): PlatformInfraSetManyAndCommitPayload """ Provision an S3 bucket for a logical bucket in the database. @@ -1527,6 +1875,14 @@ type Mutation { input: ProvisionBucketInput! ): ProvisionBucketPayload + """Updates a single `ContentPreset` using a unique key and a patch.""" + updateContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateContentPresetInput! + ): UpdateContentPresetPayload + """Updates a single `DbPreset` using a unique key and a patch.""" updateDbPreset( """ @@ -2311,6 +2667,36 @@ type PlatformInfraInsertNodeAtPathPayload { result: UUID } +"""All input for the `platformInfraInsertNodesAtPaths` mutation.""" +input PlatformInfraInsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `platformInfraInsertNodesAtPaths` mutation.""" +type PlatformInfraInsertNodesAtPathsPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: UUID +} + """ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children """ @@ -2587,6 +2973,44 @@ input PlatformInfraRefPatch { storeId: UUID } +"""All input for the `platformInfraSetAndCommit` mutation.""" +input PlatformInfraSetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetAndCommit` mutation.""" +type PlatformInfraSetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """All input for the `platformInfraSetDataAtPath` mutation.""" input PlatformInfraSetDataAtPathInput { """ @@ -2615,6 +3039,41 @@ type PlatformInfraSetDataAtPathPayload { result: UUID } +"""All input for the `platformInfraSetManyAndCommit` mutation.""" +input PlatformInfraSetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetManyAndCommit` mutation.""" +type PlatformInfraSetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """ Named stores — one per version-controlled tree (e.g. one graph, one definition set) """ @@ -3181,6 +3640,35 @@ type Query { """ _meta: MetaSchema + """Reads and enables pagination through a set of `ContentPreset`.""" + contentPresets( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetFilter + ): ContentPresetConnection + """Reads and enables pagination through a set of `DbPreset`.""" dbPresets( """Read all values in the set after (below) this cursor.""" @@ -3770,6 +4258,46 @@ input UUIDListFilter { overlaps: [UUID] } +"""All input for the `updateContentPreset` mutation.""" +input UpdateContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `ContentPreset` being updated. + """ + contentPresetPatch: ContentPresetPatch! + + """Unique preset identifier""" + id: UUID! +} + +"""The output of our update `ContentPreset` mutation.""" +type UpdateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was updated by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateDbPreset` mutation.""" input UpdateDbPresetInput { """ diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index ee97e6316d..b9eef167e9 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -4,11 +4,16 @@ type AgentModule { apiName: String databaseId: UUID! defaultCapabilities: [String] + defaultVisibility: String! entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String! hasAgents: Boolean! + hasAttachments: Boolean! hasPlans: Boolean! hasResources: Boolean! + hasRuns: Boolean! id: UUID! messageTableId: UUID! messageTableName: String! @@ -28,13 +33,16 @@ type AgentModule { 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 +93,36 @@ 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 `hasResources` field.""" hasResources: BooleanFilter + """Filter by the object’s `hasRuns` field.""" + hasRuns: BooleanFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -163,15 +186,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 +209,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 +224,16 @@ input AgentModuleInput { apiName: String databaseId: UUID! defaultCapabilities: [String] + defaultVisibility: String entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String hasAgents: Boolean + hasAttachments: Boolean hasPlans: Boolean hasResources: Boolean + hasRuns: Boolean id: UUID messageTableId: UUID messageTableName: String @@ -216,13 +253,16 @@ input AgentModuleInput { 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 +277,26 @@ 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_RESOURCES_ASC HAS_RESOURCES_DESC + HAS_RUNS_ASC + HAS_RUNS_DESC ID_ASC ID_DESC MESSAGE_TABLE_ID_ASC @@ -288,12 +338,14 @@ enum AgentModuleOrderBy { 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 +354,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 +369,16 @@ input AgentModulePatch { apiName: String databaseId: UUID defaultCapabilities: [String] + defaultVisibility: String entityField: String entityTableId: UUID + eventTableId: UUID + eventTableName: String hasAgents: Boolean + hasAttachments: Boolean hasPlans: Boolean hasResources: Boolean + hasRuns: Boolean id: UUID messageTableId: UUID messageTableName: String @@ -337,13 +398,16 @@ input AgentModulePatch { 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 { @@ -3000,12 +3064,16 @@ type CatalogModule { functionsTableId: UUID! functionsTableName: String! id: UUID! + imagesTableId: UUID! + imagesTableName: String! namespacesTableId: UUID! namespacesTableName: String! policies: JSON privateApiName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID! + redirectsTableName: String! resourceDefinitionsTableId: UUID! resourceDefinitionsTableName: String! resourceInstallationsTableId: UUID! @@ -3186,6 +3254,12 @@ 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 `namespacesTableId` field.""" namespacesTableId: UUIDFilter @@ -3210,6 +3284,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 @@ -3296,12 +3376,16 @@ input CatalogModuleInput { functionsTableId: UUID functionsTableName: String id: UUID + imagesTableId: UUID + imagesTableName: String namespacesTableId: UUID namespacesTableName: String policies: JSON privateApiName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resourceDefinitionsTableId: UUID resourceDefinitionsTableName: String resourceInstallationsTableId: UUID @@ -3358,6 +3442,10 @@ 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 NAMESPACES_TABLE_ID_ASC NAMESPACES_TABLE_ID_DESC NAMESPACES_TABLE_NAME_ASC @@ -3373,6 +3461,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 @@ -3432,12 +3524,16 @@ input CatalogModulePatch { functionsTableId: UUID functionsTableName: String id: UUID + imagesTableId: UUID + imagesTableName: 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 +3624,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 +3759,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 +3773,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 +3855,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 +3865,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 +3975,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,6 +4860,41 @@ type CreateCatalogModulePayload { query: Query } +"""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 `ClusterModule` to be created by this mutation.""" + clusterModule: ClusterModuleInput! +} + +"""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 `ClusterModule` that was created by this mutation.""" + clusterModule: ClusterModule + + """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. + """ + query: Query +} + """All input for the create `ComputeLogModule` mutation.""" input CreateComputeLogModuleInput { """ @@ -4657,41 +4930,6 @@ type CreateComputeLogModulePayload { query: Query } -"""All input for the create `ConfigSecretsUserModule` mutation.""" -input CreateConfigSecretsUserModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ConfigSecretsUserModule` to be created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModuleInput! -} - -"""The output of our create `ConfigSecretsUserModule` mutation.""" -type CreateConfigSecretsUserModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsUserModule` that was created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `ConnectedAccountsModule` mutation.""" input CreateConnectedAccountsModuleInput { """ @@ -5602,41 +5840,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 +5910,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 +6085,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 +6190,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 +6260,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 { """ @@ -6477,6 +6820,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 { """ @@ -9586,8 +9964,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 +9974,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 +9997,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 +10007,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 +10890,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 +10956,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 +11121,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 +11220,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 +11286,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 { """ @@ -11339,6 +11816,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 +15767,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! @@ -15400,12 +15881,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 @@ -15571,20 +16046,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 +16821,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 +17134,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 +17393,7 @@ type InferenceLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! usageSummaryTableId: UUID! @@ -16991,9 +17432,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 +17444,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 +17483,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 +17501,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 +17515,7 @@ input InferenceLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! usageSummaryTableId: UUID @@ -17087,16 +17524,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 +17555,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 +17571,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 +17585,7 @@ input InferenceLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String usageSummaryTableId: UUID @@ -17816,6 +18250,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 +19069,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 +19650,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 +20467,7 @@ type MerkleStoreModule { where: DbPresetModuleFilter ): DbPresetModuleConnection! entityField: String + entityTableId: UUID functionPrefix: String """Reads and enables pagination through a set of `GraphModule`.""" @@ -19402,6 +20499,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 +20663,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 +20678,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 +20741,7 @@ input MerkleStoreModuleInput { createdAt: Datetime databaseId: UUID! entityField: String + entityTableId: UUID functionPrefix: String id: UUID objectTableId: UUID @@ -19634,6 +20770,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 +20811,7 @@ input MerkleStoreModulePatch { createdAt: Datetime databaseId: UUID entityField: String + entityTableId: UUID functionPrefix: String id: UUID objectTableId: UUID @@ -19729,6 +20868,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.’ """ @@ -20069,7 +21222,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 +21321,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 +21545,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 +21561,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 +21601,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 +21625,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 +21641,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( """ @@ -20592,6 +21769,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 +22017,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 +22241,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 +22257,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 +22297,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 +22321,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 +22337,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( """ @@ -21256,6 +22465,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( """ @@ -21513,23 +22730,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 +22972,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 +22990,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 +23032,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 +23060,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 +23076,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. """ @@ -21967,6 +23208,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( """ @@ -24342,8 +25591,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 +25611,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 +25640,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 +26415,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 +26435,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 +26466,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 +26495,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 +26622,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 +26709,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 +26767,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.""" @@ -25897,6 +27231,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.""" @@ -27676,41 +29039,378 @@ 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! + 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 `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 + 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 + 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 + schemaId: UUID + scope: String + search: JSON + workflowsTableId: UUID + workflowsTableName: String +} + +type ResourceModule { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + entityField: String + entityTableId: UUID id: UUID! installationStoreName: String! @@ -27732,6 +29432,8 @@ type ResourceModule { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID! + registryBindingsTableName: String! requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String! @@ -27802,12 +29504,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 +29555,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 @@ -27938,6 +29640,8 @@ input ResourceModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID + registryBindingsTableName: String requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String @@ -27997,6 +29701,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 @@ -28059,6 +29767,8 @@ input ResourceModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + registryBindingsTableId: UUID + registryBindingsTableName: String requirementsStateViewName: String resolvedRequirementsViewName: String resourceBillingRollupFunction: String @@ -28081,20 +29791,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 +29981,8 @@ type RouteModule { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID! + redirectsTableName: String! resolverFunctionName: String routeBindingsTableId: UUID! routeBindingsTableName: String! @@ -28402,6 +30100,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 @@ -28445,6 +30149,8 @@ input RouteModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resolverFunctionName: String routeBindingsTableId: UUID routeBindingsTableName: String @@ -28497,6 +30203,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 @@ -28536,6 +30246,8 @@ input RouteModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + redirectsTableId: UUID + redirectsTableName: String resolverFunctionName: String routeBindingsTableId: UUID routeBindingsTableName: String @@ -28648,7 +30360,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 +30379,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 +30394,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 +30472,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 +30487,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 +30524,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 +30539,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 +30580,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 +30623,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 +30638,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. """ @@ -29618,11 +31370,9 @@ input SiteSurfaceModuleToManyPagesModuleFilter { } type StorageLogModule { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID! interval: String! prefix: String! @@ -29632,6 +31382,7 @@ type StorageLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! storageLogTableId: UUID! @@ -29672,9 +31423,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 +31435,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 +31468,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 +31492,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 +31504,7 @@ input StorageLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! storageLogTableId: UUID @@ -29768,16 +31515,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 +31542,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 +31562,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 +31574,7 @@ input StorageLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String storageLogTableId: UUID @@ -29892,35 +31636,6 @@ 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! maxBulkFiles: Int maxBulkTotalSize: BigInt @@ -30049,12 +31764,6 @@ 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 @@ -30311,20 +32020,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 +32216,9 @@ input StringListFilter { } type TransferLogModule { - actorFkTableId: UUID apiName: String databaseId: UUID! entityField: String - entityFkTableId: UUID id: UUID! interval: String! prefix: String! @@ -30535,6 +32228,7 @@ type TransferLogModule { privateSchemaName: String publicSchemaName: String retention: String! + rollupFunctionName: String! schemaId: UUID! scope: String! transferLogTableId: UUID! @@ -30575,9 +32269,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 +32281,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 +32314,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 +32338,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 +32350,7 @@ input TransferLogModuleInput { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String! transferLogTableId: UUID @@ -30671,16 +32361,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 +32388,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 +32408,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 +32420,7 @@ input TransferLogModulePatch { privateSchemaName: String publicSchemaName: String retention: String + rollupFunctionName: String schemaId: UUID scope: String transferLogTableId: UUID @@ -31238,8 +32925,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 +32934,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 +32963,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 +32972,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 +33991,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 +34067,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 +34257,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 +34371,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 +34447,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 { """ @@ -33256,6 +35057,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 { """ diff --git a/sdk/constructive-sdk/schemas/remote.graphql b/sdk/constructive-sdk/schemas/remote.graphql new file mode 100644 index 0000000000..12e5b924b9 --- /dev/null +++ b/sdk/constructive-sdk/schemas/remote.graphql @@ -0,0 +1,2385 @@ +""" +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 (NULL until enrollment completes)""" + 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 (NULL until enrollment completes)""" + 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 (NULL until enrollment completes)""" + 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 +} + +"""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 `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 + + """ + 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 + + """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 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! +} + +"""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..298631280a --- /dev/null +++ b/sdk/constructive-sdk/schemas/storage.graphql @@ -0,0 +1,3482 @@ +""" +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 { + """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 `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 + + """ + 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 + + """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. + """ + 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 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! +} + +"""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 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..541f8e75f0 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,4497 @@ 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 - - """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 +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """Exponential decay factor per day""" + boostRecencyDecay: Float - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} + """Field used for recency decay""" + boostRecencyField: 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 + """Whether recency boosting is enabled""" + boostRecent: Boolean! - """The `Ledger` to be created by this mutation.""" - ledger: LedgerInput! + """JSON-encoded per-adapter score weights""" + weights: 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. - """ - clientMutationId: String - - """The `Ledger` that was created 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 +"""Storage metadata for a table""" +type MetaStorage { + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether this table is a storage files table""" + isFilesTable: 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 +"""Information about a database table""" +type MetaTable { + constraints: MetaConstraints! + fields: [MetaField!]! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """The `MeterCredit` to be created by this mutation.""" - meterCredit: MeterCreditInput! -} + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + indexes: [MetaIndex!]! + inflection: MetaInflection! -"""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 + """Final GraphQL output type name""" + name: String! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + query: MetaQuery! - """The `MeterCredit` that was created by this mutation.""" - meterCredit: MeterCredit + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime + relations: MetaRelations! + schemaName: 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 + """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 `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 + """Storage metadata (null if not a storage table)""" + storage: MetaStorage - """The `MeterDefault` to be created by this mutation.""" - meterDefault: MeterDefaultInput! + """PostgreSQL table name""" + tableName: String! + uniqueConstraints: [MetaUniqueConstraint!]! } -"""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 - - """The `MeterDefault` that was created 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 +"""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 `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 - - """The `Meter` to be created by this mutation.""" - meter: MeterInput! +"""Information about a unique constraint""" +type MetaUniqueConstraint { + fields: [MetaField!]! + name: String! } -"""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 +""" +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 `Meter` that was created by this mutation.""" - meter: Meter + """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 `Meter`. May be used by Relay 1.""" - meterEdge( - """The method to use when ordering `Meter`.""" - orderBy: [MeterOrderBy!]! = [PRIMARY_KEY_ASC] - ): MeterEdge + """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 `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 + """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 - """The `MeterSource` to be created by this mutation.""" - meterSource: MeterSourceInput! -} + """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 -"""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 + """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 - """The `MeterSource` that was created by this mutation.""" - meterSource: MeterSource + """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 - """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 + """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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""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! -} - -"""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 `OrgLimitAggregate` that was created 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 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 + """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 - """ - 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 + """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 - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput + """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 - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime -} + """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 -""" -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! + """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 - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """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 - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """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 - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! + """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 - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! -} + """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 -"""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]! + """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 - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! + """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 - """Information to aid in pagination.""" - pageInfo: PageInfo! + """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 - """ - The count of *all* `OrgLimitWarning` you could get from the connection. - """ - totalCount: Int! -} + """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 -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """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 - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning -} + """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 -""" -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!] + """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 - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """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 - """Filter by the object’s `id` field.""" - id: UUIDFilter + """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 - """Filter by the object’s `name` field.""" - name: StringFilter + """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 - """Negates the expression.""" - not: OrgLimitWarningFilter + """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 - """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] + """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 - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """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 - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter + """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 - """Filter by the object’s `warningType` field.""" - warningType: StringFilter -} + """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 -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID - id: UUID + """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 - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """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 - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """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 """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + 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. """ - thresholdValue: BigInt! + 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 - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: 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 -"""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 -} + """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 -""" -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 + """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 - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """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 - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String + """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 """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. """ - thresholdValue: BigInt - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String -} - -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor - - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! - - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! - - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor -} - -"""Defines plan tiers with named limit configurations""" -type Plan { - """Human-readable description of the plan tier""" - description: String - id: UUID! - - """Whether this plan can currently be applied to entities""" - isActive: Boolean - - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String! - - """Reads and enables pagination through a set of `PlanCap`.""" - planCaps( - """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 + 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( """ - 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: UpdateAppLimitCreditRedemptionInput! + ): UpdateAppLimitCreditRedemptionPayload + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( """ - 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: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ - 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: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + """Updates a single `AppLimitWarning` using a unique key and a patch.""" + updateAppLimitWarning( """ - 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: UpdateAppLimitWarningInput! + ): UpdateAppLimitWarningPayload + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( """ - 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: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( """ - 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: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + """Updates a single `OrgLimitCap` using a unique key and a patch.""" + updateOrgLimitCap( """ - 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: UpdateOrgLimitCapInput! + ): UpdateOrgLimitCapPayload + """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" + updateOrgLimitCapsDefault( """ - 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 - - """Only read the first `n` values of the set.""" - first: Int + 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 - """Reads a single `Plan` that is related to this `PlanCap`.""" - plan: Plan + """Name identifier of the limit being tracked""" + name: String - """Reference to the plan this cap setting belongs to""" - planId: UUID! -} + """Current usage count for this actor and limit""" + num: BigInt + + """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 `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """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 - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String! -} + """Name identifier of the aggregate limit being tracked""" + name: String -""" -Maps each plan to specific limit names and their maximum allowed values -""" -type PlanLimit { - id: UUID! + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """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 - id: UUID! - - """Name of the limit being overridden""" - limitName: String! +""" +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +""" +type OrgLimitCapsDefault { + id: UUID! - """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]! + + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! - """Whether this plan can currently be applied to entities""" - isActive: Boolean + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Unique name identifier of the plan (e.g. free, pro, enterprise)""" - name: String + """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 - """ISO 4217 currency code (lowercase)""" - currency: String! + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! - """Discount percentage off the base price (0-100); NULL means no discount""" - discountPercent: BigFloat - id: UUID! + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! - """Whether this pricing option is currently available""" - isActive: Boolean + """ + Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. + """ + defaultLimit: OrgLimitDefault - """Reads a single `Plan` that is related to this `PlanPricing`.""" - plan: Plan + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """Reference to the plan this pricing belongs to""" - planId: UUID! + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID - """ - Price in smallest currency unit (e.g. cents); negative means contact-sales - """ - price: BigInt! + """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 `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 - """ISO 4217 currency code (lowercase)""" - currency: String + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! - """Discount percentage off the base price (0-100); NULL means no discount""" - discountPercent: BigFloat - id: UUID + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String - """Whether this pricing option is currently available""" - isActive: Boolean + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """Reference to the plan this pricing belongs to""" - planId: UUID! + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID - """ - Price in smallest currency unit (e.g. cents); negative means contact-sales - """ - price: BigInt! + """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 `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 - """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 } """ -Assigns a plan to an entity with subscription lifecycle (start, end, active state) +Default maximum values for each named limit, applied when no per-actor override exists """ -type PlanSubscription { - """When the subscription expires (NULL = no expiration)""" - endsAt: Datetime +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 - """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! + organizationId: UUID - """Whether provisioning succeeded""" - success: Boolean! + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The root query type which gives access points into the data universe.""" -type Query { +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. """ - _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 + edges: [OrgLimitEventEdge]! - """The method to use when ordering `AppEventAggregate`.""" - orderBy: [AppEventAggregateOrderBy!] = [PRIMARY_KEY_ASC] + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppEventAggregateFilter - ): AppEventAggregateConnection + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Reads and enables pagination through a set of `AppEventType`.""" - appEventTypes( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the first `n` values of the set.""" - first: Int + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} - """Only read the last `n` values of the set.""" - last: 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 - """ - 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: [OrgLimitEventFilter!] - """The method to use when ordering `AppEventType`.""" - orderBy: [AppEventTypeOrderBy!] = [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: AppEventTypeFilter - ): AppEventTypeConnection + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """Reads and enables pagination through a set of `AppEvent`.""" - appEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """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 `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """The method to use when ordering `AppEvent`.""" - orderBy: [AppEventOrderBy!] = [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: AppEventFilter - ): AppEventConnection + """Negates the expression.""" + not: OrgLimitEventFilter - """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 `numAfter` field.""" + numAfter: BigIntFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Only read the first `n` values of the set.""" - first: Int + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `organizationId` field.""" + organizationId: 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 `reason` field.""" + reason: StringFilter +} - """The method to use when ordering `AppLevelGrant`.""" - orderBy: [AppLevelGrantOrderBy!] = [PRIMARY_KEY_ASC] +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLevelGrantFilter - ): AppLevelGrantConnection + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Reads and enables pagination through a set of `AppLevelRequirement`.""" - appLevelRequirements( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String - """Only read the first `n` values of the set.""" - first: Int + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Only read the last `n` values of the set.""" - last: Int + """Unique identifier for each limit event""" + 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 + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + """Limit name this event applies to""" + name: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLevelRequirementFilter - ): AppLevelRequirementConnection + """Usage count after this event""" + numAfter: BigInt - """Reads and enables pagination through a set of `AppLevel`.""" - appLevels( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Usage count before this event""" + numBefore: BigInt - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID - """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 +"""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 +} - """ - 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 `OrgLimitEvent`. Fields that are set will be updated. +""" +input OrgLimitEventPatch { + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + createdAt: Datetime - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!] = [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: AppLevelFilter - ): AppLevelConnection + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( - """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 `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [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: AppLimitCapFilter - ): AppLimitCapConnection + """Usage count before this event""" + numBefore: BigInt - """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" - appLimitCapsDefaults( - """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 +""" +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 last `n` values of the set.""" - last: Int + """Checks for all expressions in this list.""" + and: [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 `entityId` field.""" + entityId: UUIDFilter - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `entityType` field.""" + entityType: StringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCapsDefaultFilter - ): AppLimitCapsDefaultConnection + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `max` field.""" + max: 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 + """Negates the expression.""" + not: OrgLimitFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `num` field.""" + num: BigIntFilter - """ - 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: [OrgLimitFilter!] - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter - ): AppLimitCreditCodeItemConnection + """Filter by the object’s `periodCredits` field.""" + periodCredits: 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 `planMax` field.""" + planMax: BigIntFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Only read the last `n` values of the set.""" - last: Int + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter - """ - 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 `windowStart` field.""" + windowStart: DatetimeFilter +} - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + """User whose usage is being tracked against this limit""" + actorId: UUID! + entityId: UUID! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeFilter - ): AppLimitCreditCodeConnection + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + id: UUID """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - appLimitCreditRedemptions( - """Read all values in the set after (below) this cursor.""" - after: Cursor + max: BigInt - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Name identifier of the limit being tracked""" + name: String - """Only read the first `n` values of the set.""" - first: Int + """Current usage count for this actor and limit""" + num: BigInt - """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 + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] + """ + 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 in determining which values should be returned by the collection. - """ - where: AppLimitCreditRedemptionFilter - ): AppLimitCreditRedemptionConnection + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + 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 - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput - """Only read the first `n` values of the set.""" - first: Int + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime +} - """Only read the last `n` values of the set.""" - last: 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 +} - """ - 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 `OrgLimit`. Fields that are set will be updated. +""" +input OrgLimitPatch { + """User whose usage is being tracked against this limit""" + actorId: UUID + entityId: UUID - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [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: AppLimitCreditFilter - ): AppLimitCreditConnection + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( - """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 `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [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: AppLimitDefaultFilter - ): AppLimitDefaultConnection + """ + 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 `AppLimitEvent`.""" - appLimitEvents( - """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 +""" +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! - """Only read the last `n` values of the set.""" - last: Int + """Limit name this warning applies to (must match a default_limits entry)""" + 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 + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitEventFilter - ): AppLimitEventConnection + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! +} - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""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]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """A list of `OrgLimitWarning` objects.""" + nodes: [OrgLimitWarning]! - """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* `OrgLimitWarning` 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 `OrgLimitWarning` edge in the connection.""" +type OrgLimitWarningEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + """The `OrgLimitWarning` at the end of the edge.""" + node: OrgLimitWarning +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitWarningFilter - ): AppLimitWarningConnection +""" +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!] - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `name` field.""" + name: StringFilter - """Only read the last `n` values of the set.""" - last: Int + """Negates the expression.""" + not: OrgLimitWarningFilter - """ - 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: [OrgLimitWarningFilter!] - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitFilter - ): AppLimitConnection + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter - """Reads and enables pagination through a set of `BillingUsageSummary`.""" - billingUsageSummaries( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `warningType` field.""" + warningType: StringFilter +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID + id: UUID - """Only read the first `n` values of the set.""" - first: Int + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """Only read the last `n` values of the set.""" - last: Int + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """The method to use when ordering `BillingUsageSummary`.""" - orderBy: [BillingUsageSummaryOrderBy!] = [PRIMARY_KEY_ASC] + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: 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 +"""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 `AppLevelRequirement`.""" - eventsRequired( - """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 - """Only read the first `n` values of the set.""" - first: Int - level: String + """Limit name this warning applies to (must match a default_limits entry)""" + 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 - roleId: UUID - ): AppLevelRequirementConnection + """ + 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 `Ledger`.""" - ledgers( - """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 - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String +} - """Only read the first `n` values of the set.""" - first: Int +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor - """Only read the last `n` values of the set.""" - last: Int + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} - """The method to use when ordering `Ledger`.""" - orderBy: [LedgerOrderBy!] = [PRIMARY_KEY_ASC] +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: LedgerFilter - ): LedgerConnection + """ + 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 `MeterCredit`.""" - meterCredits( - """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 `MeterCredit`.""" - orderBy: [MeterCreditOrderBy!] = [PRIMARY_KEY_ASC] + """Whether provisioning succeeded""" + success: Boolean! +} - """ - 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 +5639,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 +5668,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 +5699,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 +5728,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 +5759,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 +5788,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 +5817,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 +5846,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 +5875,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 +5904,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 +5935,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 +5964,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 +5993,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 +6022,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 +6051,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 +6080,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 +6109,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 +6132,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 +6198,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 +6248,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 +6382,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 +6675,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 +7115,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..6f21a05111 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:** 1 - **Custom mutations:** 3 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index c337efef49..5380fbc13b 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. @@ -1317,6 +936,7 @@ CRUD operations for OrgMembershipSetting records. | `createChildCascadeOwners` | Boolean | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `deleteMemberCascadeChildren` | Boolean | Yes | | `entityId` | UUID | Yes | | `id` | UUID | No | @@ -1325,18 +945,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, 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, 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: '', 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,312 +1001,8 @@ 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` - -orgCapabilitiesGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf 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..0018f066fb 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,18 +612,7 @@ 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 { @@ -754,6 +626,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 +640,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 +655,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 +669,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 +710,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 +731,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 +743,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 +756,6 @@ export type AppCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: AppCapabilitySelect; - }; }; export type AppClaimedInviteSelect = { createdAt?: boolean; @@ -1136,15 +790,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 +809,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 +830,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 +847,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 +862,6 @@ export type OrgCapabilityDefaultGrantSelect = { id?: boolean; isGrant?: boolean; updatedAt?: boolean; - capability?: { - select: OrgCapabilitySelect; - }; }; export type OrgChartEdgeSelect = { childId?: boolean; @@ -1447,9 +930,6 @@ export type OrgInviteSelect = { receiverId?: boolean; senderId?: boolean; updatedAt?: boolean; - profile?: { - select: OrgProfileSelect; - }; }; export type OrgMemberSelect = { actorId?: boolean; @@ -1478,6 +958,7 @@ export type OrgMembershipSelect = { capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; entityId?: boolean; granted?: boolean; id?: boolean; @@ -1492,47 +973,21 @@ 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; @@ -1541,6 +996,7 @@ export type OrgMembershipSettingSelect = { createChildCascadeOwners?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; deleteMemberCascadeChildren?: boolean; entityId?: boolean; id?: boolean; @@ -1549,6 +1005,7 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type OrgOwnerGrantSelect = { actorId?: boolean; @@ -1559,108 +1016,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 +1037,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 +1053,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 +1142,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 +1154,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 +1184,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 +1200,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 +1216,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 +1239,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 +1281,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 +1299,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 +1462,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 +1530,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 +1562,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 +1578,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,30 +1594,8 @@ 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. */ @@ -2583,6 +1612,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 +1634,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 +1659,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 +1676,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 +1688,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 +1781,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 +1809,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 +1831,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 +1850,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 +1884,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 +1898,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 +2099,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 +2131,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,23 +2153,9 @@ 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' @@ -3448,6 +2163,8 @@ export type OrgMembershipSettingOrderBy = | '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 +2189,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 +2210,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 +2233,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 +2251,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 +2365,7 @@ export interface CreateAppMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; granted?: string; isActive?: boolean; isAdmin?: boolean; @@ -3796,12 +2376,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 +2394,7 @@ export interface AppMembershipPatch { isVerified?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -3826,16 +2409,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 +2433,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 +2455,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 +2505,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 +2525,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 +2802,7 @@ export interface CreateOrgMembershipInput { actorId: string; capabilities?: string; createdBy?: string; + createdByPrincipal?: string; entityId: string; granted?: string; isActive?: boolean; @@ -4417,12 +2815,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 +2835,7 @@ export interface OrgMembershipPatch { isReadOnly?: boolean | null; profileId?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateOrgMembershipInput { clientMutationId?: string; @@ -4449,16 +2850,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,28 +2874,6 @@ 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: { @@ -4499,12 +2882,14 @@ export interface CreateOrgMembershipSettingInput { 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 { @@ -4513,12 +2898,14 @@ export interface OrgMembershipSettingPatch { 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 +2940,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 +2960,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 +3037,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 +3072,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 +3083,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 +3091,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 +3165,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 +3186,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 +3200,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 +3213,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 +3241,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 +3251,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 */ @@ -5503,1134 +3401,91 @@ export interface OrgMembershipInput { actorId: string; /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ capabilities?: string; - createdAt?: string; - createdBy?: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Bitmask of 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; + 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) */ + 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; + /** 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; @@ -6714,51 +3569,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 +3614,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 +3884,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 +3914,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 +4019,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 +4064,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 +4514,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 +4604,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 +4628,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 +4700,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 +4712,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 +4748,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 +4868,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 +4892,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/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index cb4b15d057..0e78db2c2c 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -6,50 +6,7 @@ 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 OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; @@ -58,262 +15,6 @@ 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, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgCapabilitiesGetByMask: OrgCapabilityConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgCapabilitiesGetByMask', - fieldName: 'orgCapabilitiesGetByMask', - ...buildCustomDocument( - 'query', - 'OrgCapabilitiesGetByMask', - 'orgCapabilitiesGetByMask', - 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]', - }, - ], - 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', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { 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..adb10e51fc 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,6 +441,534 @@ 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` 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..e2ce4c5687 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; - ownerId?: string; - parentId?: string; - personaId?: string; - status?: string; - systemPrompt?: 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; + parentThreadId?: string; + promptTemplateId?: string; + status?: string; + systemPrompt?: string; + tags?: string[]; + title?: string; + visibility?: string; + }; +} +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; +} +/** 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 `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; +} +/** 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 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; +/** 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 UpdateAgentInput { - clientMutationId?: string; - id: string; - agentPatch: AgentPatch; +/** 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 DeleteAgentInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; +/** 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 DeleteAgentMessageInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateAgentPersonaInput { - clientMutationId?: string; - id: string; - agentPersonaPatch: AgentPersonaPatch; +/** 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 DeleteAgentPersonaInput { - 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 CreateAgentPlanInput { - clientMutationId?: string; - agentPlan: { - databaseId: string; - description?: string; - ownerId?: string; - status?: string; - threadId: string; - title: 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 AgentPlanPatch { - databaseId?: string | null; - description?: string | null; - ownerId?: string | null; - status?: string | null; - threadId?: string | null; - title?: string | null; +/** 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; } -export interface UpdateAgentPlanInput { - clientMutationId?: string; - id: string; - agentPlanPatch: AgentPlanPatch; +/** 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; } -export interface DeleteAgentPlanInput { - clientMutationId?: string; - id: 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; +} +/** 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; +} +/** 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 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 `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 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 `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 UpdateAgentPromptInput { - clientMutationId?: string; - id: string; - agentPromptPatch: AgentPromptPatch; +/** 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 DeleteAgentPromptInput { - clientMutationId?: string; - id: string; +/** 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 CreateAgentResourceChunkInput { - clientMutationId?: string; - agentResourceChunk: { - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - embeddingText?: string; - metadata?: Record; - }; +/** 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 AgentResourceChunkPatch { - agentResourceId?: string | null; - body?: string | null; - chunkIndex?: number | null; - embedding?: number[] | null; - embeddingText?: string | null; - metadata?: Record | null; +/** 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 UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - agentResourceChunkPatch: AgentResourceChunkPatch; +/** 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 DeleteAgentResourceChunkInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentResourceInput { - clientMutationId?: string; - id: string; - agentResourcePatch: AgentResourcePatch; +/** 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 DeleteAgentResourceInput { - clientMutationId?: string; - id: string; +/** 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 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 `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 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 `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 UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; +/** 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; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: 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; } -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 `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 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 `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 UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; +/** 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; } -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: 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; } -// ============ 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 `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 `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 `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 `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 `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 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 `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 `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 `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 `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 `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; } -/** 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 `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; } -/** 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 `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; +/** 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 `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 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 `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 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[]; } -/** 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 `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; } -/** 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 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?: AgentMessageFilter[]; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; + 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 `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?: AgentMessageFilter; + not?: AgentPersonaFilter; /** 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?: 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; +} +/** 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 `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; +/** 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?: AgentThreadFilter[]; + 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 `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; + /** 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?: AgentThreadFilter; + not?: AgentResourceFilter; /** 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; + 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?: 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 `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 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?: AgentFilter[]; - /** Filter by the object’s `childAgents` relation. */ - childAgents?: AgentToManyAgentFilter; - /** `childAgents` exist. */ - childAgentsExist?: boolean; + 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 `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isEphemeral` field. */ - isEphemeral?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AgentFilter; + not?: PlatformAgentPersonaFilter; /** 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; + 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; } -/** 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 `PlatformAgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformAgentPromptFilter { /** 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?: PlatformAgentPromptFilter[]; + /** 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 `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; - /** 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; -} -/** 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 `embedding` field. */ - embedding?: VectorFilter; /** 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,992 @@ 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 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 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; +} +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 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 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 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 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; } -/** 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 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; +} +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 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 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 `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 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 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 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; } -/** 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 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; } -/** 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 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 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 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; } -// ============ 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 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; } -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; +export type CreateAgentThreadPayloadSelect = { + 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 UpdateAgentThreadPayload { + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type CreateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type UpdateAgentThreadPayloadSelect = { + 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 DeleteAgentThreadPayload { + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; clientMutationId?: string | null; } -export type UpdateAgentPayloadSelect = { - agent?: { - select: AgentSelect; +export type DeleteAgentThreadPayloadSelect = { + agentThread?: { + select: AgentThreadSelect; }; - agentEdge?: { - select: AgentEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; clientMutationId?: boolean; }; -export interface DeleteAgentPayload { - /** The `Agent` that was deleted 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 DeleteAgentPayloadSelect = { - 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 DeletePlatformAgentPayload { + clientMutationId?: string | null; + /** The `PlatformAgent` that was deleted by this mutation. */ + platformAgent?: PlatformAgent | null; + platformAgentEdge?: PlatformAgentEdge | null; +} +export type DeletePlatformAgentPayloadSelect = { clientMutationId?: boolean; + platformAgent?: { + select: PlatformAgentSelect; + }; + platformAgentEdge?: { + select: PlatformAgentEdgeSelect; + }; }; -export interface CreateAgentMessagePayload { - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; +export interface CreatePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was created by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type CreateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type CreatePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface UpdatePlatformAgentEventPayload { + clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was updated by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; +} +export type UpdatePlatformAgentEventPayloadSelect = { 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 DeletePlatformAgentEventPayload { clientMutationId?: string | null; + /** The `PlatformAgentEvent` that was deleted by this mutation. */ + platformAgentEvent?: PlatformAgentEvent | null; + platformAgentEventEdge?: PlatformAgentEventEdge | null; } -export type UpdateAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type DeletePlatformAgentEventPayloadSelect = { + clientMutationId?: boolean; + platformAgentEvent?: { + select: PlatformAgentEventSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentEventEdge?: { + select: PlatformAgentEventEdgeSelect; }; +}; +export interface CreatePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was created by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type CreatePlatformAgentMessagePayloadSelect = { 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 UpdatePlatformAgentMessagePayload { clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was updated by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; } -export type DeleteAgentMessagePayloadSelect = { - agentMessage?: { - select: AgentMessageSelect; +export type UpdatePlatformAgentMessagePayloadSelect = { + clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; }; +}; +export interface DeletePlatformAgentMessagePayload { + clientMutationId?: string | null; + /** The `PlatformAgentMessage` that was deleted by this mutation. */ + platformAgentMessage?: PlatformAgentMessage | null; + platformAgentMessageEdge?: PlatformAgentMessageEdge | null; +} +export type DeletePlatformAgentMessagePayloadSelect = { clientMutationId?: boolean; + platformAgentMessage?: { + select: PlatformAgentMessageSelect; + }; + platformAgentMessageEdge?: { + select: PlatformAgentMessageEdgeSelect; + }; }; -export interface CreateAgentPersonaPayload { - /** The `AgentPersona` that was created by this mutation. */ - agentPersona?: AgentPersona | null; - agentPersonaEdge?: AgentPersonaEdge | null; +export interface CreatePlatformAgentPersonaPayload { clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was created by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; } -export type CreateAgentPersonaPayloadSelect = { - agentPersona?: { - select: AgentPersonaSelect; +export type CreatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; - agentPersonaEdge?: { - select: AgentPersonaEdgeSelect; + platformAgentPersonaEdge?: { + select: PlatformAgentPersonaEdgeSelect; + }; +}; +export interface UpdatePlatformAgentPersonaPayload { + clientMutationId?: string | null; + /** The `PlatformAgentPersona` that was updated by this mutation. */ + platformAgentPersona?: PlatformAgentPersona | null; + platformAgentPersonaEdge?: PlatformAgentPersonaEdge | null; +} +export type UpdatePlatformAgentPersonaPayloadSelect = { + clientMutationId?: boolean; + platformAgentPersona?: { + select: PlatformAgentPersonaSelect; }; + 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 +7384,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/api/README.md b/sdk/constructive-sdk/src/api/README.md index 0eb8caf4b1..f634314a89 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 86 -- **Custom queries:** 6 +- **Custom queries:** 5 - **Custom mutations:** 11 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 8d92fe2572..8b28bf6260 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 | @@ -51,7 +50,6 @@ const db = createClient({ | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | | `hostnameBinding` | findMany, findOne, create, update, delete | -| `httpRoute` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | @@ -80,6 +78,7 @@ const db = createClient({ | `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 | @@ -94,6 +93,7 @@ const db = createClient({ | `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 | @@ -229,81 +229,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` @@ -592,6 +556,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 +568,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 +593,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 +605,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 +613,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(); @@ -1315,47 +1282,6 @@ const updated = await db.hostnameBinding.update({ where: { id: '' }, data: const deleted = await db.hostnameBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.httpRoute` - -CRUD operations for HttpRoute 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 | - -**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(); - -// 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(); - -// Create -const created = await db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.httpRoute.delete({ where: { id: '' } }).execute(); -``` - ### `db.index` CRUD operations for Index records. @@ -1413,6 +1339,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 +1347,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 +1355,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(); @@ -1714,6 +1642,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 +1653,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 +1661,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(); @@ -1955,12 +1885,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 +1900,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(); @@ -2069,6 +2001,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 +2011,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(); @@ -2329,6 +2263,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 +2286,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 +2382,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. @@ -2504,6 +2477,7 @@ CRUD operations for RouteBinding records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2512,13 +2486,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, 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, 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: '', 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(); @@ -2547,6 +2521,7 @@ CRUD operations for Route records. | `targetApiId` | UUID | Yes | | `targetBucketId` | UUID | Yes | | `targetFunctionId` | UUID | Yes | +| `targetRedirectId` | UUID | Yes | | `targetServiceId` | UUID | Yes | | `targetSiteId` | UUID | Yes | | `updatedAt` | Datetime | No | @@ -2555,13 +2530,13 @@ 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: true, createdAt: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: 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: { config: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', 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(); @@ -2696,6 +2671,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 +2682,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(); @@ -2995,6 +2972,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. @@ -3550,23 +3568,6 @@ resolveDeepLink const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); ``` -### `db.query.resolveHttpRoute` - -resolveHttpRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - ### `db.query.resolveRoute` resolveRoute @@ -3599,64 +3600,49 @@ resolveSiteAppLinks const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); ``` -### `db.mutation.applyRls` +### `db.mutation.acceptDatabaseTransfer` -applyRls +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ApplyRlsInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.appsInstallApp` - -appsInstallApp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppsInstallAppInput (required) | - -```typescript -const result = await db.mutation.appsInstallApp({ input: '' }).execute(); -``` - -### `db.mutation.appsUninstallApp` +### `db.mutation.applyRls` -appsUninstallApp +applyRls - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUninstallAppInput (required) | + | `input` | ApplyRlsInput (required) | ```typescript -const result = await db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute(); +const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.appsUpgradeApp` +### `db.mutation.cancelDatabaseTransfer` -appsUpgradeApp +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | AppsUpgradeAppInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute(); +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` ### `db.mutation.domainsAssignSubdomain` @@ -3722,6 +3708,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).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. diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 1e0236a966..87c6a4aab6 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'; @@ -35,7 +34,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; import { FullTextSearchModel } from './models/fullTextSearch'; import { FunctionModel } from './models/function'; import { HostnameBindingModel } from './models/hostnameBinding'; -import { HttpRouteModel } from './models/httpRoute'; import { IndexModel } from './models/index'; import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; @@ -64,6 +62,7 @@ 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'; @@ -78,6 +77,7 @@ import { SiteModuleModel } from './models/siteModule'; 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 +129,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), @@ -156,7 +155,6 @@ export function createClient(config: OrmClientConfig) { fullTextSearch: new FullTextSearchModel(client), function: new FunctionModel(client), hostnameBinding: new HostnameBindingModel(client), - httpRoute: new HttpRouteModel(client), index: new IndexModel(client), managedDomain: new ManagedDomainModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), @@ -185,6 +183,7 @@ export function createClient(config: OrmClientConfig) { 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), @@ -199,6 +198,7 @@ export function createClient(config: OrmClientConfig) { 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..9f34cd64dd 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -306,47 +306,20 @@ export interface ApiSetting { 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; @@ -467,6 +440,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 +453,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 +474,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 */ @@ -804,30 +780,6 @@ 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 Index { accessMethod?: string | null; category?: ObjectCategory | null; @@ -856,6 +808,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 +821,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 */ @@ -997,6 +951,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 +970,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 */ @@ -1143,6 +1099,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 +1110,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 */ @@ -1206,6 +1164,7 @@ export interface PlatformSite { /** Catalog 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; @@ -1222,6 +1181,7 @@ export interface PlatformSite { /** 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 { @@ -1333,6 +1293,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 +1352,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) */ @@ -1433,6 +1415,8 @@ export interface RouteBinding { 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 */ @@ -1464,6 +1448,8 @@ export interface Route { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -1524,6 +1510,7 @@ export interface Site { /** Catalog 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 */ @@ -1542,6 +1529,7 @@ export interface Site { /** 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 { @@ -1678,6 +1666,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; @@ -1894,12 +1897,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 +1961,6 @@ export interface DeriveRelations { export interface DomainRelations { domainEvents?: ConnectionResult; domainVerifications?: ConnectionResult; - httpRoutes?: ConnectionResult; routes?: ConnectionResult; } export interface DomainEventRelations { @@ -2038,9 +2035,6 @@ export interface FunctionRelations { schema?: Schema | null; } export interface HostnameBindingRelations {} -export interface HttpRouteRelations { - domain?: Domain | null; -} export interface IndexRelations { database?: Database | null; table?: Table | null; @@ -2153,6 +2147,7 @@ export interface PubkeySettingRelations { signInWithChallengeFunction?: Function | null; signUpWithKeyFunction?: Function | null; } +export interface RedirectRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -2223,6 +2218,7 @@ export interface SpatialRelationRelations { refTable?: Table | null; table?: Table | null; } +export interface SqlActionRelations {} export interface TableBehaviorRelations { database?: Database | null; table?: Table | null; @@ -2316,8 +2312,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; @@ -2346,7 +2341,6 @@ export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; export type FunctionWithRelations = Function & FunctionRelations; export type HostnameBindingWithRelations = HostnameBinding & HostnameBindingRelations; -export type HttpRouteWithRelations = HttpRoute & HttpRouteRelations; export type IndexWithRelations = Index & IndexRelations; export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; @@ -2385,6 +2379,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; @@ -2399,6 +2394,7 @@ export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; 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; @@ -2479,39 +2475,20 @@ export type ApiSettingSelect = { 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; @@ -2838,6 +2815,7 @@ export type DeriveSelect = { createdAt?: boolean; databaseId?: boolean; id?: boolean; + includeGrants?: boolean; includeMutations?: boolean; kind?: boolean; policyPrefix?: boolean; @@ -2857,6 +2835,7 @@ export type DeriveSelect = { export type DomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; hostname?: boolean; id?: boolean; @@ -2868,6 +2847,7 @@ export type DomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -2882,12 +2862,6 @@ export type DomainSelect = { filter?: DomainVerificationFilter; orderBy?: DomainVerificationOrderBy[]; }; - httpRoutes?: { - select: HttpRouteSelect; - first?: number; - filter?: HttpRouteFilter; - orderBy?: HttpRouteOrderBy[]; - }; routes?: { select: RouteSelect; first?: number; @@ -3283,24 +3257,6 @@ 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 IndexSelect = { accessMethod?: boolean; category?: boolean; @@ -3331,6 +3287,7 @@ export type ManagedDomainSelect = { annotations?: boolean; certStatus?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; domain?: boolean; id?: boolean; @@ -3338,6 +3295,7 @@ export type ManagedDomainSelect = { tlsReadyAt?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; domainEvents?: { @@ -3472,6 +3430,7 @@ export type PlatformCorsSettingSelect = { export type PlatformDomainSelect = { config?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; hostname?: boolean; id?: boolean; isPublished?: boolean; @@ -3482,6 +3441,7 @@ export type PlatformDomainSelect = { tlsSecretName?: boolean; tlsStatus?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; verificationStatus?: boolean; verifiedAt?: boolean; platformDomainEventsByDomainId?: { @@ -3605,12 +3565,14 @@ export type PlatformManagedDomainSelect = { 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?: { @@ -3659,6 +3621,7 @@ export type PlatformSiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; id?: boolean; installationId?: boolean; @@ -3668,6 +3631,7 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; platformEmailSiteIdentityBySiteId?: { select: PlatformEmailSiteIdentitySelect; }; @@ -3800,6 +3764,7 @@ export type PlatformSiteWebConfigSelect = { }; export type PolicySelect = { category?: boolean; + columnRefs?: boolean; createdAt?: boolean; data?: boolean; databaseId?: boolean; @@ -3880,6 +3845,18 @@ 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; +}; export type RlsSettingSelect = { authenticateFunctionId?: boolean; authenticateSchemaId?: boolean; @@ -3928,6 +3905,7 @@ export type RouteBindingSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -3945,6 +3923,7 @@ export type RouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -4065,6 +4044,7 @@ export type SiteSelect = { activeCommitId?: boolean; bucketId?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; id?: boolean; @@ -4075,6 +4055,7 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; emailSiteIdentity?: { select: EmailSiteIdentitySelect; }; @@ -4241,6 +4222,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; @@ -4792,69 +4788,39 @@ export interface ApiSettingFilter { /** 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. */ @@ -5235,6 +5201,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 +5231,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 +5245,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 +5271,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. */ @@ -5968,42 +5936,6 @@ export interface HostnameBindingFilter { /** Filter by the object’s `verificationStatus` field. */ verificationStatus?: StringFilter; } -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; -} export interface IndexFilter { /** Filter by the object’s `accessMethod` field. */ accessMethod?: StringFilter; @@ -6061,6 +5993,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 +6021,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. */ @@ -6317,6 +6253,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 +6287,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. */ @@ -6555,6 +6495,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 +6521,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. */ @@ -6651,6 +6595,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. */ @@ -6709,6 +6655,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. */ @@ -6881,6 +6829,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 +6972,34 @@ 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 `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[]; @@ -7111,6 +7089,8 @@ export interface RouteBindingFilter { 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. */ @@ -7151,6 +7131,8 @@ export interface RouteFilter { 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. */ @@ -7301,6 +7283,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. */ @@ -7361,6 +7345,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. */ @@ -7584,6 +7570,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[]; @@ -8259,56 +8277,34 @@ export type ApiSettingOrderBy = | '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' @@ -8502,6 +8498,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 +8520,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 +8547,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' @@ -9027,36 +9029,6 @@ 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' - | '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'; export type IndexOrderBy = | 'ACCESS_METHOD_ASC' | 'ACCESS_METHOD_DESC' @@ -9104,6 +9076,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 +9095,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' @@ -9290,6 +9266,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 +9291,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' @@ -9460,6 +9440,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 +9457,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' @@ -9532,6 +9516,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 +9538,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' @@ -9688,6 +9676,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 +9773,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' @@ -9833,6 +9847,8 @@ export type RouteBindingOrderBy = | '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' @@ -9867,6 +9883,8 @@ export type RouteOrderBy = | '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' @@ -9954,6 +9972,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 +9996,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' @@ -10151,6 +10173,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' @@ -10588,67 +10638,43 @@ 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; - databaseId?: string | null; -} -export interface UpdateAppComponentInput { - clientMutationId?: string; - id: string; - appComponentPatch: AppComponentPatch; -} -export interface DeleteAppComponentInput { - clientMutationId?: string; - id: string; -} -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; +export interface AstMigrationPatch { + actionId?: string | null; + actionName?: string | null; + actorId?: string | null; databaseId?: string | null; - description?: string | null; - isPublished?: boolean | null; + deploy?: Record | null; + deploys?: string | null; name?: string | null; - status?: string | null; - title?: string | null; + payload?: Record | null; + requires?: string[] | null; + revert?: Record | null; + verify?: Record | null; } -export interface UpdateAppInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - appPatch: AppPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteAppInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateCheckConstraintInput { clientMutationId?: string; @@ -10890,6 +10916,7 @@ export interface CreateDeriveInput { clientMutationId?: string; derive: { databaseId?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -10899,6 +10926,7 @@ export interface CreateDeriveInput { } export interface DerivePatch { databaseId?: string | null; + includeGrants?: boolean | null; includeMutations?: boolean | null; kind?: string | null; policyPrefix?: string | null; @@ -10918,6 +10946,7 @@ export interface CreateDomainInput { clientMutationId?: string; domain: { config?: Record; + createdByPrincipal?: string; databaseId: string; hostname: string; isPublished?: boolean; @@ -10927,12 +10956,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 +10973,7 @@ export interface DomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -11540,42 +11572,6 @@ export interface DeleteHostnameBindingInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteInput { - clientMutationId?: string; - httpRoute: { - createdBy?: string; - databaseId: string; - domainId: string; - isActive?: boolean; - method?: string; - path?: string; - priority?: number; - targetId: string; - targetKind: string; - updatedBy?: 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 UpdateHttpRouteInput { - clientMutationId?: string; - id: string; - httpRoutePatch: HttpRoutePatch; -} -export interface DeleteHttpRouteInput { - clientMutationId?: string; - id: string; -} export interface CreateIndexInput { clientMutationId?: string; index: { @@ -11626,11 +11622,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 +11637,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; } @@ -11868,6 +11868,7 @@ export interface CreatePlatformDomainInput { clientMutationId?: string; platformDomain: { config?: Record; + createdByPrincipal?: string; hostname: string; isPublished?: boolean; isWildcard?: boolean; @@ -11876,12 +11877,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 +11893,7 @@ export interface PlatformDomainPatch { tlsReadyAt?: string | null; tlsSecretName?: string | null; tlsStatus?: string | null; + updatedByPrincipal?: string | null; verificationStatus?: string | null; verifiedAt?: string | null; } @@ -12072,10 +12076,12 @@ export interface CreatePlatformManagedDomainInput { allowPublicUsage?: boolean; annotations?: Record; certStatus?: string; + createdByPrincipal?: string; domain: string; isWildcard?: boolean; tlsReadyAt?: string; tlsStatus?: string; + updatedByPrincipal?: string; verificationStatus?: string; verifiedAt?: string; }; @@ -12084,10 +12090,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; } @@ -12163,6 +12171,7 @@ export interface CreatePlatformSiteInput { platformSite: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; description?: string; installationId?: string; installationMemberSlug?: string; @@ -12170,11 +12179,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 +12193,7 @@ export interface PlatformSitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdatePlatformSiteInput { clientMutationId?: string; @@ -12368,6 +12380,7 @@ export interface CreatePolicyInput { clientMutationId?: string; policy: { category?: ObjectCategory; + columnRefs?: string[]; data?: Record; databaseId?: string; derivedFromPolicyId?: string; @@ -12386,6 +12399,7 @@ export interface CreatePolicyInput { } export interface PolicyPatch { category?: ObjectCategory | null; + columnRefs?: string[] | null; data?: Record | null; databaseId?: string | null; derivedFromPolicyId?: string | null; @@ -12480,6 +12494,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: { @@ -12525,6 +12569,7 @@ export interface CreateRouteBindingInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12538,6 +12583,7 @@ export interface RouteBindingPatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12563,6 +12609,7 @@ export interface CreateRouteInput { targetApiId?: string; targetBucketId?: string; targetFunctionId?: string; + targetRedirectId?: string; targetServiceId?: string; targetSiteId?: string; }; @@ -12578,6 +12625,7 @@ export interface RoutePatch { targetApiId?: string | null; targetBucketId?: string | null; targetFunctionId?: string | null; + targetRedirectId?: string | null; targetServiceId?: string | null; targetSiteId?: string | null; } @@ -12687,6 +12735,7 @@ export interface CreateSiteInput { site: { activeCommitId?: string; bucketId?: string; + createdByPrincipal?: string; databaseId: string; description?: string; installationId?: string; @@ -12695,11 +12744,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 +12759,7 @@ export interface SitePatch { name?: string | null; resourceId?: string | null; title?: string | null; + updatedByPrincipal?: string | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12938,6 +12990,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: { @@ -13374,9 +13464,6 @@ export const connectionFieldsMap = { apiSchemas: 'ApiSchema', corsSettings: 'CorsSetting', }, - App: { - appComponents: 'AppComponent', - }, Database: { checkConstraints: 'CheckConstraint', compositeTypes: 'CompositeType', @@ -13416,7 +13503,6 @@ export const connectionFieldsMap = { Domain: { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', - httpRoutes: 'HttpRoute', routes: 'Route', }, EmailIdentity: { @@ -13520,6 +13606,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 +13620,9 @@ 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 { - clientMutationId?: string; - targetAppId?: string; -} -export interface AppsUpgradeAppInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - newParams?: Record; - targetAppId?: string; + transferId?: string; } export interface DomainsAssignSubdomainInput { apex?: string; @@ -13583,6 +13654,10 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -13623,15 +13698,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 +14047,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. */ @@ -14678,48 +14735,6 @@ export interface ApiSettingInput { 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; @@ -14845,6 +14860,7 @@ export interface DeriveInput { createdAt?: string; databaseId?: string; id?: string; + includeGrants?: boolean; includeMutations?: boolean; kind: string; policyPrefix?: string; @@ -14857,6 +14873,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 +14894,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 */ @@ -15192,30 +15210,6 @@ 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 `Index` */ export interface IndexInput { accessMethod?: string; @@ -15245,6 +15239,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 +15252,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 */ @@ -15388,6 +15384,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 +15403,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 */ @@ -15534,6 +15532,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 +15543,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 */ @@ -15597,6 +15597,7 @@ export interface PlatformSiteInput { /** Catalog 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; @@ -15613,6 +15614,7 @@ export interface PlatformSiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `PlatformSiteDeepLink` */ export interface PlatformSiteDeepLinkInput { @@ -15725,6 +15727,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 +15787,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) */ @@ -15826,6 +15850,8 @@ export interface RouteBindingInput { 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 */ @@ -15857,6 +15883,8 @@ export interface RouteInput { targetBucketId?: string; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -15919,6 +15947,7 @@ export interface SiteInput { /** Catalog 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 */ @@ -15937,6 +15966,7 @@ export interface SiteInput { /** Human-readable site title */ title?: string; updatedAt?: string; + updatedByPrincipal?: string; } /** An input for mutations affecting `SiteDeepLink` */ export interface SiteDeepLinkInput { @@ -16325,39 +16355,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 +16507,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. */ @@ -17065,6 +17064,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. */ @@ -17916,43 +17917,6 @@ 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. */ @@ -17987,6 +17951,8 @@ export interface RouteFilter { 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. */ @@ -18711,231 +18677,86 @@ 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 { +/** 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. */ - 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?: DatabaseFilter[]; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: 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 `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `derives` relation. */ + derives?: DatabaseToManyDeriveFilter; + /** `derives` exist. */ + derivesExist?: boolean; + /** Filter by the object’s `domainTypes` relation. */ + domainTypes?: DatabaseToManyDomainTypeFilter; + /** `domainTypes` exist. */ + domainTypesExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `exclusionConstraints` relation. */ + exclusionConstraints?: DatabaseToManyExclusionConstraintFilter; + /** `exclusionConstraints` exist. */ + exclusionConstraintsExist?: boolean; + /** Filter by the object’s `fieldBehaviors` relation. */ + fieldBehaviors?: DatabaseToManyFieldBehaviorFilter; + /** `fieldBehaviors` exist. */ + fieldBehaviorsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraintBehaviors` relation. */ + foreignKeyConstraintBehaviors?: DatabaseToManyForeignKeyConstraintBehaviorFilter; + /** `foreignKeyConstraintBehaviors` exist. */ + foreignKeyConstraintBehaviorsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `label` field. */ + label?: StringFilter; /** 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. */ - and?: DatabaseFilter[]; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `compositeTypes` relation. */ - compositeTypes?: DatabaseToManyCompositeTypeFilter; - /** `compositeTypes` exist. */ - compositeTypesExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `derives` relation. */ - derives?: DatabaseToManyDeriveFilter; - /** `derives` exist. */ - derivesExist?: boolean; - /** Filter by the object’s `domainTypes` relation. */ - domainTypes?: DatabaseToManyDomainTypeFilter; - /** `domainTypes` exist. */ - domainTypesExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `exclusionConstraints` relation. */ - exclusionConstraints?: DatabaseToManyExclusionConstraintFilter; - /** `exclusionConstraints` exist. */ - exclusionConstraintsExist?: boolean; - /** Filter by the object’s `fieldBehaviors` relation. */ - fieldBehaviors?: DatabaseToManyFieldBehaviorFilter; - /** `fieldBehaviors` exist. */ - fieldBehaviorsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraintBehaviors` relation. */ - foreignKeyConstraintBehaviors?: DatabaseToManyForeignKeyConstraintBehaviorFilter; - /** `foreignKeyConstraintBehaviors` exist. */ - foreignKeyConstraintBehaviorsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: DatabaseFilter; + not?: DatabaseFilter; /** Checks for any expressions in this list. */ or?: DatabaseFilter[]; /** Filter by the object’s `ownerId` field. */ @@ -19017,6 +18838,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 +18937,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 +19072,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 +19086,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 +19112,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 +19131,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 +19159,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 +19176,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. */ @@ -19299,6 +19238,8 @@ 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 `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ export interface EmailProviderAccountFilter { @@ -19392,6 +19333,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 +19367,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 +19386,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 +19412,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 +19429,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. */ @@ -19538,6 +19489,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 { @@ -19863,24 +19816,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,37 +19854,27 @@ export type ResolveRouteRecordSelect = { tlsStatus?: boolean; verificationStatus?: boolean; }; -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export type ApplyRlsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AppsInstallAppPayload { - appEdge?: AppEdge | null; +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; - result?: App | null; + result?: boolean | null; } -export type AppsInstallAppPayloadSelect = { - appEdge?: { - select: AppEdgeSelect; - }; +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; - result?: { - select: AppSelect; - }; + result?: boolean; }; -export interface AppsUninstallAppPayload { +export interface ApplyRlsPayload { clientMutationId?: string | null; } -export type AppsUninstallAppPayloadSelect = { +export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface AppsUpgradeAppPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type AppsUpgradeAppPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; export interface DomainsAssignSubdomainPayload { clientMutationId?: string | null; @@ -20011,6 +19936,14 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +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; @@ -20172,96 +20105,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,51 +21230,6 @@ export type DeleteHostnameBindingPayloadSelect = { select: HostnameBindingEdgeSelect; }; }; -export interface CreateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was created by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type CreateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface UpdateHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was updated by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type UpdateHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; -export interface DeleteHttpRoutePayload { - clientMutationId?: string | null; - /** The `HttpRoute` that was deleted by this mutation. */ - httpRoute?: HttpRoute | null; - httpRouteEdge?: HttpRouteEdge | null; -} -export type DeleteHttpRoutePayloadSelect = { - clientMutationId?: boolean; - httpRoute?: { - select: HttpRouteSelect; - }; - httpRouteEdge?: { - select: HttpRouteEdgeSelect; - }; -}; export interface CreateIndexPayload { clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ @@ -22692,6 +22490,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. */ @@ -23907,18 +23750,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; @@ -23965,6 +23796,8 @@ export interface PlatformRoute { targetBucketId?: string | null; /** Function catalog row this route targets; must be owner-matched or visible cross-scope */ targetFunctionId?: string | null; + /** Redirect catalog row this route targets; the edge answers with a redirect status instead of proxying a backend */ + targetRedirectId?: string | null; /** Resource catalog row (a Service resource) this route targets; must be owner-matched or visible cross-scope */ targetServiceId?: string | null; /** Site catalog row this route targets; must be owner-matched or visible cross-scope */ @@ -23983,6 +23816,7 @@ export type PlatformRouteSelect = { targetApiId?: boolean; targetBucketId?: boolean; targetFunctionId?: boolean; + targetRedirectId?: boolean; targetServiceId?: boolean; targetSiteId?: boolean; updatedAt?: boolean; @@ -24080,18 +23914,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,18 +24202,6 @@ export type HostnameBindingEdgeSelect = { select: HostnameBindingSelect; }; }; -/** A `HttpRoute` edge in the connection. */ -export interface HttpRouteEdge { - cursor?: string | null; - /** The `HttpRoute` at the end of the edge. */ - node?: HttpRoute | null; -} -export type HttpRouteEdgeSelect = { - cursor?: boolean; - node?: { - select: HttpRouteSelect; - }; -}; /** A `Index` edge in the connection. */ export interface IndexEdge { cursor?: string | null; @@ -24716,6 +24526,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; 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/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/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index e423940bea..5129b9c87d 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'; @@ -33,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; export { FullTextSearchModel } from './fullTextSearch'; export { FunctionModel } from './function'; export { HostnameBindingModel } from './hostnameBinding'; -export { HttpRouteModel } from './httpRoute'; export { IndexModel } from './indexModel'; export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; @@ -62,6 +60,7 @@ 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'; @@ -76,6 +75,7 @@ export { SiteModuleModel } from './siteModule'; 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/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/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..2629f518b2 100644 --- a/sdk/constructive-sdk/src/api/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/api/orm/mutation/index.ts @@ -7,52 +7,49 @@ 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, DomainsAssignSubdomainInput, PlatformDomainsAssignSubdomainInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, + RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SitesProvisionStaticSiteInput, + AcceptDatabaseTransferPayload, ApplyRlsPayload, - AppsInstallAppPayload, - AppsUninstallAppPayload, - AppsUpgradeAppPayload, + CancelDatabaseTransferPayload, DomainsAssignSubdomainPayload, PlatformDomainsAssignSubdomainPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, + RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SitesProvisionStaticSitePayload, + AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, - AppsInstallAppPayloadSelect, - AppsUninstallAppPayloadSelect, - AppsUpgradeAppPayloadSelect, + CancelDatabaseTransferPayloadSelect, DomainsAssignSubdomainPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, + RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, 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 AppsUpgradeAppVariables { - input: AppsUpgradeAppInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; } export interface DomainsAssignSubdomainVariables { input: DomainsAssignSubdomainInput; @@ -73,6 +70,9 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} /** * Variables for requestDatabase * Requests a database and returns a ticket (database_provision_module row) to poll. @@ -94,120 +94,91 @@ export interface SitesProvisionStaticSiteVariables { } export function createMutationOperations(client: OrmClient) { return { - applyRls: ( - args: ApplyRlsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - applyRls: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', - ...buildCustomDocument( - 'mutation', - 'ApplyRls', - 'applyRls', - options.select, - args, - [ - { - name: 'input', - type: 'ApplyRlsInput!', - }, - ], - connectionFieldsMap, - 'ApplyRlsPayload' - ), - }), - appsInstallApp: ( - args: AppsInstallAppVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsInstallApp: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsInstallApp', - fieldName: 'appsInstallApp', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsInstallApp', - 'appsInstallApp', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsInstallAppInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsInstallAppPayload' + 'AcceptDatabaseTransferPayload' ), }), - appsUninstallApp: ( - args: AppsUninstallAppVariables, + applyRls: ( + args: ApplyRlsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUninstallApp: InferSelectResult | null; + applyRls: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUninstallApp', - fieldName: 'appsUninstallApp', + operationName: 'ApplyRls', + fieldName: 'applyRls', ...buildCustomDocument( 'mutation', - 'AppsUninstallApp', - 'appsUninstallApp', + 'ApplyRls', + 'applyRls', options.select, args, [ { name: 'input', - type: 'AppsUninstallAppInput!', + type: 'ApplyRlsInput!', }, ], connectionFieldsMap, - 'AppsUninstallAppPayload' + 'ApplyRlsPayload' ), }), - appsUpgradeApp: ( - args: AppsUpgradeAppVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - appsUpgradeApp: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'AppsUpgradeApp', - fieldName: 'appsUpgradeApp', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'AppsUpgradeApp', - 'appsUpgradeApp', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'AppsUpgradeAppInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'AppsUpgradeAppPayload' + 'CancelDatabaseTransferPayload' ), }), domainsAssignSubdomain: ( @@ -332,6 +303,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + 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: { diff --git a/sdk/constructive-sdk/src/api/orm/query/index.ts b/sdk/constructive-sdk/src/api/orm/query/index.ts index 1d38cd7001..eba73f137f 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; @@ -24,11 +19,6 @@ export interface ResolveDeepLinkVariables { linkSlug?: string; targetSiteId?: string; } -export interface ResolveHttpRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} export interface ResolveRouteVariables { requestHost?: string; requestMethod?: string; @@ -134,43 +124,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveHttpRoute: ( - args: ResolveHttpRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveHttpRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveHttpRoute', - fieldName: 'resolveHttpRoute', - ...buildCustomDocument( - 'query', - 'ResolveHttpRoute', - 'resolveHttpRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveHttpRouteRecord' - ), - }), resolveRoute: ( args: ResolveRouteVariables, options: { diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index d2b4a8129a..d8c49e9408 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:** 113 +- **Custom queries:** 2 +- **Custom mutations:** 54 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index dd356c3de8..4778a8f88e 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -21,7 +21,18 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `build` | findMany, findOne, create, update, delete | +| `buildStep` | 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 +51,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 +61,8 @@ 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 | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -56,13 +71,29 @@ 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 | +| `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | | `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | @@ -77,6 +108,18 @@ 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 | +| `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | | `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | @@ -94,788 +137,797 @@ 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 | +| `catalogImageId` | UUID | Yes | +| `commitSha` | 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 | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', jobId: '', logs: '', 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.contentPreset` -CRUD operations for FunctionApiBinding records. +CRUD operations for ContentPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `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 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 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.functionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: 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.functionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, 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.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionCapabilityBinding` +### `db.databaseFunctionGraph` -CRUD operations for FunctionCapabilityBinding records. +CRUD operations for DatabaseFunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `context` | String | Yes | | `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | | `databaseId` | UUID | Yes | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `definitionsCommitId` | UUID | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | +| `isValid` | Boolean | Yes | +| `name` | String | Yes | +| `storeId` | UUID | Yes | | `updatedAt` | Datetime | No | +| `validationErrors` | JSON | 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 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.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.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.functionCapabilityBinding.create({ data: { bucketId: '', databaseId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, 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.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDefinition` +### `db.databaseFunctionGraphExecution` -CRUD operations for FunctionDefinition records. +CRUD operations for DatabaseFunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | +| `actorId` | UUID | Yes | +| `completedAt` | Datetime | Yes | +| `currentWave` | Int | Yes | | `databaseId` | UUID | Yes | -| `description` | String | Yes | -| `fnCategory` | String | Yes | -| `functionColumns` | JSON | Yes | +| `definitionsCommitId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `entityType` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionPlan` | 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 | -| `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 | -| `volatile` | Boolean | 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 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 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.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.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.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.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.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeployment` +### `db.databaseFunctionGraphExecutionNodeState` -CRUD operations for FunctionDeployment records. +CRUD operations for DatabaseFunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | 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 | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `startedAt` | Datetime | Yes | | `status` | String | Yes | -| `timeoutSeconds` | Int | Yes | -| `updatedAt` | Datetime | No | **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 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, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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.databaseFunctionGraphExecutionNodeState.findOne({ id: '', select: { callbackInputs: true, callbackMeta: true, callbackTokenHash: true, completedAt: true, createdAt: true, databaseId: true, errorCode: true, errorMessage: true, executionId: true, id: true, nodeName: true, nodePath: true, outputId: true, startedAt: true, status: 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.databaseFunctionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', databaseId: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.databaseFunctionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.databaseFunctionGraphExecutionOutput` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for DatabaseFunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `databaseId` | UUID | Yes | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | 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 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.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.databaseFunctionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, hash: true, id: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.databaseFunctionGraphExecutionOutput.create({ data: { data: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.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.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseFunctionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.databaseGraphCommit` -CRUD operations for FunctionExecutionLog records. +CRUD operations for DatabaseGraphCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | | `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | UUID | 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 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.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.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.functionExecutionLog.create({ data: { actorId: '', databaseId: '', invocationId: '', logLevel: '', message: '', metadata: '', taskIdentifier: '' }, 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.functionExecutionLog.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.databaseGraphGetAllTreeNodesRecord` -CRUD operations for FunctionGraphCommit records. +CRUD operations for DatabaseGraphGetAllTreeNodesRecord 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 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 databaseGraphGetAllTreeNodesRecord records +const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraph` +### `db.databaseGraphObject` -CRUD operations for FunctionGraph records. +CRUD operations for DatabaseGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `context` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `definitionsCommitId` | UUID | Yes | -| `description` | String | Yes | +| `data` | JSON | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `isValid` | Boolean | Yes | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `updatedAt` | Datetime | No | -| `validationErrors` | JSON | Yes | +| `kids` | UUID | Yes | +| `ktree` | 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 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.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.databaseGraphObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.databaseGraphObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecution` +### `db.databaseGraphRef` -CRUD operations for FunctionGraphExecution records. +CRUD operations for DatabaseGraphRef 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 | +| `commitId` | UUID | 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 | +| `name` | String | Yes | +| `storeId` | UUID | 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 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.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.databaseGraphRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: 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.databaseGraphRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionNodeState` +### `db.databaseGraphStore` -CRUD operations for FunctionGraphExecutionNodeState records. +CRUD operations for DatabaseGraphStore 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 | +| `databaseId` | UUID | Yes | +| `hash` | 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 | **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 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.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.databaseGraphStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: 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.databaseGraphStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); +const updated = await db.databaseGraphStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.dbPreset` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | -| `hash` | Base64EncodedBinary | Yes | +| `definition` | JSON | Yes | +| `description` | String | Yes | | `id` | UUID | No | -| `scopeId` | UUID | Yes | +| `label` | String | Yes | +| `modulesHash` | UUID | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | **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 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.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, data: true, hash: true, id: 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.functionGraphExecutionOutput.create({ data: { data: '', hash: '', 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.functionGraphExecutionOutput.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.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.functionApiBinding` -CRUD operations for FunctionGraphObject records. +CRUD operations for FunctionApiBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `alias` | String | Yes | +| `apiId` | UUID | Yes | +| `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `functionDefinitionId` | UUID | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | 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 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.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', 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.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.functionCapabilityBinding` -CRUD operations for FunctionGraphRef records. +CRUD operations for FunctionCapabilityBinding records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `bucketId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `functionId` | UUID | Yes | +| `graphId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `key` | String | Yes | +| `lifecycle` | String | Yes | +| `metadata` | JSON | 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 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.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, 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.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionCapabilityBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionDefinition` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `accessChannels` | String | Yes | +| `catalogImageId` | UUID | Yes | +| `category` | String | Yes | +| `concurrency` | Int | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | 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 | -| `scopeId` | UUID | 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 | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | +| `volatile` | Boolean | Yes | **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 functionDefinition records +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, catalogImageId: 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, 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.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, catalogImageId: 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, 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.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', catalogImageId: '', 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: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationAttempt` +### `db.functionDeployment` -CRUD operations for FunctionInvocationAttempt records. +CRUD operations for FunctionDeployment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `attempt` | Int | Yes | +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | Yes | +| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | -| `durationMs` | Int | Yes | -| `error` | String | Yes | -| `errorDetail` | JSON | Yes | +| `errorCount` | Int | Yes | +| `handlerName` | String | Yes | | `id` | UUID | No | -| `invocationCreatedAt` | Datetime | Yes | -| `invocationId` | UUID | Yes | -| `startedAt` | Datetime | Yes | -| `success` | Boolean | Yes | -| `taskIdentifier` | String | 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(); - -// 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(); +| `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, catalogImageId: 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.functionDeployment.findOne({ id: '', select: { annotations: true, catalogImageId: 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.functionInvocationAttempt.create({ data: { actorId: '', attempt: '', databaseId: '', durationMs: '', error: '', errorDetail: '', invocationCreatedAt: '', invocationId: '', startedAt: '', success: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', catalogImageId: '', 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.functionInvocationAttempt.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.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocation` +### `db.functionDeploymentEvent` -CRUD operations for FunctionInvocation records. +CRUD operations for FunctionDeploymentEvent 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 | +| `deploymentId` | UUID | Yes | +| `eventType` | 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 | -| `taskIdentifier` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | 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 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.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.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.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.functionDeploymentEvent.create({ data: { actorId: '', databaseId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllTreeNodesRecord` +### `db.functionExecutionLog` -CRUD operations for GetAllTreeNodesRecord 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 getAllTreeNodesRecord records -const items = await db.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.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.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.infraCommit` +### `db.functionGraphCommit` -CRUD operations for InfraCommit records. +CRUD operations for FunctionGraphCommit records. **Fields:** @@ -883,889 +935,2636 @@ CRUD operations for InfraCommit 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 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 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.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.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.infraCommit.create({ data: { authorId: '', committerId: '', databaseId: '', date: '', message: '', parentIds: '', storeId: '', treeId: '' }, 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.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.infraGetAllTreeNodesRecord` +### `db.functionGraph` -CRUD operations for InfraGetAllTreeNodesRecord records. +CRUD operations for FunctionGraph records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | 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 infraGetAllTreeNodesRecord records -const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, 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.infraGetAllTreeNodesRecord.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.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); ``` -### `db.infraObject` +### `db.functionGraphExecution` -CRUD operations for InfraObject records. +CRUD operations for FunctionGraphExecution records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `data` | JSON | 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 | -| `kids` | UUID | Yes | -| `ktree` | 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 infraObject records -const items = await db.infraObject.findMany({ select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, 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.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` -### `db.infraRef` +### `db.functionGraphExecutionNodeState` -CRUD operations for InfraRef records. +CRUD operations for FunctionGraphExecutionNodeState records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `callbackInputs` | JSON | Yes | +| `callbackMeta` | JSON | Yes | +| `callbackTokenHash` | String | Yes | +| `completedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `errorCode` | String | Yes | +| `errorMessage` | String | Yes | +| `executionId` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `storeId` | UUID | Yes | +| `nodeName` | String | Yes | +| `nodePath` | String | Yes | +| `outputId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `status` | String | 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 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(); // 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.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(); // Create -const created = await db.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { callbackInputs: '', callbackMeta: '', callbackTokenHash: '', completedAt: '', errorCode: '', errorMessage: '', executionId: '', nodeName: '', nodePath: '', outputId: '', scopeId: '', startedAt: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { callbackInputs: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.infraStore` +### `db.functionGraphExecutionOutput` -CRUD operations for InfraStore records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `data` | JSON | Yes | +| `hash` | Base64EncodedBinary | Yes | | `id` | UUID | No | -| `name` | String | Yes | +| `scopeId` | UUID | 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 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.infraStore.findOne({ id: '', select: { createdAt: true, databaseId: true, hash: true, id: true, name: 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.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionOutput.create({ data: { data: '', hash: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); ``` -### `db.integrationProvider` +### `db.functionGraphObject` -CRUD operations for IntegrationProvider records. +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `brand` | JSON | Yes | -| `category` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | -| `icon` | String | Yes | +| `data` | JSON | Yes | | `id` | UUID | No | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `name` | String | Yes | -| `requiredConfigs` | ResourceRequirement | Yes | -| `requiredSecrets` | ResourceRequirement | Yes | -| `slug` | String | Yes | -| `updatedAt` | Datetime | No | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `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 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.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.functionGraphObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.functionGraphObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.namespace` +### `db.functionGraphRef` -CRUD operations for Namespace records. +CRUD operations for FunctionGraphRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `description` | String | Yes | +| `commitId` | UUID | 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 | +| `storeId` | 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 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.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.functionGraphRef.findOne({ id: '', select: { commitId: true, id: true, name: true, scopeId: true, storeId: 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.functionGraphRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceEvent` +### `db.functionGraphStore` -CRUD operations for NamespaceEvent records. +CRUD operations for FunctionGraphStore 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 | -| `namespaceId` | UUID | Yes | +| `name` | 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 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.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.functionGraphStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: 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.functionGraphStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionApiBinding` +### `db.functionInvocationAttempt` -CRUD operations for PlatformFunctionApiBinding records. +CRUD operations for FunctionInvocationAttempt records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `alias` | String | Yes | -| `apiId` | UUID | Yes | -| `config` | JSON | Yes | +| `actorId` | UUID | Yes | +| `attempt` | Int | Yes | | `createdAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `errorDetail` | JSON | Yes | | `id` | UUID | No | -| `updatedAt` | Datetime | No | +| `invocationCreatedAt` | Datetime | Yes | +| `invocationId` | UUID | Yes | +| `startedAt` | Datetime | Yes | +| `success` | Boolean | Yes | +| `taskIdentifier` | String | 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 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.platformFunctionApiBinding.findOne({ id: '', select: { alias: true, apiId: true, config: true, createdAt: true, functionDefinitionId: true, id: 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.platformFunctionApiBinding.create({ data: { alias: '', apiId: '', config: '', functionDefinitionId: '' }, 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.platformFunctionApiBinding.update({ where: { id: '' }, data: { alias: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationAttempt.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionCapabilityBinding` +### `db.functionInvocation` -CRUD operations for PlatformFunctionCapabilityBinding records. +CRUD operations for FunctionInvocation records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bucketId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `apiBindingId` | UUID | Yes | +| `channel` | String | Yes | +| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `functionId` | UUID | Yes | -| `graphId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `definitionScope` | String | Yes | +| `durationMs` | Int | Yes | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | Yes | | `id` | UUID | No | -| `key` | String | Yes | -| `lifecycle` | String | Yes | -| `metadata` | JSON | Yes | -| `updatedAt` | Datetime | 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 | **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 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, 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(); // 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.functionInvocation.findOne({ id: '', select: { actorId: true, apiBindingId: true, channel: true, completedAt: true, createdAt: true, createdByPrincipal: 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(); // Create -const created = await db.platformFunctionCapabilityBinding.create({ data: { bucketId: '', functionId: '', graphId: '', key: '', lifecycle: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', provenance: '', result: '', startedAt: '', status: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionCapabilityBinding.update({ where: { id: '' }, data: { bucketId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionCapabilityBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocation.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDefinition` +### `db.getAllTreeNodesRecord` -CRUD operations for PlatformFunctionDefinition records. +CRUD operations for GetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `accessChannels` | String | Yes | -| `billable` | Boolean | Yes | -| `category` | String | Yes | -| `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | -| `createdAt` | Datetime | No | -| `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 | -| `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 | -| `volatile` | Boolean | Yes | +| `data` | JSON | Yes | +| `path` | String | 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 getAllTreeNodesRecord records +const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, path: 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.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); +const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeployment` +### `db.image` -CRUD operations for PlatformFunctionDeployment records. +CRUD operations for Image records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `concurrency` | Int | Yes | | `createdAt` | Datetime | No | -| `errorCount` | Int | Yes | -| `handlerName` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `description` | String | Yes | +| `digest` | String | Yes | +| `expiresAt` | Datetime | Yes | | `id` | UUID | No | -| `image` | String | Yes | -| `imageVersion` | String | Yes | +| `isPublished` | Boolean | 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 | +| `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 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 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.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.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.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.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.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.image.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +const deleted = await db.image.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionDeploymentEvent` +### `db.imageGrant` -CRUD operations for PlatformFunctionDeploymentEvent records. +CRUD operations for ImageGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `actions` | String | Yes | | `createdAt` | Datetime | No | -| `deploymentId` | UUID | Yes | -| `eventType` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `grantedBy` | UUID | Yes | +| `granteeKey` | UUID | Yes | +| `granteeScope` | String | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | +| `imageId` | UUID | 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 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.platformFunctionDeploymentEvent.findOne({ id: '', select: { actorId: true, createdAt: true, deploymentId: true, eventType: true, id: true, message: true, metadata: 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.platformFunctionDeploymentEvent.create({ data: { actorId: '', deploymentId: '', eventType: '', message: '', metadata: '' }, 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.platformFunctionDeploymentEvent.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.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.imageGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionExecutionLog` +### `db.infraCommit` -CRUD operations for PlatformFunctionExecutionLog records. +CRUD operations for InfraCommit records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `logLevel` | String | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `date` | Datetime | Yes | +| `id` | UUID | No | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `taskIdentifier` | String | Yes | +| `parentIds` | UUID | Yes | +| `storeId` | UUID | Yes | +| `treeId` | 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 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.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.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.platformFunctionExecutionLog.create({ data: { actorId: '', invocationId: '', logLevel: '', message: '', metadata: '', 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.platformFunctionExecutionLog.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.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocationAttempt` +### `db.infraGetAllTreeNodesRecord` -CRUD operations for PlatformFunctionInvocationAttempt records. +CRUD operations for InfraGetAllTreeNodesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `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 | +| `data` | JSON | Yes | +| `path` | 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(); +// List all infraGetAllTreeNodesRecord records +const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocationAttempt.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocationAttempt.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.platformFunctionInvocation` +### `db.infraObject` -CRUD operations for PlatformFunctionInvocation records. +CRUD operations for InfraObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `apiBindingId` | UUID | Yes | -| `channel` | String | Yes | -| `completedAt` | Datetime | Yes | | `createdAt` | Datetime | No | +| `data` | JSON | Yes | | `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 | -| `result` | JSON | Yes | -| `startedAt` | Datetime | Yes | -| `status` | String | Yes | -| `taskIdentifier` | String | Yes | +| `kids` | UUID | Yes | +| `ktree` | 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 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.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.infraObject.findOne({ id: '', select: { createdAt: true, data: true, databaseId: true, id: true, kids: true, ktree: 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.infraObject.create({ data: { data: '', databaseId: '', kids: '', ktree: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraCommit` +### `db.infraRef` -CRUD operations for PlatformInfraCommit records. +CRUD operations for InfraRef records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `date` | Datetime | Yes | +| `commitId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `parentIds` | UUID | Yes | -| `scopeId` | UUID | Yes | +| `name` | String | 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(); +// 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.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.infraRef.findOne({ id: '', select: { commitId: true, databaseId: true, id: true, name: true, storeId: 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.infraRef.create({ data: { commitId: '', databaseId: '', name: '', storeId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute(); +const updated = await db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraGetAllTreeNodesRecord` +### `db.infraStore` -CRUD operations for PlatformInfraGetAllTreeNodesRecord records. +CRUD operations for InfraStore records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `data` | JSON | Yes | -| `path` | String | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | **Operations:** ```typescript -// List all platformInfraGetAllTreeNodesRecord records -const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: 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.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); +const created = await db.infraStore.create({ data: { databaseId: '', hash: '', name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.infraStore.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraObject` +### `db.integrationProvider` -CRUD operations for PlatformInfraObject records. +CRUD operations for IntegrationProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `brand` | JSON | Yes | +| `category` | String | Yes | | `createdAt` | Datetime | No | -| `data` | JSON | Yes | +| `description` | String | Yes | +| `icon` | String | Yes | | `id` | UUID | No | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `scopeId` | UUID | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `name` | String | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `slug` | String | Yes | +| `updatedAt` | Datetime | No | **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 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.platformInfraObject.findOne({ id: '', select: { createdAt: true, data: true, id: true, kids: true, ktree: 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.platformInfraObject.create({ data: { data: '', kids: '', ktree: '', 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.platformInfraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraRef` +### `db.namespace` -CRUD operations for PlatformInfraRef records. +CRUD operations for Namespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `commitId` | UUID | Yes | +| `annotations` | JSON | 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 | -| `scopeId` | UUID | Yes | -| `storeId` | UUID | Yes | +| `namespaceName` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | **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 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(); // 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.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(); // Create -const created = await db.platformInfraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { annotations: '', databaseId: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformInfraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.platformInfraStore` +### `db.namespaceEvent` -CRUD operations for PlatformInfraStore records. +CRUD operations for NamespaceEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | -| `hash` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `scopeId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | 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(); +// 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.platformInfraStore.findOne({ id: '', select: { createdAt: true, hash: true, id: true, name: true, scopeId: 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.platformInfraStore.create({ data: { hash: '', name: '', scopeId: '' }, 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.platformInfraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformInfraStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.platformBuild` -CRUD operations for PlatformNamespace records. +CRUD operations for PlatformBuild records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `catalogImageId` | UUID | Yes | +| `commitSha` | String | Yes | | `createdAt` | Datetime | No | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `eventId` | UUID | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `isActive` | Boolean | Yes | -| `isManaged` | Boolean | Yes | -| `labels` | JSON | Yes | -| `lastError` | String | Yes | -| `name` | String | Yes | -| `namespaceName` | String | Yes | +| `jobId` | BigInt | Yes | +| `logs` | ConstructiveInternalTypeUpload | 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 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 platformBuild records +const items = await db.platformBuild.findMany({ select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.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.platformBuild.findOne({ id: '', select: { actorId: true, catalogImageId: true, commitSha: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, jobId: true, logs: 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.platformNamespace.create({ data: { annotations: '', description: '', isActive: '', isManaged: '', labels: '', lastError: '', name: '', namespaceName: '', status: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', catalogImageId: '', commitSha: '', createdByPrincipal: '', eventId: '', finishedAt: '', jobId: '', logs: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.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.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformBuild.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespaceEvent` +### `db.platformBuildStep` -CRUD operations for PlatformNamespaceEvent records. +CRUD operations for PlatformBuildStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `eventType` | String | Yes | +| `buildId` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `exitCode` | Int | Yes | +| `finishedAt` | Datetime | Yes | | `id` | UUID | No | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | +| `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 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 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.platformNamespaceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, namespaceId: 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.platformNamespaceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', namespaceId: '' }, 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.platformBuildStep.update({ where: { id: '' }, data: { buildId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformBuildStep.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 | +| `billable` | Boolean | Yes | +| `catalogImageId` | UUID | 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 | +| `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, billable: true, catalogImageId: 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, 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, billable: true, catalogImageId: 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, 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: '', billable: '', catalogImageId: '', 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: '', 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 | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | +| `error` | String | Yes | +| `functionDefinitionId` | UUID | Yes | +| `graphExecutionId` | UUID | 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 | + +**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, 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(); + +// 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, 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(); + +// Create +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', apiBindingId: '', channel: '', completedAt: '', createdByPrincipal: '', databaseId: '', definitionScope: '', durationMs: '', error: '', functionDefinitionId: '', graphExecutionId: '', jobId: '', parentInvocationId: '', payload: '', 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 | +| `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, 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(); + +// Create +const created = await db.platformNamespace.create({ data: { annotations: '', 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(); +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 | +| `requiredChecks` | String | 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, requiredChecks: 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, requiredChecks: 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: '', requiredChecks: '', 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.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 | +| `catalogImageId` | UUID | Yes | +| `cpuLimitMillicores` | BigInt | Yes | +| `cpuRequestMillicores` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | 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 | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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 | + +**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(); + +// Delete +const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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.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.platformResource` +### `db.platformResourceUsageLog` -CRUD operations for PlatformResource records. +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 | +| `catalogImageId` | UUID | Yes | | `cpuLimitMillicores` | BigInt | Yes | | `cpuRequestMillicores` | BigInt | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `errorCount` | Int | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | @@ -1786,562 +3585,782 @@ CRUD operations for PlatformResource records. | `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 | +| `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 platformResourcesHealth records +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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.platformResourcesHealth.findOne({ id: '', select: { annotations: true, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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.platformResourcesHealth.create({ data: { annotations: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', 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.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDeclaredCapacity` +### `db.platformResourcesRequirementsState` -CRUD operations for PlatformResourceDeclaredCapacity records. +CRUD operations for PlatformResourcesRequirementsState 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 | +| `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 | -| `podCountMax` | Int | Yes | -| `podCountMin` | Int | Yes | -| `source` | String | Yes | -| `sourceId` | UUID | Yes | -| `storageSizeBytes` | BigInt | 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 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 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.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.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.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, 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.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.platformWebhookEvent.update({ where: { id: '' }, data: { endpointId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformWebhookEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceDefinition` +### `db.proposalComment` -CRUD operations for PlatformResourceDefinition records. +CRUD operations for ProposalComment records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | +| `actorId` | UUID | Yes | +| `attachments` | ConstructiveInternalTypeUpload | Yes | +| `body` | String | Yes | +| `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | -| `defaultSpec` | JSON | Yes | -| `description` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | 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 | +| `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 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 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.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.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.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.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.platformResourceDefinition.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.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalComment.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.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 | -| `eventType` | String | Yes | +| `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 | -| `message` | String | Yes | +| `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 | -| `resourceId` | UUID | 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 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 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.platformResourceEvent.findOne({ id: '', select: { actorId: true, createdAt: true, eventType: true, id: true, message: true, metadata: true, resourceId: 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.platformResourceEvent.create({ data: { actorId: '', eventType: '', message: '', metadata: '', resourceId: '' }, 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.platformResourceEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposal.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceInstallation` +> **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 PlatformResourceInstallation 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 | |-------|------|----------| -| `commitId` | UUID | Yes | +| `blobSha` | String | 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 | +| `path` | String | Yes | +| `proposalId` | UUID | Yes | +| `reviewerId` | UUID | Yes | | `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | +| `viewedAt` | Datetime | 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 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.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.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.platformResourceInstallation.create({ data: { commitId: '', createdBy: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, 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.platformResourceInstallation.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); +const updated = await db.proposalFileView.update({ where: { id: '' }, data: { blobSha: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceInstallation.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalFileView.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceStatusCheck` +### `db.proposalReaction` -CRUD operations for PlatformResourceStatusCheck records. +CRUD operations for ProposalReaction records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `completedAt` | Datetime | Yes | +| `actorId` | UUID | Yes | +| `commentId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `emoji` | String | Yes | | `id` | UUID | No | -| `requestedAt` | Datetime | Yes | -| `requestedBy` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `result` | JSON | Yes | -| `status` | String | Yes | +| `proposalId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | 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 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.platformResourceStatusCheck.findOne({ id: '', select: { completedAt: true, id: true, requestedAt: true, requestedBy: true, resourceId: true, result: true, status: 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.platformResourceStatusCheck.create({ data: { completedAt: '', requestedAt: '', requestedBy: '', resourceId: '', result: '', status: '' }, 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.platformResourceStatusCheck.update({ where: { id: '' }, data: { completedAt: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReaction.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReaction.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageLog` +### `db.proposalReview` -CRUD operations for PlatformResourceUsageLog records. +CRUD operations for ProposalReview records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `cpuMillicores` | BigInt | 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 | -| `intervalSeconds` | Int | Yes | -| `memoryBytes` | BigInt | Yes | -| `metrics` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `sampledAt` | Datetime | Yes | -| `source` | 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 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 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.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.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.platformResourceUsageLog.create({ data: { cpuMillicores: '', intervalSeconds: '', memoryBytes: '', metrics: '', namespaceId: '', resourceId: '', sampledAt: '', source: '' }, 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.platformResourceUsageLog.update({ where: { id: '' }, data: { cpuMillicores: '' }, select: { id: true } }).execute(); +const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalReview.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUsageSummary` +> **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 PlatformResourceUsageSummary records. +### `db.proposalsChunk` + +CRUD operations for ProposalsChunk records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `date` | Date | Yes | -| `gbSeconds` | BigFloat | 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 | -| `maxCpuMillicores` | BigInt | Yes | -| `maxMemoryBytes` | BigInt | Yes | -| `namespaceId` | UUID | Yes | -| `resourceId` | UUID | Yes | -| `runtimeSeconds` | BigInt | Yes | -| `sampleCount` | Int | Yes | +| `metadata` | JSON | Yes | +| `proposalsId` | UUID | Yes | +| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **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 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.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.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.platformResourceUsageSummary.create({ data: { date: '', gbSeconds: '', maxCpuMillicores: '', maxMemoryBytes: '', namespaceId: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, 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.platformResourceUsageSummary.update({ where: { id: '' }, data: { date: '' }, select: { id: true } }).execute(); +const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUsageSummary.delete({ where: { id: '' } }).execute(); +const deleted = await db.proposalsChunk.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourceUtilization` +> **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 PlatformResourceUtilization records. +### `db.registryBinding` + +CRUD operations for RegistryBinding 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 | +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `metadata` | JSON | Yes | | `namespaceId` | UUID | Yes | -| `replicas` | Int | 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 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 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.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.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.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.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.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); +const updated = await db.registryBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourceUtilization.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryBinding.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesHealth` +### `db.registry` -CRUD operations for PlatformResourcesHealth records. +CRUD operations for Registry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `authMode` | String | Yes | +| `basePath` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `errorCount` | Int | Yes | +| `createdByPrincipal` | UUID | Yes | +| `credentialSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `host` | String | Yes | | `id` | UUID | No | | `installationId` | UUID | Yes | -| `integrations` | String | Yes | +| `isPublished` | Boolean | Yes | | `kind` | String | Yes | | `labels` | JSON | Yes | | `lastError` | String | Yes | -| `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `metadata` | JSON | 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 | +| `platformOnly` | Boolean | Yes | +| `role` | String | Yes | | `status` | String | Yes | -| `statusDetail` | String | Yes | -| `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | 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, 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 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.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.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.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.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.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); +const updated = await db.registry.update({ where: { id: '' }, data: { authMode: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesHealth.delete({ where: { id: '' } }).execute(); +const deleted = await db.registry.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesRequirementsState` +### `db.registryGrant` -CRUD operations for PlatformResourcesRequirementsState records. +CRUD operations for RegistryGrant 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 | +| `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 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 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.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: 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.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, 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.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); +const updated = await db.registryGrant.update({ where: { id: '' }, data: { actions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +const deleted = await db.registryGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.platformResourcesResolvedRequirement` +### `db.repository` -CRUD operations for PlatformResourcesResolvedRequirement records. +CRUD operations for Repository 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 | +| `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 | +| `requiredChecks` | String | 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 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 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, requiredChecks: 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.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.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, requiredChecks: 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.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', 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: '', requiredChecks: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); +const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.repository.delete({ where: { id: '' } }).execute(); ``` -### `db.platformWebhookEndpoint` +> **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 PlatformWebhookEndpoint 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 | |-------|------|----------| -| `active` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `commitSha` | String | Yes | | `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `functionDefinitionId` | UUID | Yes | -| `host` | String | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `deliveryId` | String | Yes | +| `eventType` | String | Yes | | `id` | UUID | No | -| `namespaceId` | UUID | Yes | -| `path` | String | Yes | -| `provider` | String | Yes | -| `replayWindowSeconds` | Int | Yes | -| `signingSecretName` | String | Yes | +| `metadata` | JSON | Yes | +| `payload` | JSON | Yes | +| `ref` | String | Yes | +| `repositoryId` | 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 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.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.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.platformWebhookEndpoint.create({ data: { active: '', createdBy: '', functionDefinitionId: '', host: '', namespaceId: '', path: '', provider: '', replayWindowSeconds: '', signingSecretName: '', updatedBy: '' }, 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.platformWebhookEndpoint.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); +const updated = await db.repositoryEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformWebhookEndpoint.delete({ where: { id: '' } }).execute(); +const deleted = await db.repositoryEvent.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` @@ -2353,10 +4372,12 @@ CRUD operations for Resource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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 | @@ -2383,18 +4404,19 @@ CRUD operations for Resource records. | `storageSizeBytes` | 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2453,8 +4475,10 @@ CRUD operations for ResourceDefinition records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultSpec` | JSON | Yes | | `description` | String | Yes | @@ -2471,18 +4495,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, catalogImageId: 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, catalogImageId: 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: '', catalogImageId: '', 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,6 +4563,7 @@ 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 | @@ -2549,18 +4575,19 @@ CRUD operations for ResourceInstallation records. | `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, databaseId: true, id: true, name: true, namespaceId: true, params: true, revision: true, slug: true, status: true, storeId: true, updatedAt: true, updatedBy: true } }).execute(); +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, 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.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: '', databaseId: '', name: '', namespaceId: '', params: '', revision: '', slug: '', status: '', storeId: '', updatedBy: '' }, select: { id: true } }).execute(); +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(); @@ -2737,10 +4764,12 @@ CRUD operations for ResourcesHealth records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | +| `catalogImageId` | UUID | 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 | @@ -2768,18 +4797,19 @@ CRUD operations for ResourcesHealth records. | `storageSizeBytes` | 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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, catalogImageId: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: 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, 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: '', catalogImageId: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', 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: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -2873,6 +4903,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 +4915,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 +4979,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 @@ -3037,6 +5084,261 @@ 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.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.importDefinitions` importDefinitions diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index 62973ed4f2..7284b066dc 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -5,7 +5,18 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { BuildModel } from './models/build'; +import { BuildStepModel } from './models/buildStep'; 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 +35,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 +45,8 @@ 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 { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -40,13 +55,29 @@ 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 { PlatformRepositoryWorkflowModel } from './models/platformRepositoryWorkflow'; import { PlatformResourceModel } from './models/platformResource'; import { PlatformResourceDeclaredCapacityModel } from './models/platformResourceDeclaredCapacity'; import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; @@ -61,6 +92,18 @@ 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 { RepositoryWorkflowModel } from './models/repositoryWorkflow'; import { ResourceModel } from './models/resource'; import { ResourceDeclaredCapacityModel } from './models/resourceDeclaredCapacity'; import { ResourceDefinitionModel } from './models/resourceDefinition'; @@ -110,7 +153,20 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + build: new BuildModel(client), + buildStep: new BuildStepModel(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 +185,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 +195,8 @@ 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), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -145,13 +205,29 @@ 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), + platformRepositoryWorkflow: new PlatformRepositoryWorkflowModel(client), platformResource: new PlatformResourceModel(client), platformResourceDeclaredCapacity: new PlatformResourceDeclaredCapacityModel(client), platformResourceDefinition: new PlatformResourceDefinitionModel(client), @@ -166,6 +242,18 @@ 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), + repositoryWorkflow: new RepositoryWorkflowModel(client), resource: new ResourceModel(client), resourceDeclaredCapacity: new ResourceDeclaredCapacityModel(client), resourceDefinition: new ResourceDefinitionModel(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..20846f2d71 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -233,9 +233,83 @@ 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 */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} +/** 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 +334,212 @@ 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; + /** 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 */ + status?: 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 +603,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; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -332,6 +614,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 */ @@ -404,6 +687,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; } @@ -411,9 +695,12 @@ export interface FunctionDefinition { export interface FunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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,6 +739,7 @@ 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 { @@ -736,6 +1024,8 @@ export interface FunctionInvocation { 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 */ @@ -771,6 +1061,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 */ @@ -906,6 +1254,75 @@ 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 */ + actorId?: string | null; + /** Catalog image this build produced */ + catalogImageId?: string | null; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string | null; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload | 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; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -944,6 +1361,8 @@ export interface PlatformFunctionDefinition { accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -953,6 +1372,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) */ @@ -1025,6 +1445,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; } @@ -1032,9 +1453,12 @@ export interface PlatformFunctionDefinition { export interface PlatformFunctionDeployment { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string | null; /** 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,6 +1495,7 @@ 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 { @@ -1147,6 +1572,8 @@ export interface PlatformFunctionInvocation { 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 */ @@ -1178,13 +1605,67 @@ 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; } -/** Commit history — each commit snapshots a tree root for a store */ -export interface PlatformInfraCommit { - /** User who authored the changes */ - authorId?: string | null; - /** User who committed (may differ from author) */ - committerId?: string | null; - /** Commit timestamp */ +/** 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 */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Commit timestamp */ date?: string | null; /** Unique commit identifier */ id: string; @@ -1244,6 +1725,52 @@ 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 */ @@ -1285,16 +1812,415 @@ 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 */ + 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 */ + 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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 */ annotations?: Record | null; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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; /** Cumulative error count for this resource */ errorCount?: number | null; id: string; @@ -1342,6 +2268,7 @@ export interface PlatformResource { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1362,8 +2289,11 @@ export interface PlatformResourceDeclaredCapacity { export interface PlatformResourceDefinition { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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,6 +2321,7 @@ 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 { @@ -1415,6 +2346,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 +2364,7 @@ export interface PlatformResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface PlatformResourceStatusCheck { @@ -1515,10 +2448,12 @@ export interface PlatformResourceUtilization { } export interface PlatformResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; errorCount?: number | null; id: string; installationId?: string | null; @@ -1545,6 +2480,7 @@ export interface PlatformResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface PlatformResourcesRequirementsState { configHash?: string | null; @@ -1574,6 +2510,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 +2528,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,16 +2554,439 @@ export interface PlatformWebhookEvent { status?: string | null; updatedAt?: string | null; } +/** Comments on a local proposal, optionally anchored to a line */ +export interface ProposalComment { + /** Actor who wrote the comment */ + 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; + 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 Proposal { + /** Actor who opened the proposal */ + 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; + /** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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; + /** 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; +} +/** 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; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string | 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 */ @@ -1675,6 +3036,7 @@ export interface Resource { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourceDeclaredCapacity { cpuLimitMillicores?: string | null; @@ -1695,8 +3057,11 @@ export interface ResourceDeclaredCapacity { export interface ResourceDefinition { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string | 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 */ @@ -1726,6 +3091,7 @@ 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 { @@ -1752,6 +3118,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 +3138,7 @@ export interface ResourceInstallation { storeId?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } /** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ export interface ResourceStatusCheck { @@ -1860,10 +3228,12 @@ export interface ResourceUtilization { } export interface ResourcesHealth { annotations?: Record | null; + catalogImageId?: string | null; cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; createdAt?: string | null; createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; errorCount?: number | null; id: string; @@ -1891,6 +3261,7 @@ export interface ResourcesHealth { storageSizeBytes?: string | null; updatedAt?: string | null; updatedBy?: string | null; + updatedByPrincipal?: string | null; } export interface ResourcesRequirementsState { configHash?: string | null; @@ -1920,6 +3291,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 +3311,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 +3352,30 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface BuildRelations { + catalogImage?: Image | null; + event?: RepositoryEvent | null; + proposal?: Proposal | null; + repository?: Repository | null; + workflow?: RepositoryWorkflow | null; +} +export interface BuildStepRelations {} 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,11 +3385,14 @@ export interface FunctionCapabilityBindingRelations { function?: FunctionDefinition | null; } export interface FunctionDefinitionRelations { + catalogImage?: Image | null; + graph?: DatabaseFunctionGraph | null; functionApiBindings?: ConnectionResult; functionCapabilityBindingsByFunctionId?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { + catalogImage?: Image | null; namespace?: Namespace | null; } export interface FunctionDeploymentEventRelations {} @@ -2002,6 +3401,7 @@ export interface FunctionGraphCommitRelations {} export interface FunctionGraphRelations { functionGraphExecutionsByGraphId?: ConnectionResult; platformFunctionDefinitionsByGraphId?: ConnectionResult; + platformRepositoryWorkflowsByGraphId?: ConnectionResult; } export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; @@ -2016,6 +3416,17 @@ export interface FunctionInvocationRelations { apiBinding?: FunctionApiBinding | null; } export interface GetAllTreeNodesRecordRelations {} +export interface ImageRelations { + buildsByCatalogImageId?: ConnectionResult; + functionDefinitionsByCatalogImageId?: ConnectionResult; + functionDeploymentsByCatalogImageId?: ConnectionResult; + imageGrants?: ConnectionResult; + resourceDefinitionsByCatalogImageId?: ConnectionResult; + resourcesByCatalogImageId?: ConnectionResult; +} +export interface ImageGrantRelations { + image?: Image | null; +} export interface InfraCommitRelations {} export interface InfraGetAllTreeNodesRecordRelations {} export interface InfraObjectRelations {} @@ -2024,12 +3435,21 @@ export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { functionDeployments?: ConnectionResult; + registryBindings?: ConnectionResult; resourceDefinitions?: ConnectionResult; resourceInstallations?: ConnectionResult; resources?: ConnectionResult; webhookEndpoints?: ConnectionResult; } export interface NamespaceEventRelations {} +export interface PlatformBuildRelations { + catalogImage?: PlatformImage | null; + event?: PlatformRepositoryEvent | null; + proposal?: PlatformProposal | null; + repository?: PlatformRepository | null; + workflow?: PlatformRepositoryWorkflow | null; +} +export interface PlatformBuildStepRelations {} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -2038,12 +3458,14 @@ export interface PlatformFunctionCapabilityBindingRelations { function?: PlatformFunctionDefinition | null; } export interface PlatformFunctionDefinitionRelations { + catalogImage?: PlatformImage | null; graph?: FunctionGraph | null; platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; platformFunctionCapabilityBindingsByFunctionId?: ConnectionResult; platformWebhookEndpointsByFunctionDefinitionId?: ConnectionResult; } export interface PlatformFunctionDeploymentRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; } export interface PlatformFunctionDeploymentEventRelations {} @@ -2052,33 +3474,105 @@ export interface PlatformFunctionInvocationAttemptRelations {} export interface PlatformFunctionInvocationRelations { apiBinding?: PlatformFunctionApiBinding | null; } +export interface PlatformImageRelations { + platformBuildsByCatalogImageId?: ConnectionResult; + platformFunctionDefinitionsByCatalogImageId?: ConnectionResult; + platformFunctionDeploymentsByCatalogImageId?: ConnectionResult; + platformImageGrantsByImageId?: ConnectionResult; + platformResourceDefinitionsByCatalogImageId?: ConnectionResult; + platformResourcesByCatalogImageId?: 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 { platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} -export interface PlatformResourceRelations { - installation?: PlatformResourceInstallation | null; +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; - resourceDefinition?: PlatformResourceDefinition | null; - platformResourceStatusChecksByResourceId?: ConnectionResult; + 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; + platformRepositoryWorkflowsByRepositoryId?: ConnectionResult; +} +export interface PlatformRepositoryEventRelations { + repository?: PlatformRepository | null; + platformBuildsByEventId?: ConnectionResult; +} +export interface PlatformRepositoryWorkflowRelations { + graph?: FunctionGraph | null; + repository?: PlatformRepository | null; + platformBuildsByWorkflowId?: ConnectionResult; +} +export interface PlatformResourceRelations { + catalogImage?: PlatformImage | null; + installation?: PlatformResourceInstallation | null; + namespace?: PlatformNamespace | null; + resourceDefinition?: PlatformResourceDefinition | null; + platformResourceStatusChecksByResourceId?: ConnectionResult; } export interface PlatformResourceDeclaredCapacityRelations {} export interface PlatformResourceDefinitionRelations { + catalogImage?: PlatformImage | null; namespace?: PlatformNamespace | null; platformResourcesByResourceDefinitionId?: ConnectionResult; } export interface PlatformResourceEventRelations {} export interface PlatformResourceInstallationRelations { namespace?: PlatformNamespace | null; + platformRegistriesByInstallationId?: ConnectionResult; platformResourcesByInstallationId?: ConnectionResult; } export interface PlatformResourceStatusCheckRelations { @@ -2098,7 +3592,63 @@ 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; + repositoryWorkflows?: ConnectionResult; +} +export interface RepositoryEventRelations { + repository?: Repository | null; + buildsByEventId?: ConnectionResult; +} +export interface RepositoryWorkflowRelations { + graph?: DatabaseFunctionGraph | null; + repository?: Repository | null; + buildsByWorkflowId?: ConnectionResult; +} export interface ResourceRelations { + catalogImage?: Image | null; installation?: ResourceInstallation | null; namespace?: Namespace | null; resourceDefinition?: ResourceDefinition | null; @@ -2106,12 +3656,14 @@ export interface ResourceRelations { } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { + catalogImage?: Image | null; namespace?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { namespace?: Namespace | null; + registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } export interface ResourceStatusCheckRelations { @@ -2132,7 +3684,23 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type BuildWithRelations = Build & BuildRelations; +export type BuildStepWithRelations = BuildStep & BuildStepRelations; 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 +3727,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 +3738,8 @@ 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 PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -2184,15 +3756,41 @@ 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 PlatformRepositoryWorkflowWithRelations = PlatformRepositoryWorkflow & + PlatformRepositoryWorkflowRelations; export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; export type PlatformResourceDeclaredCapacityWithRelations = PlatformResourceDeclaredCapacity & PlatformResourceDeclaredCapacityRelations; @@ -2220,6 +3818,18 @@ 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 RepositoryWorkflowWithRelations = RepositoryWorkflow & RepositoryWorkflowRelations; export type ResourceWithRelations = Resource & ResourceRelations; export type ResourceDeclaredCapacityWithRelations = ResourceDeclaredCapacity & ResourceDeclaredCapacityRelations; @@ -2240,6 +3850,61 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ +export type BuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: ImageSelect; + }; + 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 ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -2253,6 +3918,136 @@ export type ContentPresetSelect = { 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; + id?: boolean; + nodeName?: boolean; + nodePath?: boolean; + outputId?: boolean; + startedAt?: boolean; + status?: 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; @@ -2301,11 +4096,13 @@ export type FunctionCapabilityBindingSelect = { }; export type FunctionDefinitionSelect = { accessChannels?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; fnCategory?: boolean; @@ -2343,7 +4140,14 @@ export type FunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: ImageSelect; + }; + graph?: { + select: DatabaseFunctionGraphSelect; + }; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; @@ -2365,8 +4169,10 @@ export type FunctionDefinitionSelect = { }; export type FunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; handlerName?: boolean; @@ -2387,6 +4193,10 @@ export type FunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -2448,6 +4258,12 @@ export type FunctionGraphSelect = { filter?: PlatformFunctionDefinitionFilter; orderBy?: PlatformFunctionDefinitionOrderBy[]; }; + platformRepositoryWorkflowsByGraphId?: { + select: PlatformRepositoryWorkflowSelect; + first?: number; + filter?: PlatformRepositoryWorkflowFilter; + orderBy?: PlatformRepositoryWorkflowOrderBy[]; + }; }; export type FunctionGraphExecutionSelect = { actorId?: boolean; @@ -2553,6 +4369,7 @@ export type FunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2576,6 +4393,80 @@ 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; + buildsByCatalogImageId?: { + select: BuildSelect; + first?: number; + filter?: BuildFilter; + orderBy?: BuildOrderBy[]; + }; + functionDefinitionsByCatalogImageId?: { + select: FunctionDefinitionSelect; + first?: number; + filter?: FunctionDefinitionFilter; + orderBy?: FunctionDefinitionOrderBy[]; + }; + functionDeploymentsByCatalogImageId?: { + select: FunctionDeploymentSelect; + first?: number; + filter?: FunctionDeploymentFilter; + orderBy?: FunctionDeploymentOrderBy[]; + }; + imageGrants?: { + select: ImageGrantSelect; + first?: number; + filter?: ImageGrantFilter; + orderBy?: ImageGrantOrderBy[]; + }; + resourceDefinitionsByCatalogImageId?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; + resourcesByCatalogImageId?: { + select: ResourceSelect; + first?: number; + filter?: ResourceFilter; + orderBy?: ResourceOrderBy[]; + }; +}; +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; @@ -2647,6 +4538,12 @@ export type NamespaceSelect = { filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; + registryBindings?: { + select: RegistryBindingSelect; + first?: number; + filter?: RegistryBindingFilter; + orderBy?: RegistryBindingOrderBy[]; + }; resourceDefinitions?: { select: ResourceDefinitionSelect; first?: number; @@ -2682,6 +4579,59 @@ export type NamespaceEventSelect = { metadata?: boolean; namespaceId?: boolean; }; +export type PlatformBuildSelect = { + actorId?: boolean; + catalogImageId?: boolean; + commitSha?: boolean; + createdAt?: boolean; + createdByPrincipal?: boolean; + eventId?: boolean; + finishedAt?: boolean; + id?: boolean; + jobId?: boolean; + logs?: boolean; + metadata?: boolean; + proposalId?: boolean; + ref?: boolean; + repositoryId?: boolean; + startedAt?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + workflowId?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; + 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 PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -2717,11 +4667,13 @@ export type PlatformFunctionCapabilityBindingSelect = { export type PlatformFunctionDefinitionSelect = { accessChannels?: boolean; billable?: boolean; + catalogImageId?: boolean; category?: boolean; concurrency?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; description?: boolean; fnCategory?: boolean; functionColumns?: boolean; @@ -2759,7 +4711,11 @@ export type PlatformFunctionDefinitionSelect = { taskIdentifier?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; volatile?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; graph?: { select: FunctionGraphSelect; }; @@ -2784,8 +4740,10 @@ export type PlatformFunctionDefinitionSelect = { }; export type PlatformFunctionDeploymentSelect = { annotations?: boolean; + catalogImageId?: boolean; concurrency?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; handlerName?: boolean; id?: boolean; @@ -2805,6 +4763,10 @@ export type PlatformFunctionDeploymentSelect = { status?: boolean; timeoutSeconds?: boolean; updatedAt?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -2848,6 +4810,7 @@ export type PlatformFunctionInvocationSelect = { channel?: boolean; completedAt?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; definitionScope?: boolean; durationMs?: boolean; @@ -2867,34 +4830,106 @@ export type PlatformFunctionInvocationSelect = { select: PlatformFunctionApiBindingSelect; }; }; -export type PlatformInfraCommitSelect = { - authorId?: boolean; - committerId?: boolean; - date?: boolean; - id?: boolean; - message?: boolean; - parentIds?: boolean; - scopeId?: boolean; - storeId?: boolean; - treeId?: boolean; -}; -export type PlatformInfraGetAllTreeNodesRecordSelect = { - data?: boolean; - path?: boolean; -}; -export type PlatformInfraObjectSelect = { +export type PlatformImageSelect = { createdAt?: boolean; - data?: boolean; - id?: boolean; - kids?: boolean; - ktree?: boolean; - scopeId?: boolean; -}; -export type PlatformInfraRefSelect = { - commitId?: boolean; + createdByPrincipal?: boolean; + description?: boolean; + digest?: boolean; + expiresAt?: boolean; id?: boolean; + isPublished?: boolean; + labels?: boolean; + metadata?: boolean; name?: boolean; - scopeId?: boolean; + ownerId?: boolean; + platformOnly?: boolean; + registryHost?: boolean; + repository?: boolean; + runtime?: boolean; + tag?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; + platformBuildsByCatalogImageId?: { + select: PlatformBuildSelect; + first?: number; + filter?: PlatformBuildFilter; + orderBy?: PlatformBuildOrderBy[]; + }; + platformFunctionDefinitionsByCatalogImageId?: { + select: PlatformFunctionDefinitionSelect; + first?: number; + filter?: PlatformFunctionDefinitionFilter; + orderBy?: PlatformFunctionDefinitionOrderBy[]; + }; + platformFunctionDeploymentsByCatalogImageId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformImageGrantsByImageId?: { + select: PlatformImageGrantSelect; + first?: number; + filter?: PlatformImageGrantFilter; + orderBy?: PlatformImageGrantOrderBy[]; + }; + platformResourceDefinitionsByCatalogImageId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; + platformResourcesByCatalogImageId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; +}; +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; + date?: boolean; + id?: boolean; + message?: boolean; + parentIds?: boolean; + scopeId?: boolean; + storeId?: boolean; + treeId?: boolean; +}; +export type PlatformInfraGetAllTreeNodesRecordSelect = { + data?: boolean; + path?: boolean; +}; +export type PlatformInfraObjectSelect = { + createdAt?: boolean; + data?: boolean; + id?: boolean; + kids?: boolean; + ktree?: boolean; + scopeId?: boolean; +}; +export type PlatformInfraRefSelect = { + commitId?: boolean; + id?: boolean; + name?: boolean; + scopeId?: boolean; storeId?: boolean; }; export type PlatformInfraStoreSelect = { @@ -2904,6 +4939,30 @@ 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; createdAt?: boolean; @@ -2923,6 +4982,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformFunctionDeploymentFilter; orderBy?: PlatformFunctionDeploymentOrderBy[]; }; + platformRegistryBindingsByNamespaceId?: { + select: PlatformRegistryBindingSelect; + first?: number; + filter?: PlatformRegistryBindingFilter; + orderBy?: PlatformRegistryBindingOrderBy[]; + }; platformResourceDefinitionsByNamespaceId?: { select: PlatformResourceDefinitionSelect; first?: number; @@ -2957,12 +5022,401 @@ 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; export type PlatformResourceSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -2988,6 +5442,10 @@ export type PlatformResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; installation?: { select: PlatformResourceInstallationSelect; }; @@ -3021,8 +5479,10 @@ export type PlatformResourceDeclaredCapacitySelect = { }; export type PlatformResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; defaultSpec?: boolean; description?: boolean; id?: boolean; @@ -3038,6 +5498,10 @@ export type PlatformResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: PlatformImageSelect; + }; namespace?: { select: PlatformNamespaceSelect; }; @@ -3061,6 +5525,7 @@ export type PlatformResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; id?: boolean; name?: boolean; namespaceId?: boolean; @@ -3071,9 +5536,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; @@ -3138,10 +5610,12 @@ export type PlatformResourceUtilizationSelect = { }; export type PlatformResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; errorCount?: boolean; id?: boolean; installationId?: boolean; @@ -3168,6 +5642,7 @@ export type PlatformResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type PlatformResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3195,6 +5670,7 @@ export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; functionDefinitionId?: boolean; host?: boolean; id?: boolean; @@ -3205,6 +5681,7 @@ export type PlatformWebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: PlatformFunctionDefinitionSelect; }; @@ -3235,26 +5712,427 @@ 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; + 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: ProposalSelect; + }; + proposalReactionsByCommentId?: { + select: ProposalReactionSelect; + first?: number; + filter?: ProposalReactionFilter; + orderBy?: ProposalReactionOrderBy[]; + }; +}; +export type ProposalSelect = { + actorId?: boolean; + body?: boolean; + bodyTrgmSimilarity?: boolean; + closedReason?: boolean; + closedReasonTrgmSimilarity?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: 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: ProposalSelect; + }; + repository?: { + select: RepositorySelect; + }; + builds?: { + select: BuildSelect; + first?: number; + 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 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; + requiredChecks?: 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[]; + }; + 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 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[]; + }; +}; +export type ResourceSelect = { + annotations?: boolean; + catalogImageId?: boolean; + cpuLimitMillicores?: boolean; + cpuRequestMillicores?: boolean; + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + errorCount?: 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; @@ -3267,6 +6145,10 @@ export type ResourceSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; installation?: { select: ResourceInstallationSelect; }; @@ -3300,8 +6182,10 @@ export type ResourceDeclaredCapacitySelect = { }; export type ResourceDefinitionSelect = { annotations?: boolean; + catalogImageId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; defaultSpec?: boolean; description?: boolean; @@ -3318,6 +6202,10 @@ export type ResourceDefinitionSelect = { stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; + catalogImage?: { + select: ImageSelect; + }; namespace?: { select: NamespaceSelect; }; @@ -3342,6 +6230,7 @@ export type ResourceInstallationSelect = { commitId?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; id?: boolean; name?: boolean; @@ -3353,9 +6242,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; @@ -3423,10 +6319,12 @@ export type ResourceUtilizationSelect = { }; export type ResourcesHealthSelect = { annotations?: boolean; + catalogImageId?: boolean; cpuLimitMillicores?: boolean; cpuRequestMillicores?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; errorCount?: boolean; id?: boolean; @@ -3454,6 +6352,7 @@ export type ResourcesHealthSelect = { storageSizeBytes?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; }; export type ResourcesRequirementsStateSelect = { configHash?: boolean; @@ -3481,6 +6380,7 @@ export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; createdBy?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; functionDefinitionId?: boolean; host?: boolean; @@ -3492,6 +6392,7 @@ export type WebhookEndpointSelect = { signingSecretName?: boolean; updatedAt?: boolean; updatedBy?: boolean; + updatedByPrincipal?: boolean; functionDefinition?: { select: FunctionDefinitionSelect; }; @@ -3524,6 +6425,112 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 `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; +} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -3554,43 +6561,306 @@ export interface ContentPresetFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface DbPresetFilter { - /** Filter by the object’s `active` field. */ - active?: BooleanFilter; +export interface DatabaseFunctionGraphFilter { /** Checks for all expressions in this list. */ - and?: DbPresetFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `definition` field. */ - definition?: JSONFilter; + /** 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 `label` field. */ - label?: StringFilter; - /** Filter by the object’s `modulesHash` field. */ - modulesHash?: UUIDFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; /** Negates the expression. */ - not?: DbPresetFilter; + not?: DatabaseFunctionGraphFilter; /** Checks for any expressions in this list. */ - or?: DbPresetFilter[]; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; + 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 FunctionApiBindingFilter { - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; +export interface DatabaseFunctionGraphExecutionFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; + 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 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 `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; +} +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. */ @@ -3649,6 +6919,12 @@ export interface FunctionDefinitionFilter { accessChannels?: StringListFilter; /** Checks for all expressions in this list. */ and?: FunctionDefinitionFilter[]; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -3659,6 +6935,8 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3675,6 +6953,10 @@ export interface FunctionDefinitionFilter { 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. */ @@ -3741,6 +7023,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. */ @@ -3753,10 +7037,18 @@ export interface FunctionDeploymentFilter { and?: FunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -3803,6 +7095,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 +7205,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. */ @@ -4157,6 +7455,8 @@ 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. */ @@ -4199,34 +7499,138 @@ 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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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. */ - date?: DatetimeFilter; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** 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?: InfraCommitFilter; + not?: ImageFilter; /** 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; + 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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; + /** 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[]; @@ -4349,6 +7753,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 +7802,108 @@ 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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -4459,6 +7969,12 @@ export interface PlatformFunctionDefinitionFilter { and?: PlatformFunctionDefinitionFilter[]; /** Filter by the object’s `billable` field. */ billable?: BooleanFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `category` field. */ category?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -4469,6 +7985,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. */ @@ -4559,6 +8077,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; } @@ -4567,10 +8087,18 @@ export interface PlatformFunctionDeploymentFilter { and?: PlatformFunctionDeploymentFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** 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. */ @@ -4615,6 +8143,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,6 +8241,8 @@ 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. */ @@ -4746,6 +8278,106 @@ 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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,6 +8467,62 @@ 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[]; @@ -4866,6 +8554,10 @@ export interface PlatformNamespaceFilter { 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,547 +8601,681 @@ 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 `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; + /** Filter by the object’s `line` field. */ + line?: IntFilter; /** Negates the expression. */ - not?: PlatformResourceFilter; + not?: PlatformProposalCommentFilter; /** 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; + 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 PlatformResourceDeclaredCapacityFilter { +export interface PlatformProposalFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** 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; + 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?: 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; + 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?: PlatformResourceDeclaredCapacityFilter; + not?: PlatformProposalFilter; /** 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; + 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 PlatformResourceDefinitionFilter { +export interface PlatformProposalFileViewFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceDefinitionFilter[]; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; + 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 `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 `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourceDefinitionFilter; + not?: PlatformProposalFileViewFilter; /** 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?: 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 `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; + /** Filter by the object’s `viewedAt` field. */ + viewedAt?: DatetimeFilter; } -export interface PlatformResourceEventFilter { +export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceEventFilter[]; + 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 `eventType` field. */ - eventType?: 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; + /** 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 `message` field. */ - message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: PlatformResourceEventFilter; + not?: PlatformProposalsChunkFilter; /** Checks for any expressions in this list. */ - or?: PlatformResourceEventFilter[]; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; + 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 PlatformResourceInstallationFilter { +export interface PlatformRegistryBindingFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceInstallationFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + 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 `name` field. */ - name?: 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?: PlatformResourceInstallationFilter; + not?: PlatformRegistryBindingFilter; + /** Filter by the object’s `observedCredentialVersion` field. */ + observedCredentialVersion?: StringFilter; /** 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; + 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 `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 PlatformResourceStatusCheckFilter { +export interface PlatformRegistryFilter { /** Checks for all expressions in this list. */ - and?: PlatformResourceStatusCheckFilter[]; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + 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?: PlatformResourceStatusCheckFilter; + not?: PlatformRegistryFilter; /** 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; + 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 PlatformResourceUsageLogFilter { +export interface PlatformRegistryGrantFilter { + /** Filter by the object’s `actions` field. */ + actions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PlatformResourceUsageLogFilter[]; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: BigIntFilter; + 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; - /** 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; + not?: PlatformRegistryGrantFilter; /** 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?: 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 PlatformResourceUsageSummaryFilter { +export interface PlatformRepositoryFilter { /** 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?: 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 `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?: PlatformResourceUsageSummaryFilter; + not?: PlatformRepositoryFilter; /** 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?: 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 PlatformResourceUtilizationFilter { +export interface PlatformRepositoryWorkflowFilter { /** 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; + 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 `errorCount` field. */ - errorCount?: IntFilter; + /** 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 `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 `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: 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 `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `isEnabled` field. */ + isEnabled?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: PlatformResourcesResolvedRequirementFilter; + not?: PlatformRepositoryWorkflowFilter; /** 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; + or?: PlatformRepositoryWorkflowFilter[]; + /** Filter by the object’s `platformBuildsByWorkflowId` relation. */ + platformBuildsByWorkflowId?: PlatformRepositoryWorkflowToManyPlatformBuildFilter; + /** `platformBuildsByWorkflowId` exist. */ + platformBuildsByWorkflowIdExist?: 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; -} -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; + /** 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 ResourceFilter { +export interface PlatformResourceFilter { /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5458,14 +9284,14 @@ export interface ResourceFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installation` relation. */ - installation?: ResourceInstallationFilter; + installation?: PlatformResourceInstallationFilter; /** A related `installation` exists. */ installationExists?: boolean; /** Filter by the object’s `installationId` field. */ @@ -5487,27 +9313,27 @@ export interface ResourceFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + 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?: ResourceDefinitionFilter; + resourceDefinition?: PlatformResourceDefinitionFilter; /** 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. */ @@ -5524,10 +9350,12 @@ export interface ResourceFilter { 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 PlatformResourceDeclaredCapacityFilter { /** Checks for all expressions in this list. */ - and?: ResourceDeclaredCapacityFilter[]; + and?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5545,9 +9373,9 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDeclaredCapacityFilter; + not?: PlatformResourceDeclaredCapacityFilter; /** Checks for any expressions in this list. */ - or?: ResourceDeclaredCapacityFilter[]; + or?: PlatformResourceDeclaredCapacityFilter[]; /** Filter by the object’s `podCountMax` field. */ podCountMax?: IntFilter; /** Filter by the object’s `podCountMin` field. */ @@ -5559,17 +9387,23 @@ export interface ResourceDeclaredCapacityFilter { /** Filter by the object’s `storageSizeBytes` field. */ storageSizeBytes?: BigIntFilter; } -export interface ResourceDefinitionFilter { +export interface PlatformResourceDefinitionFilter { /** Checks for all expressions in this list. */ - and?: ResourceDefinitionFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `defaultSpec` field. */ defaultSpec?: JSONFilter; /** Filter by the object’s `description` field. */ @@ -5585,19 +9419,19 @@ export interface ResourceDefinitionFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceDefinitionFilter; + not?: PlatformResourceDefinitionFilter; /** Checks for any expressions in this list. */ - or?: ResourceDefinitionFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** 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 `platformResourcesByResourceDefinitionId` relation. */ + platformResourcesByResourceDefinitionId?: PlatformResourceDefinitionToManyPlatformResourceFilter; + /** `platformResourcesByResourceDefinitionId` exist. */ + platformResourcesByResourceDefinitionIdExist?: boolean; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `stepUpMinAge` field. */ @@ -5606,16 +9440,16 @@ export interface ResourceDefinitionFilter { 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 PlatformResourceEventFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; + and?: PlatformResourceEventFilter[]; /** 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. */ @@ -5625,41 +9459,45 @@ export interface ResourceEventFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: ResourceEventFilter; + not?: PlatformResourceEventFilter; /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; + or?: PlatformResourceEventFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; } -export interface ResourceInstallationFilter { +export interface PlatformResourceInstallationFilter { /** Checks for all expressions in this list. */ - and?: ResourceInstallationFilter[]; + 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 `databaseId` field. */ - databaseId?: 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?: NamespaceFilter; + namespace?: PlatformNamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceInstallationFilter; + not?: PlatformResourceInstallationFilter; /** Checks for any expressions in this list. */ - or?: ResourceInstallationFilter[]; + or?: PlatformResourceInstallationFilter[]; /** 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 `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. */ @@ -5672,26 +9510,26 @@ export interface ResourceInstallationFilter { 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 PlatformResourceStatusCheckFilter { /** Checks for all expressions in this list. */ - and?: ResourceStatusCheckFilter[]; + and?: PlatformResourceStatusCheckFilter[]; /** 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; + not?: PlatformResourceStatusCheckFilter; /** Checks for any expressions in this list. */ - or?: ResourceStatusCheckFilter[]; + 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?: ResourceFilter; + resource?: PlatformResourceFilter; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `result` field. */ @@ -5699,13 +9537,11 @@ export interface ResourceStatusCheckFilter { /** Filter by the object’s `status` field. */ status?: StringFilter; } -export interface ResourceUsageLogFilter { +export interface PlatformResourceUsageLogFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageLogFilter[]; + and?: PlatformResourceUsageLogFilter[]; /** 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. */ @@ -5717,9 +9553,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageLogFilter; + not?: PlatformResourceUsageLogFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageLogFilter[]; + or?: PlatformResourceUsageLogFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `sampledAt` field. */ @@ -5727,11 +9563,9 @@ export interface ResourceUsageLogFilter { /** Filter by the object’s `source` field. */ source?: StringFilter; } -export interface ResourceUsageSummaryFilter { +export interface PlatformResourceUsageSummaryFilter { /** Checks for all expressions in this list. */ - and?: ResourceUsageSummaryFilter[]; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + and?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `date` field. */ date?: DateFilter; /** Filter by the object’s `gbSeconds` field. */ @@ -5745,9 +9579,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUsageSummaryFilter; + not?: PlatformResourceUsageSummaryFilter; /** Checks for any expressions in this list. */ - or?: ResourceUsageSummaryFilter[]; + or?: PlatformResourceUsageSummaryFilter[]; /** Filter by the object’s `resourceId` field. */ resourceId?: UUIDFilter; /** Filter by the object’s `runtimeSeconds` field. */ @@ -5755,9 +9589,9 @@ export interface ResourceUsageSummaryFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourceUtilizationFilter { +export interface PlatformResourceUtilizationFilter { /** Checks for all expressions in this list. */ - and?: ResourceUtilizationFilter[]; + and?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `avgMemoryBytes` field. */ avgMemoryBytes?: BigIntFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ @@ -5789,9 +9623,9 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourceUtilizationFilter; + not?: PlatformResourceUtilizationFilter; /** Checks for any expressions in this list. */ - or?: ResourceUtilizationFilter[]; + or?: PlatformResourceUtilizationFilter[]; /** Filter by the object’s `replicas` field. */ replicas?: IntFilter; /** Filter by the object’s `resourceId` field. */ @@ -5801,11 +9635,13 @@ export interface ResourceUtilizationFilter { /** Filter by the object’s `sampleCount` field. */ sampleCount?: IntFilter; } -export interface ResourcesHealthFilter { +export interface PlatformResourcesHealthFilter { /** Checks for all expressions in this list. */ - and?: ResourcesHealthFilter[]; + and?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; /** Filter by the object’s `cpuLimitMillicores` field. */ cpuLimitMillicores?: BigIntFilter; /** Filter by the object’s `cpuRequestMillicores` field. */ @@ -5814,8 +9650,8 @@ export interface ResourcesHealthFilter { 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 `errorCount` field. */ errorCount?: IntFilter; /** Filter by the object’s `id` field. */ @@ -5841,9 +9677,9 @@ export interface ResourcesHealthFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesHealthFilter; + not?: PlatformResourcesHealthFilter; /** Checks for any expressions in this list. */ - or?: ResourcesHealthFilter[]; + or?: PlatformResourcesHealthFilter[]; /** Filter by the object’s `realm` field. */ realm?: StringFilter; /** Filter by the object’s `replicas` field. */ @@ -5868,18 +9704,20 @@ export interface ResourcesHealthFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -export interface ResourcesRequirementsStateFilter { +export interface PlatformResourcesRequirementsStateFilter { /** Checks for all expressions in this list. */ - and?: ResourcesRequirementsStateFilter[]; + and?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `configHash` field. */ configHash?: StringFilter; /** Filter by the object’s `configObjectName` field. */ configObjectName?: StringFilter; /** Negates the expression. */ - not?: ResourcesRequirementsStateFilter; + not?: PlatformResourcesRequirementsStateFilter; /** Checks for any expressions in this list. */ - or?: ResourcesRequirementsStateFilter[]; + or?: PlatformResourcesRequirementsStateFilter[]; /** Filter by the object’s `requirementsHash` field. */ requirementsHash?: StringFilter; /** Filter by the object’s `resourceId` field. */ @@ -5891,9 +9729,9 @@ export interface ResourcesRequirementsStateFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface ResourcesResolvedRequirementFilter { +export interface PlatformResourcesResolvedRequirementFilter { /** Checks for all expressions in this list. */ - and?: ResourcesResolvedRequirementFilter[]; + and?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `atomId` field. */ atomId?: UUIDFilter; /** Filter by the object’s `configObjectName` field. */ @@ -5903,9 +9741,9 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ - not?: ResourcesResolvedRequirementFilter; + not?: PlatformResourcesResolvedRequirementFilter; /** Checks for any expressions in this list. */ - or?: ResourcesResolvedRequirementFilter[]; + or?: PlatformResourcesResolvedRequirementFilter[]; /** Filter by the object’s `present` field. */ present?: BooleanFilter; /** Filter by the object’s `realm` field. */ @@ -5921,19 +9759,19 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } -export interface WebhookEndpointFilter { +export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: WebhookEndpointFilter[]; + 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 `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + functionDefinition?: PlatformFunctionDefinitionFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; /** Filter by the object’s `host` field. */ @@ -5941,15 +9779,19 @@ export interface WebhookEndpointFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** 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?: PlatformWebhookEndpointFilter; /** Checks for any expressions in this list. */ - or?: WebhookEndpointFilter[]; + 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. */ @@ -5960,20 +9802,16 @@ export interface WebhookEndpointFilter { 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 PlatformWebhookEventFilter { /** Checks for all expressions in this list. */ - and?: WebhookEventFilter[]; + and?: PlatformWebhookEventFilter[]; /** 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; + endpoint?: PlatformWebhookEndpointFilter; /** Filter by the object’s `endpointId` field. */ endpointId?: UUIDFilter; /** Filter by the object’s `error` field. */ @@ -5987,9 +9825,9 @@ export interface WebhookEventFilter { /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; /** Negates the expression. */ - not?: WebhookEventFilter; + not?: PlatformWebhookEventFilter; /** Checks for any expressions in this list. */ - or?: WebhookEventFilter[]; + or?: PlatformWebhookEventFilter[]; /** Filter by the object’s `payload` field. */ payload?: JSONFilter; /** Filter by the object’s `provider` field. */ @@ -6001,126 +9839,1710 @@ export interface WebhookEventFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -// ============ OrderBy Types ============ -export type ContentPresetOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DbPresetOrderBy = - | 'ACTIVE_ASC' - | 'ACTIVE_DESC' - | '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' +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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** 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; +} +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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 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 `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' + | 'EVENT_ID_ASC' + | 'EVENT_ID_DESC' + | 'FINISHED_AT_ASC' + | 'FINISHED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 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' + | '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'; +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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6186,15 +11608,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6237,7 +11665,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' @@ -6531,6 +11961,8 @@ 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' @@ -6572,6 +12004,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' @@ -6723,7 +12225,83 @@ export type NamespaceEventOrderBy = | 'NAMESPACE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; + | 'PRIMARY_KEY_DESC'; +export type PlatformBuildOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' + | 'COMMIT_SHA_ASC' + | 'COMMIT_SHA_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' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'LOGS_ASC' + | 'LOGS_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 PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -6769,6 +12347,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'ACCESS_CHANNELS_DESC' | 'BILLABLE_ASC' | 'BILLABLE_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'CONCURRENCY_ASC' @@ -6779,6 +12359,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' @@ -6856,15 +12438,21 @@ 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 = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -6905,7 +12493,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,6 +12573,8 @@ 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' @@ -7016,6 +12608,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,6 +12748,54 @@ 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' @@ -7114,31 +12820,525 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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'; -export type PlatformNamespaceEventOrderBy = + | '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' - | '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'; + | '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 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'; export type PlatformResourceOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7147,6 +13347,8 @@ 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' @@ -7199,7 +13401,9 @@ export type PlatformResourceOrderBy = | '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' @@ -7231,10 +13435,14 @@ export type PlatformResourceDeclaredCapacityOrderBy = export type PlatformResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_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' @@ -7267,7 +13475,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 +13503,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 +13527,9 @@ 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 PlatformResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7421,6 +13635,8 @@ export type PlatformResourceUtilizationOrderBy = export type PlatformResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7429,6 +13645,8 @@ 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' @@ -7481,7 +13699,9 @@ export type PlatformResourcesHealthOrderBy = | '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,81 +13728,603 @@ 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' + | 'REQUIRED_CHECKS_ASC' + | 'REQUIRED_CHECKS_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 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' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7591,6 +14333,8 @@ 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' @@ -7645,7 +14389,9 @@ export type ResourceOrderBy = | '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' @@ -7677,10 +14423,14 @@ export type ResourceDeclaredCapacityOrderBy = export type ResourceDefinitionOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_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' | 'DEFAULT_SPEC_ASC' @@ -7715,7 +14465,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 +14495,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 +14521,9 @@ 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 ResourceStatusCheckOrderBy = | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' @@ -7879,6 +14635,8 @@ export type ResourceUtilizationOrderBy = export type ResourcesHealthOrderBy = | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'CATALOG_IMAGE_ID_ASC' + | 'CATALOG_IMAGE_ID_DESC' | 'CPU_LIMIT_MILLICORES_ASC' | 'CPU_LIMIT_MILLICORES_DESC' | 'CPU_REQUEST_MILLICORES_ASC' @@ -7887,6 +14645,8 @@ 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' @@ -7941,7 +14701,9 @@ export type ResourcesHealthOrderBy = | '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 +14751,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 +14777,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,8443 +14811,15793 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateBuildInput { + clientMutationId?: string; + build: { + actorId?: string; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + databaseId: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface BuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 CreateContentPresetInput { clientMutationId?: string; - contentPreset: { + 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; + nodeName: string; + nodePath?: string[]; + outputId?: string; + startedAt?: string; + status?: 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; + nodeName?: string | null; + nodePath?: string[] | null; + outputId?: string | null; + startedAt?: string | null; + status?: 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[]; + catalogImageId?: string; + 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[]; + 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; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + 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; +} +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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + databaseId: string; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: string; + }; +} +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; +} +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; + catalogImageId?: string; + commitSha?: string; + createdByPrincipal?: string; + eventId?: string; + finishedAt?: string; + jobId?: string; + logs?: ConstructiveInternalTypeUpload; + metadata?: Record; + proposalId?: string; + ref?: string; + repositoryId: string; + startedAt?: string; + status?: string; + updatedByPrincipal?: string; + workflowId?: string; + }; +} +export interface PlatformBuildPatch { + actorId?: string | null; + catalogImageId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; + eventId?: string | null; + finishedAt?: string | null; + jobId?: string | null; + logs?: ConstructiveInternalTypeUpload | null; + logsUpload?: File | 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 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[]; + billable?: boolean; + catalogImageId?: string; + 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[]; + 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; + billable?: boolean | null; + catalogImageId?: string | 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; + 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; + catalogImageId?: string; + 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; + catalogImageId?: string | 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; + error?: string; + functionDefinitionId?: string; + graphExecutionId?: string; + jobId?: string; + parentInvocationId?: string; + payload?: Record; + 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; + 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 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; + description?: string; + isActive?: boolean; + isManaged?: boolean; + labels?: Record; + lastError?: string; + name: string; + namespaceName: string; + status?: 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; +} +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; + requiredChecks?: 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; + requiredChecks?: 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 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; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; + }; +} +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; +} +export interface UpdatePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; + platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +} +export interface DeletePlatformResourceDeclaredCapacityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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; + catalogImageId?: string | 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 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; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; + }; +} +export interface PlatformResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; - commitId?: string; - definition: Record; - description?: string; - kind: string; - label?: string; - slug: string; - storeId?: string; + 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 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 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 UpdateContentPresetInput { +export interface UpdateProposalFileViewInput { clientMutationId?: string; id: string; - contentPresetPatch: ContentPresetPatch; + proposalFileViewPatch: ProposalFileViewPatch; } -export interface DeleteContentPresetInput { +export interface DeleteProposalFileViewInput { clientMutationId?: string; id: string; } -export interface CreateDbPresetInput { +export interface CreateProposalReactionInput { clientMutationId?: string; - dbPreset: { - active?: boolean; - commitId?: string; - definition: Record; - description?: string; - label?: string; - modulesHash?: string; - slug: string; - storeId?: string; + proposalReaction: { + actorId: string; + commentId?: string; + createdByPrincipal?: string; + databaseId: string; + emoji: string; + proposalId: string; + updatedByPrincipal?: 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 ProposalReactionPatch { + actorId?: string | null; + commentId?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + emoji?: string | null; + proposalId?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateDbPresetInput { +export interface UpdateProposalReactionInput { clientMutationId?: string; id: string; - dbPresetPatch: DbPresetPatch; + proposalReactionPatch: ProposalReactionPatch; } -export interface DeleteDbPresetInput { +export interface DeleteProposalReactionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateProposalReviewInput { clientMutationId?: string; - functionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; + proposalReview: { + body?: string; + commitSha: string; + createdByPrincipal?: string; + databaseId: string; + proposalId: string; + reviewerId: string; + submittedAt?: string; + updatedByPrincipal?: string; + verdict: string; }; } -export interface FunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +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 UpdateFunctionApiBindingInput { +export interface UpdateProposalReviewInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + proposalReviewPatch: ProposalReviewPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteProposalReviewInput { clientMutationId?: string; id: string; } -export interface CreateFunctionCapabilityBindingInput { +export interface CreateProposalsChunkInput { clientMutationId?: string; - functionCapabilityBinding: { - bucketId?: string; - databaseId: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; + proposalsChunk: { + actorId?: string; + body: string; + chunkIndex?: number; + databaseId?: string; + embedding?: number[]; + embeddingText?: string; metadata?: Record; + proposalsId: string; }; } -export interface FunctionCapabilityBindingPatch { - bucketId?: string | null; +export interface ProposalsChunkPatch { + actorId?: string | null; + body?: string | null; + chunkIndex?: number | null; databaseId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; + embedding?: number[] | null; + embeddingText?: string | null; metadata?: Record | null; + proposalsId?: string | null; } -export interface UpdateFunctionCapabilityBindingInput { +export interface UpdateProposalsChunkInput { clientMutationId?: string; id: string; - functionCapabilityBindingPatch: FunctionCapabilityBindingPatch; + proposalsChunkPatch: ProposalsChunkPatch; } -export interface DeleteFunctionCapabilityBindingInput { +export interface DeleteProposalsChunkInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDefinitionInput { +export interface CreateRegistryBindingInput { clientMutationId?: string; - functionDefinition: { - accessChannels?: string[]; - category: string; - concurrency?: number; + registryBinding: { + createdBy?: string; + 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[]; - requiredConfigs?: ResourceRequirementInput[]; - requiredModels?: string[]; - requiredModules?: string[]; - requiredSecrets?: ResourceRequirementInput[]; - resources?: Record; - runtime?: string; - scaleMax?: number; - scaleMin?: number; - targetFunction?: string; - targetSchema?: string; - timeoutSeconds?: number; - volatile?: boolean; + metadata?: Record; + namespaceId: string; + observedCredentialVersion?: string; + pullSecretName?: string; + realm?: string; + registryHost: string; + registryId: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionDefinitionPatch { - accessChannels?: string[] | null; - category?: string | null; - concurrency?: number | null; +export interface RegistryBindingPatch { + createdBy?: string | 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; - 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; + 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 UpdateFunctionDefinitionInput { +export interface UpdateRegistryBindingInput { clientMutationId?: string; id: string; - functionDefinitionPatch: FunctionDefinitionPatch; + registryBindingPatch: RegistryBindingPatch; } -export interface DeleteFunctionDefinitionInput { +export interface DeleteRegistryBindingInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreateRegistryInput { clientMutationId?: string; - functionDeployment: { - annotations?: Record; - concurrency?: number; + registry: { + authMode?: string; + basePath?: string; + createdByPrincipal?: string; + credentialSecretName?: string; databaseId: string; - errorCount?: number; - handlerName?: string; - image: string; - imageVersion?: string; + host?: string; + installationId?: string; + isPublished?: boolean; + kind: string; labels?: Record; lastError?: string; - lastErrorAt?: string; - namespaceId: string; - realm?: string; - resources?: Record; - revision?: number; - scaleMax?: number; - scaleMin?: number; - serviceName?: string; - serviceUrl?: string; + metadata?: Record; + name: string; + platformOnly?: boolean; + role?: string; status?: string; - timeoutSeconds?: number; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentPatch { - annotations?: Record | null; - concurrency?: number | null; +export interface RegistryPatch { + authMode?: string | null; + basePath?: string | null; + createdByPrincipal?: string | null; + credentialSecretName?: string | null; databaseId?: string | null; - errorCount?: number | null; - handlerName?: string | null; - image?: string | null; - imageVersion?: string | null; + host?: string | null; + installationId?: string | null; + isPublished?: boolean | null; + kind?: 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; + metadata?: Record | null; + name?: string | null; + platformOnly?: boolean | null; + role?: string | null; status?: string | null; - timeoutSeconds?: number | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdateRegistryInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + registryPatch: RegistryPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeleteRegistryInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentEventInput { +export interface CreateRegistryGrantInput { clientMutationId?: string; - functionDeploymentEvent: { + 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; + requiredChecks?: 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; + requiredChecks?: 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; - deploymentId: string; + deliveryId?: string; eventType: string; - message?: string; metadata?: Record; + payload?: Record; + ref?: string; + repositoryId: string; + updatedByPrincipal?: string; }; } -export interface FunctionDeploymentEventPatch { +export interface RepositoryEventPatch { actorId?: string | null; + commitSha?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - deploymentId?: string | null; + deliveryId?: string | null; eventType?: string | null; - message?: string | null; metadata?: Record | null; + payload?: Record | null; + ref?: string | null; + repositoryId?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionDeploymentEventInput { +export interface UpdateRepositoryEventInput { clientMutationId?: string; id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + repositoryEventPatch: RepositoryEventPatch; } -export interface DeleteFunctionDeploymentEventInput { +export interface DeleteRepositoryEventInput { clientMutationId?: string; id: string; } -export interface CreateFunctionExecutionLogInput { +export interface CreateRepositoryWorkflowInput { clientMutationId?: string; - functionExecutionLog: { - actorId?: string; + repositoryWorkflow: { + cancelInProgress?: boolean; + concurrencyKey?: string; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - invocationId?: string; - logLevel?: string; - message: string; - metadata?: Record; - taskIdentifier?: 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 FunctionExecutionLogPatch { - actorId?: string | null; +export interface RepositoryWorkflowPatch { + cancelInProgress?: boolean | null; + concurrencyKey?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - invocationId?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - taskIdentifier?: 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 UpdateFunctionExecutionLogInput { +export interface UpdateRepositoryWorkflowInput { clientMutationId?: string; id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; + repositoryWorkflowPatch: RepositoryWorkflowPatch; } -export interface DeleteFunctionExecutionLogInput { +export interface DeleteRepositoryWorkflowInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphCommitInput { +export interface CreateResourceInput { clientMutationId?: string; - functionGraphCommit: { - authorId?: string; - committerId?: string; - date?: string; - message?: string; - parentIds?: string[]; - scopeId: string; - storeId: string; - treeId?: string; + resource: { + annotations?: Record; + catalogImageId?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: 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 ResourcePatch { + annotations?: Record | null; + catalogImageId?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + updatedByPrincipal?: string | null; } -export interface UpdateFunctionGraphCommitInput { +export interface UpdateResourceInput { clientMutationId?: string; id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; + resourcePatch: ResourcePatch; } -export interface DeleteFunctionGraphCommitInput { +export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { +export interface CreateResourceDeclaredCapacityInput { clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; + 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; }; } -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 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; } -export interface UpdateFunctionGraphInput { +export interface UpdateResourceDeclaredCapacityInput { clientMutationId?: string; id: string; - functionGraphPatch: FunctionGraphPatch; + resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; } -export interface DeleteFunctionGraphInput { +export interface DeleteResourceDeclaredCapacityInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionInput { +export interface CreateResourceDefinitionInput { 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; + resourceDefinition: { + annotations?: Record; + catalogImageId?: string; + 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 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 ResourceDefinitionPatch { + annotations?: Record | null; + catalogImageId?: string | 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 UpdateFunctionGraphExecutionInput { +export interface UpdateResourceDefinitionInput { clientMutationId?: string; id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; + resourceDefinitionPatch: ResourceDefinitionPatch; } -export interface DeleteFunctionGraphExecutionInput { +export interface DeleteResourceDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { +export interface CreateResourceEventInput { 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; + resourceEvent: { + actorId?: string; + databaseId: string; + eventType: string; + message?: string; + metadata?: Record; + resourceId: 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 ResourceEventPatch { + actorId?: string | null; + databaseId?: string | null; + eventType?: string | null; + message?: string | null; + metadata?: Record | null; + resourceId?: string | null; } -export interface UpdateFunctionGraphExecutionNodeStateInput { +export interface UpdateResourceEventInput { clientMutationId?: string; id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + resourceEventPatch: ResourceEventPatch; } -export interface DeleteFunctionGraphExecutionNodeStateInput { +export interface DeleteResourceEventInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface CreateResourceInstallationInput { clientMutationId?: string; - functionGraphExecutionOutput: { - data: Record; - hash: Base64EncodedBinary; - scopeId: 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 FunctionGraphExecutionOutputPatch { - data?: Record | null; - hash?: Base64EncodedBinary | null; - scopeId?: string | null; +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 UpdateFunctionGraphExecutionOutputInput { +export interface UpdateResourceInstallationInput { clientMutationId?: string; id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; + resourceInstallationPatch: ResourceInstallationPatch; } -export interface DeleteFunctionGraphExecutionOutputInput { +export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphObjectInput { +export interface CreateResourceStatusCheckInput { clientMutationId?: string; - functionGraphObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; + resourceStatusCheck: { + completedAt?: string; + databaseId: string; + requestedAt?: string; + requestedBy?: string; + resourceId: string; + result?: Record; + status?: string; }; } -export interface FunctionGraphObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: 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 UpdateFunctionGraphObjectInput { +export interface UpdateResourceStatusCheckInput { clientMutationId?: string; id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + resourceStatusCheckPatch: ResourceStatusCheckPatch; } -export interface DeleteFunctionGraphObjectInput { +export interface DeleteResourceStatusCheckInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphRefInput { +export interface CreateResourceUsageLogInput { clientMutationId?: string; - functionGraphRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: string; + resourceUsageLog: { + cpuMillicores?: string; + databaseId: string; + intervalSeconds: number; + memoryBytes?: string; + metrics?: Record; + namespaceId: string; + resourceId?: string; + sampledAt?: string; + source: string; }; } -export interface FunctionGraphRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: string | null; +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 UpdateFunctionGraphRefInput { +export interface UpdateResourceUsageLogInput { clientMutationId?: string; id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + resourceUsageLogPatch: ResourceUsageLogPatch; } -export interface DeleteFunctionGraphRefInput { +export interface DeleteResourceUsageLogInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphStoreInput { +export interface CreateResourceUsageSummaryInput { clientMutationId?: string; - functionGraphStore: { - hash?: string; - name: string; - scopeId: string; + resourceUsageSummary: { + databaseId: string; + date: string; + gbSeconds?: string; + maxCpuMillicores?: string; + maxMemoryBytes?: string; + namespaceId: string; + resourceId?: string; + runtimeSeconds?: string; + sampleCount?: number; }; } -export interface FunctionGraphStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: string | null; +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 UpdateFunctionGraphStoreInput { +export interface UpdateResourceUsageSummaryInput { clientMutationId?: string; id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + resourceUsageSummaryPatch: ResourceUsageSummaryPatch; } -export interface DeleteFunctionGraphStoreInput { +export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationAttemptInput { +export interface CreateResourceUtilizationInput { 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; + 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 UpdateFunctionInvocationAttemptInput { +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; - functionInvocationAttemptPatch: FunctionInvocationAttemptPatch; + resourceUtilizationPatch: ResourceUtilizationPatch; } -export interface DeleteFunctionInvocationAttemptInput { +export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationInput { +export interface CreateResourcesHealthInput { clientMutationId?: string; - functionInvocation: { - actorId?: string; - apiBindingId?: string; - channel?: string; - completedAt?: string; + resourcesHealth: { + annotations?: Record; + catalogImageId: string; + cpuLimitMillicores?: string; + cpuRequestMillicores?: string; + createdBy?: string; + createdByPrincipal?: 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; + 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; - taskIdentifier: string; + statusDetail?: string; + statusObserved?: Record; + storageClass?: string; + storageSizeBytes?: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface FunctionInvocationPatch { - actorId?: string | null; - apiBindingId?: string | null; - channel?: string | null; - completedAt?: string | null; +export interface ResourcesHealthPatch { + annotations?: Record | null; + catalogImageId?: string | null; + cpuLimitMillicores?: string | null; + cpuRequestMillicores?: string | null; + createdBy?: string | null; + createdByPrincipal?: 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; + 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; - 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; + statusDetail?: string | null; + statusObserved?: Record | null; + storageClass?: string | null; + storageSizeBytes?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; } -export interface UpdateGetAllTreeNodesRecordInput { +export interface UpdateResourcesHealthInput { clientMutationId?: string; id: string; - getAllTreeNodesRecordPatch: GetAllTreeNodesRecordPatch; + resourcesHealthPatch: ResourcesHealthPatch; } -export interface DeleteGetAllTreeNodesRecordInput { +export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateInfraCommitInput { +export interface CreateResourcesRequirementsStateInput { clientMutationId?: string; - infraCommit: { - authorId?: string; - committerId?: string; - databaseId: string; - date?: string; - message?: string; - parentIds?: string[]; - storeId: string; - treeId?: string; + resourcesRequirementsState: { + configHash?: string; + configObjectName?: string; + requirementsHash?: string; + resourceId: string; + secretsHash?: string; + secretsObjectName?: string; + 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 ResourcesRequirementsStatePatch { + configHash?: string | null; + configObjectName?: string | null; + requirementsHash?: string | null; + resourceId?: string | null; + secretsHash?: string | null; + secretsObjectName?: string | null; + slug?: string | null; } -export interface UpdateInfraCommitInput { +export interface UpdateResourcesRequirementsStateInput { clientMutationId?: string; id: string; - infraCommitPatch: InfraCommitPatch; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; } -export interface DeleteInfraCommitInput { +export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { +export interface CreateResourcesResolvedRequirementInput { clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: 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 InfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +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 UpdateInfraGetAllTreeNodesRecordInput { +export interface UpdateResourcesResolvedRequirementInput { clientMutationId?: string; id: string; - infraGetAllTreeNodesRecordPatch: InfraGetAllTreeNodesRecordPatch; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; } -export interface DeleteInfraGetAllTreeNodesRecordInput { +export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } -export interface CreateInfraObjectInput { +export interface CreateWebhookEndpointInput { clientMutationId?: string; - infraObject: { - data?: Record; + webhookEndpoint: { + active?: boolean; + createdBy?: string; + createdByPrincipal?: string; databaseId: string; - kids?: string[]; - ktree?: string[]; + functionDefinitionId: string; + host: string; + namespaceId: string; + path: string; + provider?: string; + replayWindowSeconds?: number; + signingSecretName: string; + updatedBy?: string; + updatedByPrincipal?: string; }; } -export interface InfraObjectPatch { - data?: Record | null; +export interface WebhookEndpointPatch { + active?: boolean | null; + createdBy?: string | null; + createdByPrincipal?: string | null; databaseId?: string | null; - kids?: string[] | null; - ktree?: 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 UpdateInfraObjectInput { +export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; - infraObjectPatch: InfraObjectPatch; + webhookEndpointPatch: WebhookEndpointPatch; } -export interface DeleteInfraObjectInput { +export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; } -export interface CreateInfraRefInput { +export interface CreateWebhookEventInput { clientMutationId?: string; - infraRef: { - commitId?: string; + webhookEvent: { databaseId: string; - name: string; - storeId: string; + endpointId: string; + error?: string; + externalEventId: string; + invocationCreatedAt?: string; + invocationId?: string; + payload?: Record; + provider: string; + providerTimestamp?: string; + status?: string; }; } -export interface InfraRefPatch { - commitId?: string | null; +export interface WebhookEventPatch { databaseId?: string | null; - name?: string | null; - storeId?: 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 UpdateInfraRefInput { +export interface UpdateWebhookEventInput { clientMutationId?: string; id: string; - infraRefPatch: InfraRefPatch; + webhookEventPatch: WebhookEventPatch; } -export interface DeleteInfraRefInput { +export interface DeleteWebhookEventInput { clientMutationId?: string; id: string; } -export interface CreateInfraStoreInput { +// ============ 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: { + buildsByCatalogImageId: 'Build', + functionDefinitionsByCatalogImageId: 'FunctionDefinition', + functionDeploymentsByCatalogImageId: 'FunctionDeployment', + imageGrants: 'ImageGrant', + resourceDefinitionsByCatalogImageId: 'ResourceDefinition', + resourcesByCatalogImageId: 'Resource', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + registryBindings: 'RegistryBinding', + resourceDefinitions: 'ResourceDefinition', + resourceInstallations: 'ResourceInstallation', + resources: 'Resource', + webhookEndpoints: 'WebhookEndpoint', + }, + PlatformFunctionApiBinding: { + platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding', + platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint', + }, + PlatformImage: { + platformBuildsByCatalogImageId: 'PlatformBuild', + platformFunctionDefinitionsByCatalogImageId: 'PlatformFunctionDefinition', + platformFunctionDeploymentsByCatalogImageId: 'PlatformFunctionDeployment', + platformImageGrantsByImageId: 'PlatformImageGrant', + platformResourceDefinitionsByCatalogImageId: 'PlatformResourceDefinition', + platformResourcesByCatalogImageId: 'PlatformResource', + }, + PlatformNamespace: { + 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', + platformRepositoryWorkflowsByRepositoryId: 'PlatformRepositoryWorkflow', + }, + PlatformRepositoryEvent: { + platformBuildsByEventId: 'PlatformBuild', + }, + PlatformRepositoryWorkflow: { + platformBuildsByWorkflowId: 'PlatformBuild', + }, + 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', + repositoryWorkflows: 'RepositoryWorkflow', + }, + RepositoryEvent: { + buildsByEventId: 'Build', + }, + RepositoryWorkflow: { + buildsByWorkflowId: 'Build', + }, + 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; - infraStore: { - databaseId: string; - hash?: string; - name: string; - }; + context?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + scopeId?: string; + srcNode?: string; + srcPort?: string; } -export interface InfraStorePatch { - databaseId?: string | null; - hash?: string | null; - name?: string | null; +export interface AddEdgeAndSaveInput { + clientMutationId?: string; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface UpdateInfraStoreInput { +export interface AddNodeInput { clientMutationId?: string; - id: string; - infraStorePatch: InfraStorePatch; + context?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; + scopeId?: string; } -export interface DeleteInfraStoreInput { +export interface AddNodeAndSaveInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; } -export interface CreateIntegrationProviderInput { +export interface CopyGraphInput { clientMutationId?: string; - integrationProvider: { - brand?: Record; - category?: string; - description?: string; - icon?: string; - logo?: ConstructiveInternalTypeImage; - name: string; - requiredConfigs?: ResourceRequirementInput[]; - requiredSecrets?: ResourceRequirementInput[]; - slug: string; - }; + graphId?: string; + name?: string; + scopeId?: 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 DatabaseAddEdgeInput { + clientMutationId?: string; + context?: string; + databaseId?: string; + dstNode?: string; + dstPort?: string; + graphName?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; } -export interface UpdateIntegrationProviderInput { +export interface DatabaseAddEdgeAndSaveInput { clientMutationId?: string; - id: string; - integrationProviderPatch: IntegrationProviderPatch; + dstNode?: string; + dstPort?: string; + graphId?: string; + message?: string; + srcNode?: string; + srcPort?: string; } -export interface DeleteIntegrationProviderInput { +export interface DatabaseAddNodeInput { clientMutationId?: string; - id: string; + context?: string; + databaseId?: string; + graphName?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; + rootHash?: string; } -export interface CreateNamespaceInput { +export interface DatabaseAddNodeAndSaveInput { clientMutationId?: string; - namespace: { - annotations?: Record; - databaseId: string; - description?: string; - isActive?: boolean; - isManaged?: boolean; - labels?: Record; - lastError?: string; - name: string; - namespaceName: string; - status?: string; - }; + graphId?: string; + message?: string; + meta?: Record; + nodeName?: string; + nodeType?: string; + props?: Record; +} +export interface DatabaseCopyGraphInput { + clientMutationId?: string; + databaseId?: string; + graphId?: string; + name?: string; } -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; +export interface DatabaseCreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + name?: string; } -export interface UpdateNamespaceInput { +export interface DatabaseGraphInitEmptyRepoInput { clientMutationId?: string; - id: string; - namespacePatch: NamespacePatch; + sId?: string; + storeId?: string; } -export interface DeleteNamespaceInput { +export interface DatabaseGraphInsertNodeAtPathInput { clientMutationId?: string; - id: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface CreateNamespaceEventInput { +export interface DatabaseGraphInsertNodesAtPathsInput { clientMutationId?: string; - namespaceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: string; - }; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface NamespaceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: 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 UpdateNamespaceEventInput { +export interface DatabaseGraphSetDataAtPathInput { clientMutationId?: string; - id: string; - namespaceEventPatch: NamespaceEventPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeleteNamespaceEventInput { +export interface DatabaseGraphSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionApiBindingInput { +export interface DatabaseImportDefinitionsInput { clientMutationId?: string; - platformFunctionApiBinding: { - alias?: string; - apiId: string; - config?: Record; - functionDefinitionId: string; - }; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface PlatformFunctionApiBindingPatch { - alias?: string | null; - apiId?: string | null; - config?: Record | null; - functionDefinitionId?: string | null; +export interface DatabaseImportGraphJsonInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + databaseId?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; } -export interface UpdatePlatformFunctionApiBindingInput { +export interface DatabaseSaveGraphInput { clientMutationId?: string; - id: string; - platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + graphId?: string; + message?: string; + rootHash?: string; } -export interface DeletePlatformFunctionApiBindingInput { +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 CreatePlatformFunctionCapabilityBindingInput { +export interface DatabaseValidateFunctionGraphInput { clientMutationId?: string; - platformFunctionCapabilityBinding: { - bucketId?: string; - functionId?: string; - graphId?: string; - key?: string; - lifecycle: string; - metadata?: Record; - }; + graphId?: string; } -export interface PlatformFunctionCapabilityBindingPatch { - bucketId?: string | null; - functionId?: string | null; - graphId?: string | null; - key?: string | null; - lifecycle?: string | null; - metadata?: Record | null; +export interface ImportDefinitionsInput { + clientMutationId?: string; + contexts?: string[]; + graphId?: string; + sourceCommitId?: string; + sourceScopeId?: string; } -export interface UpdatePlatformFunctionCapabilityBindingInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; - platformFunctionCapabilityBindingPatch: PlatformFunctionCapabilityBindingPatch; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + graphJson?: Record; + name?: string; + scopeId?: string; } -export interface DeletePlatformFunctionCapabilityBindingInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; - id: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionDefinitionInput { +export interface InfraInsertNodeAtPathInput { 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; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -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; +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDefinitionInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDefinitionInput { +export interface InfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionDeploymentInput { +export interface InitEmptyRepoInput { 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; - }; -} -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; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDeploymentInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDeploymentInput { +export interface InsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreatePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInitEmptyRepoInput { 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; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + data?: Record; + kids?: string[]; + ktree?: string[]; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionDeploymentEventInput { +export interface PlatformInfraInsertNodesAtPathsInput { clientMutationId?: string; - id: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; } -export interface CreatePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetAndCommitInput { 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; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface UpdatePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; - id: string; - platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface DeletePlatformFunctionExecutionLogInput { +export interface PlatformInfraSetManyAndCommitInput { clientMutationId?: string; - id: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface CreatePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsInstallInput { 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; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface UpdatePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; - platformFunctionInvocationAttemptPatch: PlatformFunctionInvocationAttemptPatch; + commitId?: string; + targetInstallationId?: string; } -export interface DeletePlatformFunctionInvocationAttemptInput { +export interface PlatformResourceInstallationsUninstallInput { clientMutationId?: string; - id: string; + targetInstallationId?: string; } -export interface CreatePlatformFunctionInvocationInput { +export interface PlatformResourceInstallationsUpgradeInput { 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; - }; + newParams?: Record; + targetInstallationId?: 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; +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 UpdatePlatformFunctionInvocationInput { +export interface ResourceInstallationsInstallInput { clientMutationId?: string; - id: string; - platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; + definitionIds?: string[]; + name?: string; + namespaceId?: string; + newParams?: Record; + slug?: string; } -export interface DeletePlatformFunctionInvocationInput { +export interface ResourceInstallationsRollbackInput { clientMutationId?: string; - id: string; + commitId?: string; + targetInstallationId?: string; } -export interface CreatePlatformInfraCommitInput { +export interface ResourceInstallationsUninstallInput { 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; + targetInstallationId?: string; } -export interface UpdatePlatformInfraCommitInput { +export interface ResourceInstallationsUpgradeInput { clientMutationId?: string; - id: string; - platformInfraCommitPatch: PlatformInfraCommitPatch; + newParams?: Record; + targetInstallationId?: string; } -export interface DeletePlatformInfraCommitInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + message?: string; + rootHash?: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { +export interface SetAndCommitInput { clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; } -export interface PlatformInfraGetAllTreeNodesRecordPatch { - data?: Record | null; - path?: string[] | null; +export interface SetDataAtPathInput { + clientMutationId?: string; + data?: Record; + path?: string[]; + root?: string; + sId?: string; } -export interface UpdatePlatformInfraGetAllTreeNodesRecordInput { +export interface SetManyAndCommitInput { clientMutationId?: string; - id: string; - platformInfraGetAllTreeNodesRecordPatch: PlatformInfraGetAllTreeNodesRecordPatch; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; } -export interface DeletePlatformInfraGetAllTreeNodesRecordInput { +export interface StartExecutionInput { 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 CreatePlatformInfraObjectInput { +export interface ValidateFunctionGraphInput { clientMutationId?: string; - platformInfraObject: { - data?: Record; - kids?: string[]; - ktree?: string[]; - scopeId: string; - }; + graphId?: string; } -export interface PlatformInfraObjectPatch { - data?: Record | null; - kids?: string[] | null; - ktree?: string[] | null; - scopeId?: 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 UpdatePlatformInfraObjectInput { - clientMutationId?: string; - id: string; - platformInfraObjectPatch: PlatformInfraObjectPatch; +/** 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 DeletePlatformInfraObjectInput { - 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 CreatePlatformInfraRefInput { - clientMutationId?: string; - platformInfraRef: { - commitId?: string; - name: string; - scopeId: string; - storeId: 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 PlatformInfraRefPatch { - commitId?: string | null; - name?: string | null; - scopeId?: string | null; - storeId?: 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 UpdatePlatformInfraRefInput { - clientMutationId?: string; - id: string; - platformInfraRefPatch: PlatformInfraRefPatch; +/** 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 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 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 many `Build` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyBuildFilter { + /** 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDefinitionFilter { + /** 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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyFunctionDeploymentFilter { + /** 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 `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; +} +/** A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceDefinitionFilter { + /** 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 DeletePlatformInfraRefInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ImageToManyResourceFilter { + /** 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 CreatePlatformInfraStoreInput { - clientMutationId?: string; - platformInfraStore: { - hash?: string; - name: string; - scopeId: 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 PlatformInfraStorePatch { - hash?: string | null; - name?: string | null; - scopeId?: 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 UpdatePlatformInfraStoreInput { - clientMutationId?: string; - id: string; - platformInfraStorePatch: PlatformInfraStorePatch; +/** 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 DeletePlatformInfraStoreInput { - 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 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 `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 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 `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 UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** 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 DeletePlatformNamespaceInput { - 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 CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - namespaceId: 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 PlatformNamespaceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - namespaceId?: 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 UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** 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 DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformBuild` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformBuildFilter { + /** 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 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 `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDefinitionFilter { + /** 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 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; +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformFunctionDeploymentFilter { + /** 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 UpdatePlatformResourceInput { - clientMutationId?: string; - id: string; - platformResourcePatch: PlatformResourcePatch; +/** 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 DeletePlatformResourceInput { - clientMutationId?: string; - id: string; +/** A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceDefinitionFilter { + /** 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 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; - }; +/** A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformImageToManyPlatformResourceFilter { + /** 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 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; +/** 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 UpdatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - platformResourceDeclaredCapacityPatch: PlatformResourceDeclaredCapacityPatch; +/** 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 DeletePlatformResourceDeclaredCapacityInput { - 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourceDefinitionInput { - clientMutationId?: string; - id: string; - platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +/** 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 DeletePlatformResourceDefinitionInput { - 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 CreatePlatformResourceEventInput { - clientMutationId?: string; - platformResourceEvent: { - actorId?: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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; +} +/** 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 PlatformResourceEventPatch { - actorId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: string | null; +/** 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 UpdatePlatformResourceEventInput { - clientMutationId?: string; - id: string; - platformResourceEventPatch: PlatformResourceEventPatch; +/** 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 DeletePlatformResourceEventInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceInstallationInput { - clientMutationId?: string; - platformResourceInstallation: { - commitId?: string; - createdBy?: string; - name: string; - namespaceId: string; - params?: Record; - revision?: number; - slug: string; - status?: string; - storeId?: string; - updatedBy?: 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 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; +/** 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 UpdatePlatformResourceInstallationInput { - clientMutationId?: string; - id: string; - platformResourceInstallationPatch: PlatformResourceInstallationPatch; +/** 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 DeletePlatformResourceInstallationInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceStatusCheckInput { - clientMutationId?: string; - platformResourceStatusCheck: { - completedAt?: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: 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 PlatformResourceStatusCheckPatch { - completedAt?: string | null; - requestedAt?: string | null; - requestedBy?: string | null; - resourceId?: string | null; - result?: Record | null; - status?: string | null; +/** 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 UpdatePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: string; - platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +/** 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 DeletePlatformResourceStatusCheckInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceUsageLogInput { - clientMutationId?: string; - platformResourceUsageLog: { - cpuMillicores?: string; - intervalSeconds: number; - memoryBytes?: string; - metrics?: Record; - namespaceId: string; - resourceId?: string; - sampledAt?: string; - source: 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 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; +/** 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 UpdatePlatformResourceUsageLogInput { - clientMutationId?: string; - id: string; - platformResourceUsageLogPatch: PlatformResourceUsageLogPatch; +/** 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 DeletePlatformResourceUsageLogInput { - clientMutationId?: string; - id: 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 CreatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - platformResourceUsageSummary: { - date: string; - gbSeconds?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - namespaceId: string; - resourceId?: string; - runtimeSeconds?: string; - sampleCount?: number; - }; +/** 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 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; +/** 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 UpdatePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; +/** 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 DeletePlatformResourceUsageSummaryInput { - clientMutationId?: string; - id: 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 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; - }; +/** 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 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; +} +/** 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 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; +/** 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 UpdatePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; - platformResourceUtilizationPatch: PlatformResourceUtilizationPatch; +/** 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 DeletePlatformResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourcesHealthInput { - clientMutationId?: string; - id: string; - platformResourcesHealthPatch: PlatformResourcesHealthPatch; +/** 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 DeletePlatformResourcesHealthInput { - clientMutationId?: string; - id: 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; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: 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 PlatformResourcesRequirementsStatePatch { - 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 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 UpdatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +/** 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 DeletePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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 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; +/** 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 UpdatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +/** 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 DeletePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - id: 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 CreatePlatformWebhookEndpointInput { - clientMutationId?: string; - platformWebhookEndpoint: { - active?: boolean; - createdBy?: string; - functionDefinitionId: string; - host: string; - namespaceId: string; - path: string; - provider?: string; - replayWindowSeconds?: number; - signingSecretName: string; - updatedBy?: string; - }; +/** 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 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; +/** 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 UpdatePlatformWebhookEndpointInput { - clientMutationId?: string; - id: string; - platformWebhookEndpointPatch: PlatformWebhookEndpointPatch; +/** 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 DeletePlatformWebhookEndpointInput { - clientMutationId?: string; - id: 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 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 `Build` */ +export interface BuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 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 `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 UpdatePlatformWebhookEventInput { - clientMutationId?: string; - id: string; - platformWebhookEventPatch: PlatformWebhookEventPatch; +/** 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 DeletePlatformWebhookEventInput { - clientMutationId?: string; - id: string; +/** 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; + /** 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 */ + status?: 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 `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 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 `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 UpdateResourceInput { - 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; - resourcePatch: ResourcePatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeleteResourceInput { - clientMutationId?: string; - id: 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 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 `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 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 `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 UpdateResourceDeclaredCapacityInput { - clientMutationId?: string; - id: string; - resourceDeclaredCapacityPatch: ResourceDeclaredCapacityPatch; +/** 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 DeleteResourceDeclaredCapacityInput { - clientMutationId?: string; - id: 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 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 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[]; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + provider?: string; + required?: boolean; +} +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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 `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 interface UpdateResourceDefinitionInput { - clientMutationId?: string; - id: string; - resourceDefinitionPatch: ResourceDefinitionPatch; +/** 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 interface DeleteResourceDefinitionInput { - 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 CreateResourceEventInput { - clientMutationId?: string; - resourceEvent: { - actorId?: string; - databaseId: string; - eventType: string; - message?: string; - metadata?: Record; - resourceId: 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 ResourceEventPatch { - actorId?: string | null; - databaseId?: string | null; - eventType?: string | null; - message?: string | null; - metadata?: Record | null; - resourceId?: 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 interface UpdateResourceEventInput { - clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; +/** 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 DeleteResourceEventInput { - 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; +} +/** 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 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 `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 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 `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 interface UpdateResourceInstallationInput { - clientMutationId?: string; - id: string; - resourceInstallationPatch: ResourceInstallationPatch; +/** 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; + /** 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; + /** 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 interface DeleteResourceInstallationInput { - 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 CreateResourceStatusCheckInput { - clientMutationId?: string; - resourceStatusCheck: { - completedAt?: string; - databaseId: string; - requestedAt?: string; - requestedBy?: string; - resourceId: string; - result?: Record; - status?: 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 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 `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 UpdateResourceStatusCheckInput { - 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; - resourceStatusCheckPatch: ResourceStatusCheckPatch; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; } -export interface DeleteResourceStatusCheckInput { - 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 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 `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 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 `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 UpdateResourceUsageLogInput { - clientMutationId?: string; - id: string; - resourceUsageLogPatch: ResourceUsageLogPatch; +/** 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 interface DeleteResourceUsageLogInput { - clientMutationId?: string; - id: string; +/** 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 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 `PlatformBuild` */ +export interface PlatformBuildInput { + /** Authenticated actor this build is attributed to */ + actorId?: string; + /** Catalog image this build produced */ + catalogImageId?: string; + /** Commit this build built */ + commitSha?: 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; + /** app_jobs row running this build */ + jobId?: string; + /** Build log object in storage; step rows slice it by byte range */ + logs?: ConstructiveInternalTypeUpload; + /** 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 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 `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 UpdateResourceUsageSummaryInput { - clientMutationId?: string; - id: string; - resourceUsageSummaryPatch: ResourceUsageSummaryPatch; +/** 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 DeleteResourceUsageSummaryInput { - 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 executions are metered through the invocation ledger and billing quota gate */ + billable?: boolean; + /** Catalog image this definition runs (NULL when image is named directly) */ + catalogImageId?: string; + /** 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[]; + /** 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; + updatedByPrincipal?: string; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; } -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 `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this deployment pulls (NULL when image is named directly) */ + catalogImageId?: string; + /** 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 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; +/** 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 interface UpdateResourceUtilizationInput { - clientMutationId?: string; - id: string; - resourceUtilizationPatch: ResourceUtilizationPatch; +/** 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 interface DeleteResourceUtilizationInput { - clientMutationId?: string; - id: string; +/** 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 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; - }; +/** 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; + /** 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; + /** 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 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; +/** 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 UpdateResourcesHealthInput { - clientMutationId?: string; - id: string; - resourcesHealthPatch: ResourcesHealthPatch; +/** 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 DeleteResourcesHealthInput { - clientMutationId?: string; +/** 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; +} +/** 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 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; +/** 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 UpdateResourcesRequirementsStateInput { - clientMutationId?: string; - id: string; - resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +/** 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 DeleteResourcesRequirementsStateInput { - clientMutationId?: string; - id: 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; + /** 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 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; - }; +/** 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 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; +/** 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 interface UpdateResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; - resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +/** 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 interface DeleteResourcesResolvedRequirementInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformProposalComment` */ +export interface PlatformProposalCommentInput { + /** Actor who wrote the comment */ + 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 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; - }; +/** An input for mutations affecting `PlatformProposal` */ +export interface PlatformProposalInput { + /** Actor who opened the proposal */ + 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 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; +/** 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 UpdateWebhookEndpointInput { - clientMutationId?: string; - id: string; - webhookEndpointPatch: WebhookEndpointPatch; +/** 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 DeleteWebhookEndpointInput { - clientMutationId?: string; - id: string; +/** 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 CreateWebhookEventInput { - clientMutationId?: string; - webhookEvent: { - databaseId: string; - endpointId: string; - error?: string; - externalEventId: string; - invocationCreatedAt?: string; - invocationId?: string; - payload?: Record; - provider: string; - providerTimestamp?: string; - status?: 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 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; +/** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 UpdateWebhookEventInput { - clientMutationId?: string; - id: string; - webhookEventPatch: WebhookEventPatch; +/** 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; +} +/** 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 DeleteWebhookEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + createdAt?: string; + createdBy?: string; + createdByPrincipal?: 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; + updatedByPrincipal?: string; } -// ============ 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; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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 AddEdgeAndSaveInput { - clientMutationId?: string; - dstNode?: string; - dstPort?: string; - graphId?: 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 `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; - srcNode?: string; - srcPort?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: string; } -export interface AddNodeInput { - clientMutationId?: string; - context?: string; - graphName?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; - rootHash?: string; - scopeId?: 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 AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - message?: string; - meta?: Record; - nodeName?: string; - nodeType?: string; - props?: Record; +/** 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 CopyGraphInput { - clientMutationId?: string; - graphId?: string; - name?: string; - scopeId?: 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 ImportDefinitionsInput { - clientMutationId?: string; - contexts?: string[]; - graphId?: string; - sourceCommitId?: string; - sourceScopeId?: 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; + /** 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 ImportGraphJsonInput { - clientMutationId?: string; - context?: string; +/** An input for mutations affecting `PlatformWebhookEndpoint` */ +export interface PlatformWebhookEndpointInput { + /** Whether this endpoint currently accepts deliveries */ + active?: boolean; + createdAt?: string; createdBy?: string; - definitionsCommitId?: string; - description?: string; - graphJson?: Record; - name?: string; - scopeId?: string; -} -export interface InfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; -} -export interface InfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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 InfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: 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 InfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - message?: string; - path?: string[]; - refname?: string; - sId?: string; - storeId?: string; +/** An input for mutations affecting `ProposalComment` */ +export interface ProposalCommentInput { + /** Actor who wrote the comment */ + 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 InfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** An input for mutations affecting `Proposal` */ +export interface ProposalInput { + /** Actor who opened the proposal */ + 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 InfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: 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 InsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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 InsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: 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 PlatformInfraInitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** 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; + /** Workflow slugs that must have a succeeded build for a proposal's head commit before it merges */ + requiredChecks?: 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 PlatformInfraInsertNodeAtPathInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; - path?: string[]; - root?: string; - sId?: 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; +} +/** 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 PlatformInfraInsertNodesAtPathsInput { - clientMutationId?: string; - datas?: Record[]; - kidsList?: Record; - ktreeList?: Record; - paths?: Record; - root?: string; - sId?: string; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image this resource runs (NULL when the image is named inline in spec) */ + catalogImageId?: string; + 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; + /** 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 PlatformInfraSetAndCommitInput { - clientMutationId?: string; - data?: Record; - kids?: string[]; - ktree?: string[]; +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Catalog image resources from this definition run (NULL when the image is named inline in default_spec) */ + catalogImageId?: string; + 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; +} +/** 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; - path?: string[]; - refname?: string; - sId?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Resource this event belongs to */ + resourceId: 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 PlatformInfraSetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** 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 PlatformInfraSetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 PlatformResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: string; +/** 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 PlatformResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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 PlatformResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: 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 PlatformResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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; +} +/** 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 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 `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 `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 ResourceInstallationsInstallInput { - clientMutationId?: string; - definitionIds?: string[]; - name?: string; - namespaceId?: string; - newParams?: Record; - slug?: 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 `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 interface ResourceInstallationsRollbackInput { - clientMutationId?: string; - commitId?: string; - targetInstallationId?: 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; } -export interface ResourceInstallationsUninstallInput { - clientMutationId?: string; - targetInstallationId?: string; +/** 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 ResourceInstallationsUpgradeInput { - clientMutationId?: string; - newParams?: Record; - targetInstallationId?: 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 SaveGraphInput { - clientMutationId?: string; - graphId?: string; - message?: string; - rootHash?: 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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 SetDataAtPathInput { - clientMutationId?: string; - data?: Record; - path?: string[]; - root?: string; - sId?: string; +/** 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 `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 SetManyAndCommitInput { - clientMutationId?: string; - entries?: Record; - message?: string; - refname?: string; - sId?: string; - storeId?: 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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: 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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: ImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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 `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `logs` field. */ + logs?: ConstructiveInternalTypeUploadFilter; + /** 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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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; } -/** 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 `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; } -/** 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: 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 `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 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 `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 `catalogImage` relation. */ + catalogImage?: PlatformImageFilter; + /** A related `catalogImage` exists. */ + catalogImageExists?: boolean; + /** Filter by the object’s `catalogImageId` field. */ + catalogImageId?: UUIDFilter; + /** 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 `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; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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; +/** 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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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 `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; } -/** 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; +/** 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 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 `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 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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 `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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** An input for mutations affecting `ResourceRequirement` */ -export interface ResourceRequirementInput { - name?: string; - provider?: string; - required?: boolean; +/** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `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; +/** 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[]; } -/** 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; +/** 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; } -/** 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; +/** 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 `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; +/** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `buildsByCatalogImageId` relation. */ + buildsByCatalogImageId?: ImageToManyBuildFilter; + /** `buildsByCatalogImageId` exist. */ + buildsByCatalogImageIdExist?: boolean; + /** 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 `functionDefinitionsByCatalogImageId` relation. */ + functionDefinitionsByCatalogImageId?: ImageToManyFunctionDefinitionFilter; + /** `functionDefinitionsByCatalogImageId` exist. */ + functionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `functionDeploymentsByCatalogImageId` relation. */ + functionDeploymentsByCatalogImageId?: ImageToManyFunctionDeploymentFilter; + /** `functionDeploymentsByCatalogImageId` exist. */ + functionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `resourceDefinitionsByCatalogImageId` relation. */ + resourceDefinitionsByCatalogImageId?: ImageToManyResourceDefinitionFilter; + /** `resourceDefinitionsByCatalogImageId` exist. */ + resourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `resourcesByCatalogImageId` relation. */ + resourcesByCatalogImageId?: ImageToManyResourceFilter; + /** `resourcesByCatalogImageId` exist. */ + resourcesByCatalogImageIdExist?: boolean; + /** 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; } -/** 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; +/** 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[]; } -/** 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; +/** 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[]; } -/** 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; +/** 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 `repositoryWorkflows` relation. */ + repositoryWorkflows?: RepositoryToManyRepositoryWorkflowFilter; + /** `repositoryWorkflows` exist. */ + repositoryWorkflowsExist?: boolean; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 `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; +/** 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 `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 `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; } -/** 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; +/** 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 `platformBuildsByCatalogImageId` relation. */ + platformBuildsByCatalogImageId?: PlatformImageToManyPlatformBuildFilter; + /** `platformBuildsByCatalogImageId` exist. */ + platformBuildsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDefinitionsByCatalogImageId` relation. */ + platformFunctionDefinitionsByCatalogImageId?: PlatformImageToManyPlatformFunctionDefinitionFilter; + /** `platformFunctionDefinitionsByCatalogImageId` exist. */ + platformFunctionDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformFunctionDeploymentsByCatalogImageId` relation. */ + platformFunctionDeploymentsByCatalogImageId?: PlatformImageToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByCatalogImageId` exist. */ + platformFunctionDeploymentsByCatalogImageIdExist?: boolean; + /** 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 `platformResourceDefinitionsByCatalogImageId` relation. */ + platformResourceDefinitionsByCatalogImageId?: PlatformImageToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByCatalogImageId` exist. */ + platformResourceDefinitionsByCatalogImageIdExist?: boolean; + /** Filter by the object’s `platformResourcesByCatalogImageId` relation. */ + platformResourcesByCatalogImageId?: PlatformImageToManyPlatformResourceFilter; + /** `platformResourcesByCatalogImageId` exist. */ + platformResourcesByCatalogImageIdExist?: boolean; + /** 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; } -/** 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[]; +/** 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 `platformRepositoryWorkflowsByRepositoryId` relation. */ + platformRepositoryWorkflowsByRepositoryId?: PlatformRepositoryToManyPlatformRepositoryWorkflowFilter; + /** `platformRepositoryWorkflowsByRepositoryId` exist. */ + platformRepositoryWorkflowsByRepositoryIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringTrgmFilter; + /** Filter by the object’s `requiredChecks` field. */ + requiredChecks?: StringListFilter; + /** 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 `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; +/** 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 `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 `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; +/** 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[][]; } -/** 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; +/** 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[]; } -/** 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; +/** 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[]; } -/** 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; +// ============ Payload/Return Types (for custom operations) ============ +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: 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 AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: 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 AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: 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 AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: 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 AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | 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 CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseAddEdgePayload { + clientMutationId?: string | null; + result?: string | 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 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; } -/** 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 DatabaseAddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCopyGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseCopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseCreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseCreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInitEmptyRepoPayload { + clientMutationId?: string | 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 DatabaseGraphInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseGraphInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseGraphInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: 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 type DatabaseGraphInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | 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 DatabaseGraphSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseGraphSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseGraphSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseGraphSetManyAndCommitPayload { + clientMutationId?: string | null; + databaseGraphCommitEdge?: DatabaseGraphCommitEdge | null; + result?: DatabaseGraphCommit | 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 DatabaseGraphSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + databaseGraphCommitEdge?: { + select: DatabaseGraphCommitEdgeSelect; + }; + result?: { + select: DatabaseGraphCommitSelect; + }; +}; +export interface DatabaseImportDefinitionsPayload { + clientMutationId?: string | 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 DatabaseImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface DatabaseImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseSaveGraphPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseSaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseStartExecutionPayload { + clientMutationId?: string | null; + result?: string | 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 DatabaseStartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface DatabaseValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 DatabaseValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: 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 type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: 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 type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | 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 InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** 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 InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | 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 InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInitEmptyRepoPayload { + clientMutationId?: string | 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 PlatformInfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | 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 PlatformInfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: 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; +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | 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 PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformInfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; +export interface PlatformResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: string | null; } -/** 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 PlatformResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformResourceInstallationsRollbackPayload { + clientMutationId?: string | 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 PlatformResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUninstallPayload { + clientMutationId?: string | 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) */ +export type PlatformResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type PlatformResourceInstallationsUpgradePayloadSelect = { + 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; - /** 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; + /** Whether provisioning succeeded */ + success: boolean; } -/** 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 ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: boolean; +}; +export interface ResourceInstallationsInstallPayload { + clientMutationId?: string | null; + result?: 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 type ResourceInstallationsInstallPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResourceInstallationsRollbackPayload { + clientMutationId?: string | 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 ResourceInstallationsRollbackPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUninstallPayload { + clientMutationId?: string | null; +} +export type ResourceInstallationsUninstallPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ResourceInstallationsUpgradePayload { + clientMutationId?: string | null; +} +export type ResourceInstallationsUpgradePayloadSelect = { + clientMutationId?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | 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 SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: 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 `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 SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | 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 SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | 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 StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +export type DeleteBuildStepPayloadSelect = { + buildStep?: { + select: BuildStepSelect; + }; + buildStepEdge?: { + select: BuildStepEdgeSelect; + }; + 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; +} +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; +} +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; +} +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; +} +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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; +} +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; +} +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; +} +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; +} +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; +} +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; +} +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; +} +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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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; } -/** 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 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 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 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; } -/** 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 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; +} +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; +} +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 `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 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 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 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; } -/** 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 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; } -// ============ Payload/Return Types (for custom operations) ============ -export interface AddEdgePayload { +export type DeleteFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + functionDeploymentEvent?: { + select: FunctionDeploymentEventSelect; + }; + functionDeploymentEventEdge?: { + select: FunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionExecutionLog` that was created by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type AddEdgePayloadSelect = { +export type CreateFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface UpdateFunctionExecutionLogPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionExecutionLog` that was updated by this mutation. */ + functionExecutionLog?: FunctionExecutionLog | null; + functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +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; +} +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; +} +export type UpdateFunctionGraphCommitPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; }; -export interface AddNodePayload { +export interface DeleteFunctionGraphCommitPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphCommit` that was deleted by this mutation. */ + functionGraphCommit?: FunctionGraphCommit | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -export type AddNodePayloadSelect = { +export type DeleteFunctionGraphCommitPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphCommit?: { + select: FunctionGraphCommitSelect; + }; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateFunctionGraphPayload { clientMutationId?: string | null; result?: string | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateFunctionGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CopyGraphPayload { +export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraph` that was updated by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -export type CopyGraphPayloadSelect = { +export type UpdateFunctionGraphPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeleteFunctionGraphPayload { clientMutationId?: string | null; + /** The `FunctionGraph` that was deleted by this mutation. */ + functionGraph?: FunctionGraph | null; + functionGraphEdge?: FunctionGraphEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeleteFunctionGraphPayloadSelect = { clientMutationId?: boolean; + functionGraph?: { + select: FunctionGraphSelect; + }; + functionGraphEdge?: { + select: FunctionGraphEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecution` that was created by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type CreateFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInitEmptyRepoPayload { +export interface UpdateFunctionGraphExecutionPayload { clientMutationId?: string | null; + /** The `FunctionGraphExecution` that was updated by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type InfraInitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInsertNodeAtPathPayload { +export interface DeleteFunctionGraphExecutionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecution` that was deleted by this mutation. */ + functionGraphExecution?: FunctionGraphExecution | null; + functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } -export type InfraInsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecution?: { + select: FunctionGraphExecutionSelect; + }; + functionGraphExecutionEdge?: { + select: FunctionGraphExecutionEdgeSelect; + }; }; -export interface InfraInsertNodesAtPathsPayload { +export interface CreateFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraInsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; }; -export interface InfraSetAndCommitPayload { +export interface UpdateFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraSetAndCommitPayloadSelect = { +export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; }; - result?: { - select: InfraCommitSelect; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; }; }; -export interface InfraSetDataAtPathPayload { +export interface DeleteFunctionGraphExecutionNodeStatePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export type InfraSetDataAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionNodeState?: { + select: FunctionGraphExecutionNodeStateSelect; + }; + functionGraphExecutionNodeStateEdge?: { + select: FunctionGraphExecutionNodeStateEdgeSelect; + }; }; -export interface InfraSetManyAndCommitPayload { +export interface CreateFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; - infraCommitEdge?: InfraCommitEdge | null; - result?: InfraCommit | null; + /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InfraSetManyAndCommitPayloadSelect = { +export type CreateFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; }; - result?: { - select: InfraCommitSelect; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; }; }; -export interface InitEmptyRepoPayload { +export interface UpdateFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; + /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface DeleteFunctionGraphExecutionOutputPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ + functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; + functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphExecutionOutputPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphExecutionOutput?: { + select: FunctionGraphExecutionOutputSelect; + }; + functionGraphExecutionOutputEdge?: { + select: FunctionGraphExecutionOutputEdgeSelect; + }; }; -export interface InsertNodesAtPathsPayload { +export interface CreateFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was created by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type InsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInitEmptyRepoPayload { +export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type PlatformInfraInitEmptyRepoPayloadSelect = { +export type UpdateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInsertNodeAtPathPayload { +export interface DeleteFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was deleted by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type PlatformInfraInsertNodeAtPathPayloadSelect = { +export type DeleteFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface PlatformInfraInsertNodesAtPathsPayload { +export interface CreateFunctionGraphRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraInsertNodesAtPathsPayloadSelect = { +export type CreateFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; }; -export interface PlatformInfraSetAndCommitPayload { +export interface UpdateFunctionGraphRefPayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `FunctionGraphRef` that was updated by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraSetAndCommitPayloadSelect = { +export type UpdateFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + functionGraphRef?: { + select: FunctionGraphRefSelect; }; - result?: { - select: PlatformInfraCommitSelect; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; }; }; -export interface PlatformInfraSetDataAtPathPayload { +export interface DeleteFunctionGraphRefPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphRef` that was deleted by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -export type PlatformInfraSetDataAtPathPayloadSelect = { +export type DeleteFunctionGraphRefPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphRef?: { + select: FunctionGraphRefSelect; + }; + functionGraphRefEdge?: { + select: FunctionGraphRefEdgeSelect; + }; }; -export interface PlatformInfraSetManyAndCommitPayload { +export interface CreateFunctionGraphStorePayload { clientMutationId?: string | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; - result?: PlatformInfraCommit | null; + /** The `FunctionGraphStore` that was created by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformInfraSetManyAndCommitPayloadSelect = { +export type CreateFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + functionGraphStore?: { + select: FunctionGraphStoreSelect; }; - result?: { - select: PlatformInfraCommitSelect; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; }; }; -export interface PlatformResourceInstallationsInstallPayload { +export interface UpdateFunctionGraphStorePayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphStore` that was updated by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformResourceInstallationsInstallPayloadSelect = { +export type UpdateFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; }; -export interface PlatformResourceInstallationsRollbackPayload { +export interface DeleteFunctionGraphStorePayload { clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -export type PlatformResourceInstallationsRollbackPayloadSelect = { +export type DeleteFunctionGraphStorePayloadSelect = { clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUninstallPayload { +export interface CreateFunctionInvocationAttemptPayload { clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was created by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type PlatformResourceInstallationsUninstallPayloadSelect = { +export type CreateFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -export interface PlatformResourceInstallationsUpgradePayload { +export interface UpdateFunctionInvocationAttemptPayload { clientMutationId?: string | null; + /** The `FunctionInvocationAttempt` that was updated by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type PlatformResourceInstallationsUpgradePayloadSelect = { +export type UpdateFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -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 DeleteFunctionInvocationAttemptPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ + functionInvocationAttempt?: FunctionInvocationAttempt | null; + functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; } -export type ResourceInstallationsInstallPayloadSelect = { +export type DeleteFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionInvocationAttempt?: { + select: FunctionInvocationAttemptSelect; + }; + functionInvocationAttemptEdge?: { + select: FunctionInvocationAttemptEdgeSelect; + }; }; -export interface ResourceInstallationsRollbackPayload { +export interface CreateFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was created by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsRollbackPayloadSelect = { +export type CreateFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface ResourceInstallationsUninstallPayload { +export interface UpdateFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was updated by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsUninstallPayloadSelect = { +export type UpdateFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface ResourceInstallationsUpgradePayload { +export interface DeleteFunctionInvocationPayload { clientMutationId?: string | null; + /** The `FunctionInvocation` that was deleted by this mutation. */ + functionInvocation?: FunctionInvocation | null; + functionInvocationEdge?: FunctionInvocationEdge | null; } -export type ResourceInstallationsUpgradePayloadSelect = { +export type DeleteFunctionInvocationPayloadSelect = { clientMutationId?: boolean; + functionInvocation?: { + select: FunctionInvocationSelect; + }; + functionInvocationEdge?: { + select: FunctionInvocationEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface CreateImagePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Image` that was created by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SaveGraphPayloadSelect = { +export type CreateImagePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; }; -export interface SetAndCommitPayload { +export interface UpdateImagePayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `Image` that was updated by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SetAndCommitPayloadSelect = { +export type UpdateImagePayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + image?: { + select: ImageSelect; }; - result?: { - select: FunctionGraphCommitSelect; + imageEdge?: { + select: ImageEdgeSelect; }; }; -export interface SetDataAtPathPayload { +export interface DeleteImagePayload { clientMutationId?: string | null; - result?: string | null; + /** The `Image` that was deleted by this mutation. */ + image?: Image | null; + imageEdge?: ImageEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type DeleteImagePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + image?: { + select: ImageSelect; + }; + imageEdge?: { + select: ImageEdgeSelect; + }; }; -export interface SetManyAndCommitPayload { +export interface CreateImageGrantPayload { clientMutationId?: string | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; - result?: FunctionGraphCommit | null; + /** The `ImageGrant` that was created by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type SetManyAndCommitPayloadSelect = { +export type CreateImageGrantPayloadSelect = { clientMutationId?: boolean; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + imageGrant?: { + select: ImageGrantSelect; }; - result?: { - select: FunctionGraphCommitSelect; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; }; }; -export interface StartExecutionPayload { +export interface UpdateImageGrantPayload { clientMutationId?: string | null; - result?: string | null; + /** The `ImageGrant` that was updated by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type StartExecutionPayloadSelect = { +export type UpdateImageGrantPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; }; -export interface ValidateFunctionGraphPayload { +export interface DeleteImageGrantPayload { clientMutationId?: string | null; - result?: boolean | null; + /** The `ImageGrant` that was deleted by this mutation. */ + imageGrant?: ImageGrant | null; + imageGrantEdge?: ImageGrantEdge | null; } -export type ValidateFunctionGraphPayloadSelect = { +export type DeleteImageGrantPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + imageGrant?: { + select: ImageGrantSelect; + }; + imageGrantEdge?: { + select: ImageGrantEdgeSelect; + }; }; -export interface CreateContentPresetPayload { +export interface CreateInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was created by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type CreateContentPresetPayloadSelect = { +export type CreateInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface UpdateContentPresetPayload { +export interface UpdateInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was updated by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type UpdateContentPresetPayloadSelect = { +export type UpdateInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface DeleteContentPresetPayload { +export interface DeleteInfraCommitPayload { clientMutationId?: string | null; - /** The `ContentPreset` that was deleted by this mutation. */ - contentPreset?: ContentPreset | null; - contentPresetEdge?: ContentPresetEdge | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; } -export type DeleteContentPresetPayloadSelect = { +export type DeleteInfraCommitPayloadSelect = { clientMutationId?: boolean; - contentPreset?: { - select: ContentPresetSelect; + infraCommit?: { + select: InfraCommitSelect; }; - contentPresetEdge?: { - select: ContentPresetEdgeSelect; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; }; }; -export interface CreateDbPresetPayload { +export interface CreateInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was created by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type CreateDbPresetPayloadSelect = { +export type CreateInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface UpdateDbPresetPayload { +export interface UpdateInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was updated by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type UpdateDbPresetPayloadSelect = { +export type UpdateInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface DeleteDbPresetPayload { +export interface DeleteInfraObjectPayload { clientMutationId?: string | null; - /** The `DbPreset` that was deleted by this mutation. */ - dbPreset?: DbPreset | null; - dbPresetEdge?: DbPresetEdge | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type DeleteDbPresetPayloadSelect = { +export type DeleteInfraObjectPayloadSelect = { clientMutationId?: boolean; - dbPreset?: { - select: DbPresetSelect; + infraObject?: { + select: InfraObjectSelect; }; - dbPresetEdge?: { - select: DbPresetEdgeSelect; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreateInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreateInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdateInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdateInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeleteInfraRefPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeleteInfraRefPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + infraRef?: { + select: InfraRefSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + infraRefEdge?: { + select: InfraRefEdgeSelect; }; }; -export interface CreateFunctionCapabilityBindingPayload { +export interface CreateInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was created by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type CreateFunctionCapabilityBindingPayloadSelect = { +export type CreateInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface UpdateFunctionCapabilityBindingPayload { +export interface UpdateInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was updated by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type UpdateFunctionCapabilityBindingPayloadSelect = { +export type UpdateInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface DeleteFunctionCapabilityBindingPayload { +export interface DeleteInfraStorePayload { clientMutationId?: string | null; - /** The `FunctionCapabilityBinding` that was deleted by this mutation. */ - functionCapabilityBinding?: FunctionCapabilityBinding | null; - functionCapabilityBindingEdge?: FunctionCapabilityBindingEdge | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -export type DeleteFunctionCapabilityBindingPayloadSelect = { +export type DeleteInfraStorePayloadSelect = { clientMutationId?: boolean; - functionCapabilityBinding?: { - select: FunctionCapabilityBindingSelect; + infraStore?: { + select: InfraStoreSelect; }; - functionCapabilityBindingEdge?: { - select: FunctionCapabilityBindingEdgeSelect; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; }; }; -export interface CreateFunctionDefinitionPayload { +export interface CreateIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was created by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type CreateFunctionDefinitionPayloadSelect = { +export type CreateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface UpdateFunctionDefinitionPayload { +export interface UpdateIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was updated by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type UpdateFunctionDefinitionPayloadSelect = { +export type UpdateIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface DeleteFunctionDefinitionPayload { +export interface DeleteIntegrationProviderPayload { clientMutationId?: string | null; - /** The `FunctionDefinition` that was deleted by this mutation. */ - functionDefinition?: FunctionDefinition | null; - functionDefinitionEdge?: FunctionDefinitionEdge | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; } -export type DeleteFunctionDefinitionPayloadSelect = { +export type DeleteIntegrationProviderPayloadSelect = { clientMutationId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; + integrationProvider?: { + select: IntegrationProviderSelect; }; - functionDefinitionEdge?: { - select: FunctionDefinitionEdgeSelect; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; }; }; -export interface CreateFunctionDeploymentPayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was created by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type CreateFunctionDeploymentPayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface UpdateFunctionDeploymentPayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was updated by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type UpdateFunctionDeploymentPayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface DeleteFunctionDeploymentPayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `FunctionDeployment` that was deleted by this mutation. */ - functionDeployment?: FunctionDeployment | null; - functionDeploymentEdge?: FunctionDeploymentEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type DeleteFunctionDeploymentPayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - functionDeployment?: { - select: FunctionDeploymentSelect; + namespace?: { + select: NamespaceSelect; }; - functionDeploymentEdge?: { - select: FunctionDeploymentEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface CreateFunctionDeploymentEventPayload { +export interface CreateNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was created by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type CreateFunctionDeploymentEventPayloadSelect = { +export type CreateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface UpdateFunctionDeploymentEventPayload { +export interface UpdateNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was updated by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type UpdateFunctionDeploymentEventPayloadSelect = { +export type UpdateNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface DeleteFunctionDeploymentEventPayload { +export interface DeleteNamespaceEventPayload { clientMutationId?: string | null; - /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ - functionDeploymentEvent?: FunctionDeploymentEvent | null; - functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; } -export type DeleteFunctionDeploymentEventPayloadSelect = { +export type DeleteNamespaceEventPayloadSelect = { clientMutationId?: boolean; - functionDeploymentEvent?: { - select: FunctionDeploymentEventSelect; + namespaceEvent?: { + select: NamespaceEventSelect; }; - functionDeploymentEventEdge?: { - select: FunctionDeploymentEventEdgeSelect; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; }; }; -export interface CreateFunctionExecutionLogPayload { +export interface CreatePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was created by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was created by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type CreateFunctionExecutionLogPayloadSelect = { +export type CreatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface UpdateFunctionExecutionLogPayload { +export interface UpdatePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was updated by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was updated by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type UpdateFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface DeleteFunctionExecutionLogPayload { +export interface DeletePlatformBuildPayload { clientMutationId?: string | null; - /** The `FunctionExecutionLog` that was deleted by this mutation. */ - functionExecutionLog?: FunctionExecutionLog | null; - functionExecutionLogEdge?: FunctionExecutionLogEdge | null; + /** The `PlatformBuild` that was deleted by this mutation. */ + platformBuild?: PlatformBuild | null; + platformBuildEdge?: PlatformBuildEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeletePlatformBuildPayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformBuild?: { + select: PlatformBuildSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformBuildEdge?: { + select: PlatformBuildEdgeSelect; }; }; -export interface CreateFunctionGraphCommitPayload { +export interface CreatePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was created by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was created by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type CreateFunctionGraphCommitPayloadSelect = { +export type CreatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface UpdateFunctionGraphCommitPayload { +export interface UpdatePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was updated by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was updated by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type UpdateFunctionGraphCommitPayloadSelect = { +export type UpdatePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface DeleteFunctionGraphCommitPayload { +export interface DeletePlatformBuildStepPayload { clientMutationId?: string | null; - /** The `FunctionGraphCommit` that was deleted by this mutation. */ - functionGraphCommit?: FunctionGraphCommit | null; - functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + /** The `PlatformBuildStep` that was deleted by this mutation. */ + platformBuildStep?: PlatformBuildStep | null; + platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export type DeleteFunctionGraphCommitPayloadSelect = { +export type DeletePlatformBuildStepPayloadSelect = { clientMutationId?: boolean; - functionGraphCommit?: { - select: FunctionGraphCommitSelect; + platformBuildStep?: { + select: PlatformBuildStepSelect; }; - functionGraphCommitEdge?: { - select: FunctionGraphCommitEdgeSelect; + platformBuildStepEdge?: { + select: PlatformBuildStepEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { +export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type CreateFunctionGraphPayloadSelect = { +export type CreatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; }; -export interface UpdateFunctionGraphPayload { +export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was updated by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type UpdateFunctionGraphPayloadSelect = { +export type UpdatePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface DeleteFunctionGraphPayload { +export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraph` that was deleted by this mutation. */ - functionGraph?: FunctionGraph | null; - functionGraphEdge?: FunctionGraphEdge | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -export type DeleteFunctionGraphPayloadSelect = { +export type DeletePlatformFunctionApiBindingPayloadSelect = { clientMutationId?: boolean; - functionGraph?: { - select: FunctionGraphSelect; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; }; - functionGraphEdge?: { - select: FunctionGraphEdgeSelect; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionPayload { +export interface CreatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was created by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type CreateFunctionGraphExecutionPayloadSelect = { +export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionPayload { +export interface UpdatePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was updated by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type UpdateFunctionGraphExecutionPayloadSelect = { +export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionPayload { +export interface DeletePlatformFunctionCapabilityBindingPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecution` that was deleted by this mutation. */ - functionGraphExecution?: FunctionGraphExecution | null; - functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; + /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ + platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; + platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; } -export type DeleteFunctionGraphExecutionPayloadSelect = { +export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { clientMutationId?: boolean; - functionGraphExecution?: { - select: FunctionGraphExecutionSelect; + platformFunctionCapabilityBinding?: { + select: PlatformFunctionCapabilityBindingSelect; }; - functionGraphExecutionEdge?: { - select: FunctionGraphExecutionEdgeSelect; + platformFunctionCapabilityBindingEdge?: { + select: PlatformFunctionCapabilityBindingEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type CreateFunctionGraphExecutionNodeStatePayloadSelect = { +export type CreatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionNodeStatePayload { +export interface UpdatePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was updated by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type UpdateFunctionGraphExecutionNodeStatePayloadSelect = { +export type UpdatePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionNodeStatePayload { +export interface DeletePlatformFunctionDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was deleted by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; } -export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { +export type DeletePlatformFunctionDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionNodeState?: { - select: FunctionGraphExecutionNodeStateSelect; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; }; - functionGraphExecutionNodeStateEdge?: { - select: FunctionGraphExecutionNodeStateEdgeSelect; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; }; }; -export interface CreateFunctionGraphExecutionOutputPayload { +export interface CreatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was created by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type CreateFunctionGraphExecutionOutputPayloadSelect = { +export type CreatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface UpdateFunctionGraphExecutionOutputPayload { +export interface UpdatePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was updated by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type UpdateFunctionGraphExecutionOutputPayloadSelect = { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface DeleteFunctionGraphExecutionOutputPayload { +export interface DeletePlatformFunctionDeploymentPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionOutput` that was deleted by this mutation. */ - functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; - functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -export type DeleteFunctionGraphExecutionOutputPayloadSelect = { +export type DeletePlatformFunctionDeploymentPayloadSelect = { clientMutationId?: boolean; - functionGraphExecutionOutput?: { - select: FunctionGraphExecutionOutputSelect; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; }; - functionGraphExecutionOutputEdge?: { - select: FunctionGraphExecutionOutputEdgeSelect; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; }; }; -export interface CreateFunctionGraphObjectPayload { +export interface CreatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdatePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeletePlatformFunctionDeploymentEventPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; }; }; -export interface CreateFunctionGraphRefPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was created by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateFunctionGraphRefPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateFunctionGraphRefPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was updated by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateFunctionGraphRefPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteFunctionGraphRefPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteFunctionGraphRefPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface CreateFunctionGraphStorePayload { +export interface CreatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type CreateFunctionGraphStorePayloadSelect = { +export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface UpdateFunctionGraphStorePayload { +export interface UpdatePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type UpdateFunctionGraphStorePayloadSelect = { +export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface DeleteFunctionGraphStorePayload { +export interface DeletePlatformFunctionInvocationAttemptPayload { clientMutationId?: string | null; - /** The `FunctionGraphStore` that was deleted by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; + /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ + platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; + platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; } -export type DeleteFunctionGraphStorePayloadSelect = { +export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; + platformFunctionInvocationAttempt?: { + select: PlatformFunctionInvocationAttemptSelect; }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; + platformFunctionInvocationAttemptEdge?: { + select: PlatformFunctionInvocationAttemptEdgeSelect; }; }; -export interface CreateFunctionInvocationAttemptPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was created by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateFunctionInvocationAttemptPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was updated by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteFunctionInvocationAttemptPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `FunctionInvocationAttempt` that was deleted by this mutation. */ - functionInvocationAttempt?: FunctionInvocationAttempt | null; - functionInvocationAttemptEdge?: FunctionInvocationAttemptEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - functionInvocationAttempt?: { - select: FunctionInvocationAttemptSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - functionInvocationAttemptEdge?: { - select: FunctionInvocationAttemptEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface CreateFunctionInvocationPayload { +export interface CreatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was created by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was created by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type CreateFunctionInvocationPayloadSelect = { +export type CreatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface UpdateFunctionInvocationPayload { +export interface UpdatePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was updated by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was updated by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type UpdateFunctionInvocationPayloadSelect = { +export type UpdatePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface DeleteFunctionInvocationPayload { +export interface DeletePlatformImagePayload { clientMutationId?: string | null; - /** The `FunctionInvocation` that was deleted by this mutation. */ - functionInvocation?: FunctionInvocation | null; - functionInvocationEdge?: FunctionInvocationEdge | null; + /** The `PlatformImage` that was deleted by this mutation. */ + platformImage?: PlatformImage | null; + platformImageEdge?: PlatformImageEdge | null; } -export type DeleteFunctionInvocationPayloadSelect = { +export type DeletePlatformImagePayloadSelect = { clientMutationId?: boolean; - functionInvocation?: { - select: FunctionInvocationSelect; + platformImage?: { + select: PlatformImageSelect; }; - functionInvocationEdge?: { - select: FunctionInvocationEdgeSelect; + platformImageEdge?: { + select: PlatformImageEdgeSelect; }; }; -export interface CreateInfraCommitPayload { +export interface CreatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was created by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was created by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type CreateInfraCommitPayloadSelect = { +export type CreatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface UpdateInfraCommitPayload { +export interface UpdatePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was updated by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was updated by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type UpdateInfraCommitPayloadSelect = { +export type UpdatePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface DeleteInfraCommitPayload { +export interface DeletePlatformImageGrantPayload { clientMutationId?: string | null; - /** The `InfraCommit` that was deleted by this mutation. */ - infraCommit?: InfraCommit | null; - infraCommitEdge?: InfraCommitEdge | null; + /** The `PlatformImageGrant` that was deleted by this mutation. */ + platformImageGrant?: PlatformImageGrant | null; + platformImageGrantEdge?: PlatformImageGrantEdge | null; } -export type DeleteInfraCommitPayloadSelect = { +export type DeletePlatformImageGrantPayloadSelect = { clientMutationId?: boolean; - infraCommit?: { - select: InfraCommitSelect; + platformImageGrant?: { + select: PlatformImageGrantSelect; }; - infraCommitEdge?: { - select: InfraCommitEdgeSelect; + platformImageGrantEdge?: { + select: PlatformImageGrantEdgeSelect; }; }; -export interface CreateInfraObjectPayload { +export interface CreatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was created by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was created by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type CreateInfraObjectPayloadSelect = { +export type CreatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface UpdateInfraObjectPayload { +export interface UpdatePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was updated by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was updated by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type UpdateInfraObjectPayloadSelect = { +export type UpdatePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface DeleteInfraObjectPayload { +export interface DeletePlatformInfraCommitPayload { clientMutationId?: string | null; - /** The `InfraObject` that was deleted by this mutation. */ - infraObject?: InfraObject | null; - infraObjectEdge?: InfraObjectEdge | null; + /** The `PlatformInfraCommit` that was deleted by this mutation. */ + platformInfraCommit?: PlatformInfraCommit | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; } -export type DeleteInfraObjectPayloadSelect = { +export type DeletePlatformInfraCommitPayloadSelect = { clientMutationId?: boolean; - infraObject?: { - select: InfraObjectSelect; + platformInfraCommit?: { + select: PlatformInfraCommitSelect; }; - infraObjectEdge?: { - select: InfraObjectEdgeSelect; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; }; }; -export interface CreateInfraRefPayload { +export interface CreatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was created by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was created by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type CreateInfraRefPayloadSelect = { +export type CreatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface UpdateInfraRefPayload { +export interface UpdatePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was updated by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was updated by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type UpdateInfraRefPayloadSelect = { +export type UpdatePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface DeleteInfraRefPayload { +export interface DeletePlatformInfraObjectPayload { clientMutationId?: string | null; - /** The `InfraRef` that was deleted by this mutation. */ - infraRef?: InfraRef | null; - infraRefEdge?: InfraRefEdge | null; + /** The `PlatformInfraObject` that was deleted by this mutation. */ + platformInfraObject?: PlatformInfraObject | null; + platformInfraObjectEdge?: PlatformInfraObjectEdge | null; } -export type DeleteInfraRefPayloadSelect = { +export type DeletePlatformInfraObjectPayloadSelect = { clientMutationId?: boolean; - infraRef?: { - select: InfraRefSelect; + platformInfraObject?: { + select: PlatformInfraObjectSelect; }; - infraRefEdge?: { - select: InfraRefEdgeSelect; + platformInfraObjectEdge?: { + select: PlatformInfraObjectEdgeSelect; }; }; -export interface CreateInfraStorePayload { +export interface CreatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was created by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was created by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type CreateInfraStorePayloadSelect = { +export type CreatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface UpdateInfraStorePayload { +export interface UpdatePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was updated by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was updated by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type UpdateInfraStorePayloadSelect = { +export type UpdatePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface DeleteInfraStorePayload { +export interface DeletePlatformInfraRefPayload { clientMutationId?: string | null; - /** The `InfraStore` that was deleted by this mutation. */ - infraStore?: InfraStore | null; - infraStoreEdge?: InfraStoreEdge | null; + /** The `PlatformInfraRef` that was deleted by this mutation. */ + platformInfraRef?: PlatformInfraRef | null; + platformInfraRefEdge?: PlatformInfraRefEdge | null; } -export type DeleteInfraStorePayloadSelect = { +export type DeletePlatformInfraRefPayloadSelect = { clientMutationId?: boolean; - infraStore?: { - select: InfraStoreSelect; + platformInfraRef?: { + select: PlatformInfraRefSelect; }; - infraStoreEdge?: { - select: InfraStoreEdgeSelect; + platformInfraRefEdge?: { + select: PlatformInfraRefEdgeSelect; }; }; -export interface CreateIntegrationProviderPayload { +export interface CreatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was created by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was created by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type CreateIntegrationProviderPayloadSelect = { +export type CreatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface UpdateIntegrationProviderPayload { +export interface UpdatePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was updated by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was updated by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type UpdateIntegrationProviderPayloadSelect = { +export type UpdatePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface DeleteIntegrationProviderPayload { +export interface DeletePlatformInfraStorePayload { clientMutationId?: string | null; - /** The `IntegrationProvider` that was deleted by this mutation. */ - integrationProvider?: IntegrationProvider | null; - integrationProviderEdge?: IntegrationProviderEdge | null; + /** The `PlatformInfraStore` that was deleted by this mutation. */ + platformInfraStore?: PlatformInfraStore | null; + platformInfraStoreEdge?: PlatformInfraStoreEdge | null; } -export type DeleteIntegrationProviderPayloadSelect = { +export type DeletePlatformInfraStorePayloadSelect = { clientMutationId?: boolean; - integrationProvider?: { - select: IntegrationProviderSelect; + platformInfraStore?: { + select: PlatformInfraStoreSelect; }; - integrationProviderEdge?: { - select: IntegrationProviderEdgeSelect; + platformInfraStoreEdge?: { + select: PlatformInfraStoreEdgeSelect; }; }; -export interface CreateNamespacePayload { +export interface CreatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was created by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was created by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type CreateNamespacePayloadSelect = { +export type CreatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface UpdateNamespacePayload { +export interface UpdatePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was updated by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was updated by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type UpdateNamespacePayloadSelect = { +export type UpdatePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface DeleteNamespacePayload { +export interface DeletePlatformK8sResourceKindPayload { clientMutationId?: string | null; - /** The `Namespace` that was deleted by this mutation. */ - namespace?: Namespace | null; - namespaceEdge?: NamespaceEdge | null; + /** The `PlatformK8sResourceKind` that was deleted by this mutation. */ + platformK8sResourceKind?: PlatformK8sResourceKind | null; + platformK8sResourceKindEdge?: PlatformK8sResourceKindEdge | null; } -export type DeleteNamespacePayloadSelect = { +export type DeletePlatformK8sResourceKindPayloadSelect = { clientMutationId?: boolean; - namespace?: { - select: NamespaceSelect; + platformK8sResourceKind?: { + select: PlatformK8sResourceKindSelect; }; - namespaceEdge?: { - select: NamespaceEdgeSelect; + platformK8sResourceKindEdge?: { + select: PlatformK8sResourceKindEdgeSelect; }; }; -export interface CreateNamespaceEventPayload { +export interface CreatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was created by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was created by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type CreateNamespaceEventPayloadSelect = { +export type CreatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface UpdateNamespaceEventPayload { +export interface UpdatePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was updated by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was updated by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type UpdateNamespaceEventPayloadSelect = { +export type UpdatePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface DeleteNamespaceEventPayload { +export interface DeletePlatformK8sSpecRulePayload { clientMutationId?: string | null; - /** The `NamespaceEvent` that was deleted by this mutation. */ - namespaceEvent?: NamespaceEvent | null; - namespaceEventEdge?: NamespaceEventEdge | null; + /** The `PlatformK8sSpecRule` that was deleted by this mutation. */ + platformK8sSpecRule?: PlatformK8sSpecRule | null; + platformK8sSpecRuleEdge?: PlatformK8sSpecRuleEdge | null; } -export type DeleteNamespaceEventPayloadSelect = { +export type DeletePlatformK8sSpecRulePayloadSelect = { clientMutationId?: boolean; - namespaceEvent?: { - select: NamespaceEventSelect; + platformK8sSpecRule?: { + select: PlatformK8sSpecRuleSelect; }; - namespaceEventEdge?: { - select: NamespaceEventEdgeSelect; + platformK8sSpecRuleEdge?: { + select: PlatformK8sSpecRuleEdgeSelect; }; }; -export interface CreatePlatformFunctionApiBindingPayload { +export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was created by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type CreatePlatformFunctionApiBindingPayloadSelect = { +export type CreatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface UpdatePlatformFunctionApiBindingPayload { +export interface UpdatePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type UpdatePlatformFunctionApiBindingPayloadSelect = { +export type UpdatePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface DeletePlatformFunctionApiBindingPayload { +export interface DeletePlatformNamespacePayload { clientMutationId?: string | null; - /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ - platformFunctionApiBinding?: PlatformFunctionApiBinding | null; - platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export type DeletePlatformFunctionApiBindingPayloadSelect = { +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - platformFunctionApiBinding?: { - select: PlatformFunctionApiBindingSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - platformFunctionApiBindingEdge?: { - select: PlatformFunctionApiBindingEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; -export interface CreatePlatformFunctionCapabilityBindingPayload { +export interface CreatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was created by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type CreatePlatformFunctionCapabilityBindingPayloadSelect = { +export type CreatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface UpdatePlatformFunctionCapabilityBindingPayload { +export interface UpdatePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was updated by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type UpdatePlatformFunctionCapabilityBindingPayloadSelect = { +export type UpdatePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface DeletePlatformFunctionCapabilityBindingPayload { +export interface DeletePlatformNamespaceEventPayload { clientMutationId?: string | null; - /** The `PlatformFunctionCapabilityBinding` that was deleted by this mutation. */ - platformFunctionCapabilityBinding?: PlatformFunctionCapabilityBinding | null; - platformFunctionCapabilityBindingEdge?: PlatformFunctionCapabilityBindingEdge | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } -export type DeletePlatformFunctionCapabilityBindingPayloadSelect = { +export type DeletePlatformNamespaceEventPayloadSelect = { clientMutationId?: boolean; - platformFunctionCapabilityBinding?: { - select: PlatformFunctionCapabilityBindingSelect; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; }; - platformFunctionCapabilityBindingEdge?: { - select: PlatformFunctionCapabilityBindingEdgeSelect; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; }; }; -export interface CreatePlatformFunctionDefinitionPayload { +export interface CreatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was created by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was created by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type CreatePlatformFunctionDefinitionPayloadSelect = { +export type CreatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface UpdatePlatformFunctionDefinitionPayload { +export interface UpdatePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was updated by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was updated by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type UpdatePlatformFunctionDefinitionPayloadSelect = { +export type UpdatePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface DeletePlatformFunctionDefinitionPayload { +export interface DeletePlatformProposalCommentPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ - platformFunctionDefinition?: PlatformFunctionDefinition | null; - platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; + /** The `PlatformProposalComment` that was deleted by this mutation. */ + platformProposalComment?: PlatformProposalComment | null; + platformProposalCommentEdge?: PlatformProposalCommentEdge | null; } -export type DeletePlatformFunctionDefinitionPayloadSelect = { +export type DeletePlatformProposalCommentPayloadSelect = { clientMutationId?: boolean; - platformFunctionDefinition?: { - select: PlatformFunctionDefinitionSelect; + platformProposalComment?: { + select: PlatformProposalCommentSelect; }; - platformFunctionDefinitionEdge?: { - select: PlatformFunctionDefinitionEdgeSelect; + platformProposalCommentEdge?: { + select: PlatformProposalCommentEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentPayload { +export interface CreatePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was created by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was created by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type CreatePlatformFunctionDeploymentPayloadSelect = { +export type CreatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentPayload { +export interface UpdatePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was updated by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was updated by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type UpdatePlatformFunctionDeploymentPayloadSelect = { +export type UpdatePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentPayload { +export interface DeletePlatformProposalPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ - platformFunctionDeployment?: PlatformFunctionDeployment | null; - platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; + /** The `PlatformProposal` that was deleted by this mutation. */ + platformProposal?: PlatformProposal | null; + platformProposalEdge?: PlatformProposalEdge | null; } -export type DeletePlatformFunctionDeploymentPayloadSelect = { +export type DeletePlatformProposalPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeployment?: { - select: PlatformFunctionDeploymentSelect; + platformProposal?: { + select: PlatformProposalSelect; }; - platformFunctionDeploymentEdge?: { - select: PlatformFunctionDeploymentEdgeSelect; + platformProposalEdge?: { + select: PlatformProposalEdgeSelect; }; }; -export interface CreatePlatformFunctionDeploymentEventPayload { +export interface CreatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was created by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type CreatePlatformFunctionDeploymentEventPayloadSelect = { +export type CreatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface UpdatePlatformFunctionDeploymentEventPayload { +export interface UpdatePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was updated by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { +export type UpdatePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface DeletePlatformFunctionDeploymentEventPayload { +export interface DeletePlatformProposalFileViewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ - platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; - platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; + /** The `PlatformProposalFileView` that was deleted by this mutation. */ + platformProposalFileView?: PlatformProposalFileView | null; + platformProposalFileViewEdge?: PlatformProposalFileViewEdge | null; } -export type DeletePlatformFunctionDeploymentEventPayloadSelect = { +export type DeletePlatformProposalFileViewPayloadSelect = { clientMutationId?: boolean; - platformFunctionDeploymentEvent?: { - select: PlatformFunctionDeploymentEventSelect; + platformProposalFileView?: { + select: PlatformProposalFileViewSelect; }; - platformFunctionDeploymentEventEdge?: { - select: PlatformFunctionDeploymentEventEdgeSelect; + platformProposalFileViewEdge?: { + select: PlatformProposalFileViewEdgeSelect; }; }; -export interface CreatePlatformFunctionExecutionLogPayload { +export interface CreatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was created by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type CreatePlatformFunctionExecutionLogPayloadSelect = { +export type CreatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface UpdatePlatformFunctionExecutionLogPayload { +export interface UpdatePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was updated by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type UpdatePlatformFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface DeletePlatformFunctionExecutionLogPayload { +export interface DeletePlatformProposalReactionPayload { clientMutationId?: string | null; - /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ - platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; - platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; + /** The `PlatformProposalReaction` that was deleted by this mutation. */ + platformProposalReaction?: PlatformProposalReaction | null; + platformProposalReactionEdge?: PlatformProposalReactionEdge | null; } -export type DeletePlatformFunctionExecutionLogPayloadSelect = { +export type DeletePlatformProposalReactionPayloadSelect = { clientMutationId?: boolean; - platformFunctionExecutionLog?: { - select: PlatformFunctionExecutionLogSelect; + platformProposalReaction?: { + select: PlatformProposalReactionSelect; }; - platformFunctionExecutionLogEdge?: { - select: PlatformFunctionExecutionLogEdgeSelect; + platformProposalReactionEdge?: { + select: PlatformProposalReactionEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationAttemptPayload { +export interface CreatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was created by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was created by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type CreatePlatformFunctionInvocationAttemptPayloadSelect = { +export type CreatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationAttemptPayload { +export interface UpdatePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was updated by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was updated by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type UpdatePlatformFunctionInvocationAttemptPayloadSelect = { +export type UpdatePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationAttemptPayload { +export interface DeletePlatformProposalReviewPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocationAttempt` that was deleted by this mutation. */ - platformFunctionInvocationAttempt?: PlatformFunctionInvocationAttempt | null; - platformFunctionInvocationAttemptEdge?: PlatformFunctionInvocationAttemptEdge | null; + /** The `PlatformProposalReview` that was deleted by this mutation. */ + platformProposalReview?: PlatformProposalReview | null; + platformProposalReviewEdge?: PlatformProposalReviewEdge | null; } -export type DeletePlatformFunctionInvocationAttemptPayloadSelect = { +export type DeletePlatformProposalReviewPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocationAttempt?: { - select: PlatformFunctionInvocationAttemptSelect; + platformProposalReview?: { + select: PlatformProposalReviewSelect; }; - platformFunctionInvocationAttemptEdge?: { - select: PlatformFunctionInvocationAttemptEdgeSelect; + platformProposalReviewEdge?: { + select: PlatformProposalReviewEdgeSelect; }; }; -export interface CreatePlatformFunctionInvocationPayload { +export interface CreatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was created by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was created by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type CreatePlatformFunctionInvocationPayloadSelect = { +export type CreatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface UpdatePlatformFunctionInvocationPayload { +export interface UpdatePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was updated by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was updated by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type UpdatePlatformFunctionInvocationPayloadSelect = { +export type UpdatePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface DeletePlatformFunctionInvocationPayload { +export interface DeletePlatformProposalsChunkPayload { clientMutationId?: string | null; - /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ - platformFunctionInvocation?: PlatformFunctionInvocation | null; - platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; + /** The `PlatformProposalsChunk` that was deleted by this mutation. */ + platformProposalsChunk?: PlatformProposalsChunk | null; + platformProposalsChunkEdge?: PlatformProposalsChunkEdge | null; } -export type DeletePlatformFunctionInvocationPayloadSelect = { +export type DeletePlatformProposalsChunkPayloadSelect = { clientMutationId?: boolean; - platformFunctionInvocation?: { - select: PlatformFunctionInvocationSelect; + platformProposalsChunk?: { + select: PlatformProposalsChunkSelect; }; - platformFunctionInvocationEdge?: { - select: PlatformFunctionInvocationEdgeSelect; + platformProposalsChunkEdge?: { + select: PlatformProposalsChunkEdgeSelect; }; }; -export interface CreatePlatformInfraCommitPayload { +export interface CreatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was created by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was created by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type CreatePlatformInfraCommitPayloadSelect = { +export type CreatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface UpdatePlatformInfraCommitPayload { +export interface UpdatePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was updated by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was updated by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type UpdatePlatformInfraCommitPayloadSelect = { +export type UpdatePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface DeletePlatformInfraCommitPayload { +export interface DeletePlatformRegistryBindingPayload { clientMutationId?: string | null; - /** The `PlatformInfraCommit` that was deleted by this mutation. */ - platformInfraCommit?: PlatformInfraCommit | null; - platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + /** The `PlatformRegistryBinding` that was deleted by this mutation. */ + platformRegistryBinding?: PlatformRegistryBinding | null; + platformRegistryBindingEdge?: PlatformRegistryBindingEdge | null; } -export type DeletePlatformInfraCommitPayloadSelect = { +export type DeletePlatformRegistryBindingPayloadSelect = { clientMutationId?: boolean; - platformInfraCommit?: { - select: PlatformInfraCommitSelect; + platformRegistryBinding?: { + select: PlatformRegistryBindingSelect; }; - platformInfraCommitEdge?: { - select: PlatformInfraCommitEdgeSelect; + platformRegistryBindingEdge?: { + select: PlatformRegistryBindingEdgeSelect; }; }; -export interface CreatePlatformInfraObjectPayload { +export interface CreatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was created by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was created by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type CreatePlatformInfraObjectPayloadSelect = { +export type CreatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface UpdatePlatformInfraObjectPayload { +export interface UpdatePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was updated by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was updated by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type UpdatePlatformInfraObjectPayloadSelect = { +export type UpdatePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface DeletePlatformInfraObjectPayload { +export interface DeletePlatformRegistryPayload { clientMutationId?: string | null; - /** The `PlatformInfraObject` that was deleted by this mutation. */ - platformInfraObject?: PlatformInfraObject | null; - platformInfraObjectEdge?: PlatformInfraObjectEdge | null; + /** The `PlatformRegistry` that was deleted by this mutation. */ + platformRegistry?: PlatformRegistry | null; + platformRegistryEdge?: PlatformRegistryEdge | null; } -export type DeletePlatformInfraObjectPayloadSelect = { +export type DeletePlatformRegistryPayloadSelect = { clientMutationId?: boolean; - platformInfraObject?: { - select: PlatformInfraObjectSelect; + platformRegistry?: { + select: PlatformRegistrySelect; }; - platformInfraObjectEdge?: { - select: PlatformInfraObjectEdgeSelect; + platformRegistryEdge?: { + select: PlatformRegistryEdgeSelect; }; }; -export interface CreatePlatformInfraRefPayload { +export interface CreatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was created by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformRegistryGrant` that was created by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type CreatePlatformInfraRefPayloadSelect = { +export type CreatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface UpdatePlatformInfraRefPayload { +export interface UpdatePlatformRegistryGrantPayload { clientMutationId?: string | null; - /** The `PlatformInfraRef` that was updated by this mutation. */ - platformInfraRef?: PlatformInfraRef | null; - platformInfraRefEdge?: PlatformInfraRefEdge | null; + /** The `PlatformRegistryGrant` that was updated by this mutation. */ + platformRegistryGrant?: PlatformRegistryGrant | null; + platformRegistryGrantEdge?: PlatformRegistryGrantEdge | null; } -export type UpdatePlatformInfraRefPayloadSelect = { +export type UpdatePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -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 type DeletePlatformInfraRefPayloadSelect = { +export type DeletePlatformRegistryGrantPayloadSelect = { clientMutationId?: boolean; - platformInfraRef?: { - select: PlatformInfraRefSelect; + platformRegistryGrant?: { + select: PlatformRegistryGrantSelect; }; - platformInfraRefEdge?: { - select: PlatformInfraRefEdgeSelect; + platformRegistryGrantEdge?: { + select: PlatformRegistryGrantEdgeSelect; }; }; -export interface CreatePlatformInfraStorePayload { +export interface CreatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was created by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `PlatformRepository` that was created by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type CreatePlatformInfraStorePayloadSelect = { +export type CreatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface UpdatePlatformInfraStorePayload { +export interface UpdatePlatformRepositoryPayload { clientMutationId?: string | null; - /** The `PlatformInfraStore` that was updated by this mutation. */ - platformInfraStore?: PlatformInfraStore | null; - platformInfraStoreEdge?: PlatformInfraStoreEdge | null; + /** The `PlatformRepository` that was updated by this mutation. */ + platformRepository?: PlatformRepository | null; + platformRepositoryEdge?: PlatformRepositoryEdge | null; } -export type UpdatePlatformInfraStorePayloadSelect = { +export type UpdatePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -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 type DeletePlatformInfraStorePayloadSelect = { +export type DeletePlatformRepositoryPayloadSelect = { clientMutationId?: boolean; - platformInfraStore?: { - select: PlatformInfraStoreSelect; + platformRepository?: { + select: PlatformRepositorySelect; }; - platformInfraStoreEdge?: { - select: PlatformInfraStoreEdgeSelect; + platformRepositoryEdge?: { + select: PlatformRepositoryEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was created by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdatePlatformRepositoryEventPayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `PlatformRepositoryEvent` that was updated by this mutation. */ + platformRepositoryEvent?: PlatformRepositoryEvent | null; + platformRepositoryEventEdge?: PlatformRepositoryEventEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdatePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -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 type DeletePlatformNamespacePayloadSelect = { +export type DeletePlatformRepositoryEventPayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + platformRepositoryEvent?: { + select: PlatformRepositoryEventSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + platformRepositoryEventEdge?: { + select: PlatformRepositoryEventEdgeSelect; }; }; -export interface CreatePlatformNamespaceEventPayload { +export interface CreatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was created by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type CreatePlatformNamespaceEventPayloadSelect = { +export type CreatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdatePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was updated by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type UpdatePlatformNamespaceEventPayloadSelect = { +export type UpdatePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; -export interface DeletePlatformNamespaceEventPayload { +export interface DeletePlatformRepositoryWorkflowPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformRepositoryWorkflow` that was deleted by this mutation. */ + platformRepositoryWorkflow?: PlatformRepositoryWorkflow | null; + platformRepositoryWorkflowEdge?: PlatformRepositoryWorkflowEdge | null; } -export type DeletePlatformNamespaceEventPayloadSelect = { +export type DeletePlatformRepositoryWorkflowPayloadSelect = { clientMutationId?: boolean; - platformNamespaceEvent?: { - select: PlatformNamespaceEventSelect; + platformRepositoryWorkflow?: { + select: PlatformRepositoryWorkflowSelect; }; - platformNamespaceEventEdge?: { - select: PlatformNamespaceEventEdgeSelect; + platformRepositoryWorkflowEdge?: { + select: PlatformRepositoryWorkflowEdgeSelect; }; }; export interface CreatePlatformResourcePayload { @@ -16882,11 +30998,551 @@ export interface DeletePlatformWebhookEventPayload { } export type DeletePlatformWebhookEventPayloadSelect = { clientMutationId?: boolean; - platformWebhookEvent?: { - select: PlatformWebhookEventSelect; + platformWebhookEvent?: { + select: PlatformWebhookEventSelect; + }; + platformWebhookEventEdge?: { + select: PlatformWebhookEventEdgeSelect; + }; +}; +export interface CreateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was created by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type CreateProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface UpdateProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was updated by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type UpdateProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface DeleteProposalCommentPayload { + clientMutationId?: string | null; + /** The `ProposalComment` that was deleted by this mutation. */ + proposalComment?: ProposalComment | null; + proposalCommentEdge?: ProposalCommentEdge | null; +} +export type DeleteProposalCommentPayloadSelect = { + clientMutationId?: boolean; + proposalComment?: { + select: ProposalCommentSelect; + }; + proposalCommentEdge?: { + select: ProposalCommentEdgeSelect; + }; +}; +export interface CreateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was created by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type CreateProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface UpdateProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was updated by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type UpdateProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface DeleteProposalPayload { + clientMutationId?: string | null; + /** The `Proposal` that was deleted by this mutation. */ + proposal?: Proposal | null; + proposalEdge?: ProposalEdge | null; +} +export type DeleteProposalPayloadSelect = { + clientMutationId?: boolean; + proposal?: { + select: ProposalSelect; + }; + proposalEdge?: { + select: ProposalEdgeSelect; + }; +}; +export interface CreateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was created by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type CreateProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface UpdateProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was updated by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type UpdateProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface DeleteProposalFileViewPayload { + clientMutationId?: string | null; + /** The `ProposalFileView` that was deleted by this mutation. */ + proposalFileView?: ProposalFileView | null; + proposalFileViewEdge?: ProposalFileViewEdge | null; +} +export type DeleteProposalFileViewPayloadSelect = { + clientMutationId?: boolean; + proposalFileView?: { + select: ProposalFileViewSelect; + }; + proposalFileViewEdge?: { + select: ProposalFileViewEdgeSelect; + }; +}; +export interface CreateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was created by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type CreateProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface UpdateProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was updated by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type UpdateProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface DeleteProposalReactionPayload { + clientMutationId?: string | null; + /** The `ProposalReaction` that was deleted by this mutation. */ + proposalReaction?: ProposalReaction | null; + proposalReactionEdge?: ProposalReactionEdge | null; +} +export type DeleteProposalReactionPayloadSelect = { + clientMutationId?: boolean; + proposalReaction?: { + select: ProposalReactionSelect; + }; + proposalReactionEdge?: { + select: ProposalReactionEdgeSelect; + }; +}; +export interface CreateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was created by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type CreateProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface UpdateProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was updated by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type UpdateProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface DeleteProposalReviewPayload { + clientMutationId?: string | null; + /** The `ProposalReview` that was deleted by this mutation. */ + proposalReview?: ProposalReview | null; + proposalReviewEdge?: ProposalReviewEdge | null; +} +export type DeleteProposalReviewPayloadSelect = { + clientMutationId?: boolean; + proposalReview?: { + select: ProposalReviewSelect; + }; + proposalReviewEdge?: { + select: ProposalReviewEdgeSelect; + }; +}; +export interface CreateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was created by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type CreateProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface UpdateProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was updated by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type UpdateProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface DeleteProposalsChunkPayload { + clientMutationId?: string | null; + /** The `ProposalsChunk` that was deleted by this mutation. */ + proposalsChunk?: ProposalsChunk | null; + proposalsChunkEdge?: ProposalsChunkEdge | null; +} +export type DeleteProposalsChunkPayloadSelect = { + clientMutationId?: boolean; + proposalsChunk?: { + select: ProposalsChunkSelect; + }; + proposalsChunkEdge?: { + select: ProposalsChunkEdgeSelect; + }; +}; +export interface CreateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was created by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type CreateRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface UpdateRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was updated by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type UpdateRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface DeleteRegistryBindingPayload { + clientMutationId?: string | null; + /** The `RegistryBinding` that was deleted by this mutation. */ + registryBinding?: RegistryBinding | null; + registryBindingEdge?: RegistryBindingEdge | null; +} +export type DeleteRegistryBindingPayloadSelect = { + clientMutationId?: boolean; + registryBinding?: { + select: RegistryBindingSelect; + }; + registryBindingEdge?: { + select: RegistryBindingEdgeSelect; + }; +}; +export interface CreateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was created by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type CreateRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface UpdateRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was updated by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type UpdateRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface DeleteRegistryPayload { + clientMutationId?: string | null; + /** The `Registry` that was deleted by this mutation. */ + registry?: Registry | null; + registryEdge?: RegistryEdge | null; +} +export type DeleteRegistryPayloadSelect = { + clientMutationId?: boolean; + registry?: { + select: RegistrySelect; + }; + registryEdge?: { + select: RegistryEdgeSelect; + }; +}; +export interface CreateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was created by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type CreateRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface UpdateRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was updated by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type UpdateRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface DeleteRegistryGrantPayload { + clientMutationId?: string | null; + /** The `RegistryGrant` that was deleted by this mutation. */ + registryGrant?: RegistryGrant | null; + registryGrantEdge?: RegistryGrantEdge | null; +} +export type DeleteRegistryGrantPayloadSelect = { + clientMutationId?: boolean; + registryGrant?: { + select: RegistryGrantSelect; + }; + registryGrantEdge?: { + select: RegistryGrantEdgeSelect; + }; +}; +export interface CreateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was created by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type CreateRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface UpdateRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was updated by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type UpdateRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface DeleteRepositoryPayload { + clientMutationId?: string | null; + /** The `Repository` that was deleted by this mutation. */ + repository?: Repository | null; + repositoryEdge?: RepositoryEdge | null; +} +export type DeleteRepositoryPayloadSelect = { + clientMutationId?: boolean; + repository?: { + select: RepositorySelect; + }; + repositoryEdge?: { + select: RepositoryEdgeSelect; + }; +}; +export interface CreateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was created by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type CreateRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface UpdateRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was updated by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type UpdateRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface DeleteRepositoryEventPayload { + clientMutationId?: string | null; + /** The `RepositoryEvent` that was deleted by this mutation. */ + repositoryEvent?: RepositoryEvent | null; + repositoryEventEdge?: RepositoryEventEdge | null; +} +export type DeleteRepositoryEventPayloadSelect = { + clientMutationId?: boolean; + repositoryEvent?: { + select: RepositoryEventSelect; + }; + repositoryEventEdge?: { + select: RepositoryEventEdgeSelect; + }; +}; +export interface CreateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was created by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type CreateRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; + }; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; + }; +}; +export interface UpdateRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was updated by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type UpdateRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; + }; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; + }; +}; +export interface DeleteRepositoryWorkflowPayload { + clientMutationId?: string | null; + /** The `RepositoryWorkflow` that was deleted by this mutation. */ + repositoryWorkflow?: RepositoryWorkflow | null; + repositoryWorkflowEdge?: RepositoryWorkflowEdge | null; +} +export type DeleteRepositoryWorkflowPayloadSelect = { + clientMutationId?: boolean; + repositoryWorkflow?: { + select: RepositoryWorkflowSelect; }; - platformWebhookEventEdge?: { - select: PlatformWebhookEventEdgeSelect; + repositoryWorkflowEdge?: { + select: RepositoryWorkflowEdgeSelect; }; }; export interface CreateResourcePayload { @@ -17294,6 +31950,18 @@ export type DeleteWebhookEventPayloadSelect = { 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 `InfraCommit` edge in the connection. */ export interface InfraCommitEdge { cursor?: string | null; @@ -17330,6 +31998,30 @@ export type FunctionGraphCommitEdgeSelect = { 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 `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -17342,6 +32034,90 @@ export type ContentPresetEdgeSelect = { 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 DatabaseGraphObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphObjectSelect; + }; +}; +/** 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 DatabaseGraphRefEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseGraphRefSelect; + }; +}; +/** 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. */ export interface DbPresetEdge { cursor?: string | null; @@ -17534,6 +32310,30 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; +/** A `Image` edge in the connection. */ +export interface ImageEdge { + cursor?: string | null; + /** The `Image` at the end of the edge. */ + node?: Image | null; +} +export type ImageEdgeSelect = { + cursor?: boolean; + node?: { + 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. */ export interface InfraObjectEdge { cursor?: string | null; @@ -17606,6 +32406,30 @@ 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 `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -17702,6 +32526,30 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; +/** A `PlatformImage` edge in the connection. */ +export interface PlatformImageEdge { + cursor?: string | null; + /** The `PlatformImage` at the end of the edge. */ + node?: PlatformImage | null; +} +export type PlatformImageEdgeSelect = { + cursor?: boolean; + node?: { + 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. */ export interface PlatformInfraObjectEdge { cursor?: string | null; @@ -17738,6 +32586,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 +32634,150 @@ 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 `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 +32886,150 @@ 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 `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/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..f3400f0040 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -3,7 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { BuildModel } from './build'; +export { BuildStepModel } from './buildStep'; 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 +33,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 +43,8 @@ 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 { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -38,13 +53,29 @@ 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 { PlatformRepositoryWorkflowModel } from './platformRepositoryWorkflow'; export { PlatformResourceModel } from './platformResource'; export { PlatformResourceDeclaredCapacityModel } from './platformResourceDeclaredCapacity'; export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; @@ -59,6 +90,18 @@ 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 { RepositoryWorkflowModel } from './repositoryWorkflow'; export { ResourceModel } from './resource'; export { ResourceDeclaredCapacityModel } from './resourceDeclaredCapacity'; export { ResourceDefinitionModel } from './resourceDefinition'; 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/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/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/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/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/mutation/index.ts b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts index 948d1e8903..151e707fad 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -12,6 +12,23 @@ import type { AddNodeInput, AddNodeAndSaveInput, CopyGraphInput, + DatabaseAddEdgeInput, + DatabaseAddEdgeAndSaveInput, + DatabaseAddNodeInput, + DatabaseAddNodeAndSaveInput, + DatabaseCopyGraphInput, + DatabaseCreateFunctionGraphInput, + DatabaseGraphInitEmptyRepoInput, + DatabaseGraphInsertNodeAtPathInput, + DatabaseGraphInsertNodesAtPathsInput, + DatabaseGraphSetAndCommitInput, + DatabaseGraphSetDataAtPathInput, + DatabaseGraphSetManyAndCommitInput, + DatabaseImportDefinitionsInput, + DatabaseImportGraphJsonInput, + DatabaseSaveGraphInput, + DatabaseStartExecutionInput, + DatabaseValidateFunctionGraphInput, ImportDefinitionsInput, ImportGraphJsonInput, InfraInitEmptyRepoInput, @@ -49,6 +66,23 @@ import type { AddNodePayload, AddNodeAndSavePayload, CopyGraphPayload, + DatabaseAddEdgePayload, + DatabaseAddEdgeAndSavePayload, + DatabaseAddNodePayload, + DatabaseAddNodeAndSavePayload, + DatabaseCopyGraphPayload, + DatabaseCreateFunctionGraphPayload, + DatabaseGraphInitEmptyRepoPayload, + DatabaseGraphInsertNodeAtPathPayload, + DatabaseGraphInsertNodesAtPathsPayload, + DatabaseGraphSetAndCommitPayload, + DatabaseGraphSetDataAtPathPayload, + DatabaseGraphSetManyAndCommitPayload, + DatabaseImportDefinitionsPayload, + DatabaseImportGraphJsonPayload, + DatabaseSaveGraphPayload, + DatabaseStartExecutionPayload, + DatabaseValidateFunctionGraphPayload, ImportDefinitionsPayload, ImportGraphJsonPayload, InfraInitEmptyRepoPayload, @@ -86,6 +120,23 @@ import type { AddNodePayloadSelect, AddNodeAndSavePayloadSelect, CopyGraphPayloadSelect, + DatabaseAddEdgePayloadSelect, + DatabaseAddEdgeAndSavePayloadSelect, + DatabaseAddNodePayloadSelect, + DatabaseAddNodeAndSavePayloadSelect, + DatabaseCopyGraphPayloadSelect, + DatabaseCreateFunctionGraphPayloadSelect, + DatabaseGraphInitEmptyRepoPayloadSelect, + DatabaseGraphInsertNodeAtPathPayloadSelect, + DatabaseGraphInsertNodesAtPathsPayloadSelect, + DatabaseGraphSetAndCommitPayloadSelect, + DatabaseGraphSetDataAtPathPayloadSelect, + DatabaseGraphSetManyAndCommitPayloadSelect, + DatabaseImportDefinitionsPayloadSelect, + DatabaseImportGraphJsonPayloadSelect, + DatabaseSaveGraphPayloadSelect, + DatabaseStartExecutionPayloadSelect, + DatabaseValidateFunctionGraphPayloadSelect, ImportDefinitionsPayloadSelect, ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, @@ -135,6 +186,57 @@ export interface AddNodeAndSaveVariables { 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 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 ImportDefinitionsVariables { input: ImportDefinitionsInput; } @@ -385,6 +487,514 @@ 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' + ), + }), + 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' + ), + }), importDefinitions: ( args: ImportDefinitionsVariables, 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..4b43ad9fd1 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:** 8 - **Custom queries:** 0 -- **Custom mutations:** 13 +- **Custom mutations:** 17 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/config/orm/README.md b/sdk/constructive-sdk/src/config/orm/README.md index 90c6f61a0b..77737e6b1d 100644 --- a/sdk/constructive-sdk/src/config/orm/README.md +++ b/sdk/constructive-sdk/src/config/orm/README.md @@ -22,7 +22,10 @@ const db = createClient({ | Model | Operations | |-------|------------| | `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 | @@ -39,6 +42,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 +53,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 +75,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 +164,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 +174,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 +196,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 +249,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 +258,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 +356,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 @@ -304,7 +488,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 +503,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 +518,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 +533,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` diff --git a/sdk/constructive-sdk/src/config/orm/index.ts b/sdk/constructive-sdk/src/config/orm/index.ts index bf16135b3c..bdd6acef44 100644 --- a/sdk/constructive-sdk/src/config/orm/index.ts +++ b/sdk/constructive-sdk/src/config/orm/index.ts @@ -6,7 +6,10 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { ConfigModel } from './models/config'; +import { InternalConfigModel } from './models/internalConfig'; +import { InternalSecretModel } from './models/internalSecret'; import { PlatformConfigModel } from './models/platformConfig'; +import { PlatformInternalConfigModel } from './models/platformInternalConfig'; import { PlatformInternalSecretModel } from './models/platformInternalSecret'; import { PlatformSecretModel } from './models/platformSecret'; import { SecretModel } from './models/secret'; @@ -44,7 +47,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { config: new ConfigModel(client), + internalConfig: new InternalConfigModel(client), + internalSecret: new InternalSecretModel(client), platformConfig: new PlatformConfigModel(client), + platformInternalConfig: new PlatformInternalConfigModel(client), platformInternalSecret: new PlatformInternalSecretModel(client), platformSecret: new PlatformSecretModel(client), secret: new SecretModel(client), diff --git a/sdk/constructive-sdk/src/config/orm/input-types.ts b/sdk/constructive-sdk/src/config/orm/input-types.ts index dded259245..b1619f849b 100644 --- a/sdk/constructive-sdk/src/config/orm/input-types.ts +++ b/sdk/constructive-sdk/src/config/orm/input-types.ts @@ -236,6 +236,7 @@ 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 +256,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 +321,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 +355,6 @@ export interface PlatformInternalSecret { id: string; labels?: Record | null; name?: string | null; - namespaceId?: string | null; realm?: string | null; retiredAt?: string | null; rotatedAt?: string | null; @@ -339,13 +403,20 @@ export interface PageInfo { } // ============ Entity Relation Types ============ 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 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; @@ -354,6 +425,7 @@ export type SecretWithRelations = Secret & SecretRelations; export type ConfigSelect = { annotations?: boolean; createdAt?: boolean; + createdByPrincipal?: boolean; databaseId?: boolean; description?: boolean; expiresAt?: boolean; @@ -364,11 +436,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 +479,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 +502,6 @@ export type PlatformInternalSecretSelect = { id?: boolean; labels?: boolean; name?: boolean; - namespaceId?: boolean; realm?: boolean; retiredAt?: boolean; rotatedAt?: boolean; @@ -430,6 +544,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 +570,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 +644,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 +668,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 +718,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. */ @@ -591,6 +803,8 @@ export type 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' @@ -614,13 +828,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 +912,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 +953,6 @@ export type PlatformInternalSecretOrderBy = | 'ID_DESC' | 'LABELS_ASC' | 'LABELS_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' @@ -727,6 +1023,7 @@ export interface CreateConfigInput { clientMutationId?: string; config: { annotations?: Record; + createdByPrincipal?: string; databaseId: string; description?: string; expiresAt?: string; @@ -735,11 +1032,13 @@ export interface CreateConfigInput { 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; @@ -748,6 +1047,7 @@ export interface ConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdateConfigInput { @@ -759,10 +1059,77 @@ 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; + provider?: string; + realm?: string; + value?: string; + }; +} +export interface InternalConfigPatch { + annotations?: Record | null; + databaseId?: string | null; + description?: string | null; + expiresAt?: string | null; + labels?: Record | null; + name?: string | null; + provider?: string | null; + realm?: string | null; + value?: string | null; +} +export interface UpdateInternalConfigInput { + clientMutationId?: string; + id: string; + internalConfigPatch: InternalConfigPatch; +} +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; +} export interface CreatePlatformConfigInput { clientMutationId?: string; platformConfig: { annotations?: Record; + createdByPrincipal?: string; description?: string; expiresAt?: string; labels?: Record; @@ -770,11 +1137,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 +1151,7 @@ export interface PlatformConfigPatch { namespaceId?: string | null; provider?: string | null; realm?: string | null; + updatedByPrincipal?: string | null; value?: string | null; } export interface UpdatePlatformConfigInput { @@ -793,6 +1163,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 +1202,6 @@ export interface CreatePlatformInternalSecretInput { description?: string; labels?: Record; name?: string; - namespaceId: string; realm?: string; retiredAt?: string; rotatedAt?: string; @@ -811,7 +1212,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 +1298,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; @@ -933,20 +1361,17 @@ export interface _SecretsSetInput { } 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 +1380,6 @@ export interface PlatformInternalSecretsSetInput { algo?: string; clientMutationId?: string; secretName?: string; - secretNamespaceId?: string; secretRealm?: string; secretValue?: string; } @@ -1002,6 +1426,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 +1446,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 +1480,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 +1498,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; } @@ -1201,6 +1705,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 +1795,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 +1852,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 +1876,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/index.ts b/sdk/constructive-sdk/src/config/orm/models/index.ts index 0823cce0ad..05b2d25428 100644 --- a/sdk/constructive-sdk/src/config/orm/models/index.ts +++ b/sdk/constructive-sdk/src/config/orm/models/index.ts @@ -4,7 +4,10 @@ * DO NOT EDIT - changes will be overwritten */ 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..03f9c370c9 100644 --- a/sdk/constructive-sdk/src/config/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/config/orm/mutation/index.ts @@ -7,6 +7,10 @@ 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, @@ -20,6 +24,10 @@ import type { PlatformSecretsRotateInput, PlatformSecretsSetInput, ProvisionBucketInput, + _InternalSecretsDelPayload, + _InternalSecretsRemoveArrayPayload, + _InternalSecretsRotatePayload, + _InternalSecretsSetPayload, _SecretsDelPayload, _SecretsRemoveArrayPayload, _SecretsRotatePayload, @@ -33,6 +41,10 @@ import type { PlatformSecretsRotatePayload, PlatformSecretsSetPayload, ProvisionBucketPayload, + _InternalSecretsDelPayloadSelect, + _InternalSecretsRemoveArrayPayloadSelect, + _InternalSecretsRotatePayloadSelect, + _InternalSecretsSetPayloadSelect, _SecretsDelPayloadSelect, _SecretsRemoveArrayPayloadSelect, _SecretsRotatePayloadSelect, @@ -48,6 +60,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; } @@ -96,6 +120,125 @@ export interface ProvisionBucketVariables { } 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: { 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..860f38ead6 100644 --- a/sdk/constructive-sdk/src/infra/orm/README.md +++ b/sdk/constructive-sdk/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/infra/orm/index.ts b/sdk/constructive-sdk/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-sdk/src/infra/orm/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-sdk/src/infra/orm/input-types.ts b/sdk/constructive-sdk/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-sdk/src/infra/orm/input-types.ts +++ b/sdk/constructive-sdk/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts b/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts @@ -0,0 +1,245 @@ +/** + * ContentPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPreset', + 'createContentPreset', + 'contentPreset', + args.select, + args.data, + 'CreateContentPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetInput', + 'id', + 'contentPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', + { + id: args.where.id, + }, + 'DeleteContentPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/index.ts b/sdk/constructive-sdk/src/infra/orm/models/index.ts index 1e5132eecf..497a17ea94 100644 --- a/sdk/constructive-sdk/src/infra/orm/models/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-sdk/src/infra/orm/mutation/index.ts b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts index f266633531..04353e5b5c 100644 --- a/sdk/constructive-sdk/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/modules/README.md b/sdk/constructive-sdk/src/modules/README.md index 6acdfe7208..f0b0272f82 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:** 87 - **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..c349e346c9 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 | @@ -84,6 +87,7 @@ const db = createClient({ | `rateLimitsModule` | findMany, findOne, create, update, delete | | `realtimeModule` | 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 +124,16 @@ 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 | | `hasResources` | Boolean | Yes | +| `hasRuns` | Boolean | Yes | | `id` | UUID | No | | `messageTableId` | UUID | Yes | | `messageTableName` | String | Yes | @@ -144,25 +153,28 @@ CRUD operations for AgentModule records. | `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, 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, 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, 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, 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: '', hasResources: '', hasRuns: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', 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(); @@ -585,12 +597,16 @@ CRUD operations for CatalogModule records. | `functionsTableId` | UUID | Yes | | `functionsTableName` | String | Yes | | `id` | UUID | No | +| `imagesTableId` | UUID | Yes | +| `imagesTableName` | 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 +630,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, 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, 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, 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, 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: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', imagesTableId: '', imagesTableName: '', 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 +645,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` @@ -1908,9 +1942,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 +1952,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 +1987,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 +2029,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 +2078,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 +2092,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 +2102,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 +2247,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 +2382,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 +2494,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 +2663,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 +2681,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(); @@ -3067,6 +3245,72 @@ 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 | +| `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, 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, 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: '', 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. @@ -3091,6 +3335,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 +3362,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, 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, 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: '', 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 +3445,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 | @@ -3211,13 +3459,13 @@ CRUD operations for RouteModule records. ```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 } }).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 } }).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: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3271,8 +3519,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 +3533,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(); @@ -3439,11 +3689,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 +3701,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 +3713,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(); @@ -3556,11 +3805,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 +3817,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 +3829,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(); @@ -3964,7 +4212,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:** diff --git a/sdk/constructive-sdk/src/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts index 249a7e5114..43dbf49ab3 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'; @@ -68,6 +71,7 @@ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { RealtimeModuleModel } from './models/realtimeModule'; 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 +135,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 +163,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), @@ -184,6 +191,7 @@ export function createClient(config: OrmClientConfig) { rateLimitsModule: new RateLimitsModuleModel(client), realtimeModule: new RealtimeModuleModel(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..190922c5a8 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -237,11 +237,16 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; id: string; messageTableId?: string | null; messageTableName?: string | null; @@ -261,13 +266,16 @@ export interface AgentModule { 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; @@ -514,12 +522,16 @@ export interface CatalogModule { functionsTableId?: string | null; functionsTableName?: string | null; id: string; + imagesTableId?: string | null; + imagesTableName?: 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 +551,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; @@ -1343,29 +1373,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 +1410,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 +1450,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 +1517,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 +1576,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 +1637,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 +1721,7 @@ export interface MerkleStoreModule { createdAt?: string | null; databaseId?: string | null; entityField?: string | null; + entityTableId?: string | null; functionPrefix?: string | null; id: string; objectTableId?: string | null; @@ -1990,6 +2088,46 @@ 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; + schemaId?: string | null; + scope?: string | null; + search?: Record | null; + workflowsTableId?: string | null; + workflowsTableName?: string | null; +} export interface ResourceModule { apiName?: string | null; databaseId?: string | null; @@ -2007,6 +2145,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 +2203,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; @@ -2078,7 +2220,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 +2230,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. */ @@ -2161,11 +2307,9 @@ export interface SiteSurfaceModule { sitesTableName?: 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 +2319,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; @@ -2226,11 +2371,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 +2383,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; @@ -2428,8 +2572,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 +2616,6 @@ export interface FunctionInvocationModuleRelations { } export interface FunctionModuleRelations { functionDeploymentModules?: ConnectionResult; - httpRouteModules?: ConnectionResult; webhookModules?: ConnectionResult; } export interface GraphExecutionModuleRelations { @@ -2483,28 +2626,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; } @@ -2527,10 +2672,10 @@ export interface RateLimitMetersModuleRelations {} export interface RateLimitsModuleRelations {} export interface RealtimeModuleRelations {} 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 +2694,6 @@ export interface SiteSurfaceModuleRelations { export interface StorageLogModuleRelations {} export interface StorageModuleRelations { fileRefFields?: ConnectionResult; - httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} @@ -2579,9 +2723,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 +2760,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; @@ -2647,6 +2794,7 @@ export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; 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 +2827,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: boolean; messageTableId?: boolean; messageTableName?: boolean; @@ -2703,13 +2856,16 @@ export type AgentModuleSelect = { 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; @@ -2949,12 +3105,16 @@ export type CatalogModuleSelect = { functionsTableId?: boolean; functionsTableName?: boolean; id?: boolean; + imagesTableId?: boolean; + imagesTableName?: 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 +3164,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; @@ -3526,12 +3704,6 @@ export type FunctionModuleSelect = { filter?: FunctionDeploymentModuleFilter; orderBy?: FunctionDeploymentModuleOrderBy[]; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; webhookModules?: { select: WebhookModuleSelect; first?: number; @@ -3621,69 +3793,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 +3858,7 @@ export type InferenceLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; usageSummaryTableId?: boolean; @@ -3758,6 +3922,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 +3979,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,6 +4042,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; @@ -3895,6 +4126,7 @@ export type MerkleStoreModuleSelect = { createdAt?: boolean; databaseId?: boolean; entityField?: boolean; + entityTableId?: boolean; functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; @@ -3925,6 +4157,12 @@ export type MerkleStoreModuleSelect = { filter?: GraphModuleFilter; orderBy?: GraphModuleOrderBy[]; }; + k8sAdmissionModules?: { + select: K8sAdmissionModuleSelect; + first?: number; + filter?: K8sAdmissionModuleFilter; + orderBy?: K8sAdmissionModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4199,14 +4437,54 @@ 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; defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; + hasAttachments?: boolean; + hasBuilds?: boolean; id?: boolean; - installationStoreName?: 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; + schemaId?: boolean; + scope?: boolean; + search?: boolean; + workflowsTableId?: boolean; + workflowsTableName?: boolean; +}; +export type ResourceModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + installationStoreName?: boolean; merkleStoreModuleId?: boolean; namespaceModuleId?: boolean; policies?: boolean; @@ -4216,6 +4494,8 @@ export type ResourceModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + registryBindingsTableId?: boolean; + registryBindingsTableName?: boolean; requirementsStateViewName?: boolean; resolvedRequirementsViewName?: boolean; resourceBillingRollupFunction?: boolean; @@ -4242,12 +4522,6 @@ export type ResourceModuleSelect = { namespaceModule?: { select: NamespaceModuleSelect; }; - httpRouteModules?: { - select: HttpRouteModuleSelect; - first?: number; - filter?: HttpRouteModuleFilter; - orderBy?: HttpRouteModuleOrderBy[]; - }; }; export type RlsModuleSelect = { apiName?: boolean; @@ -4284,6 +4558,8 @@ export type RouteModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + redirectsTableId?: boolean; + redirectsTableName?: boolean; resolverFunctionName?: boolean; routeBindingsTableId?: boolean; routeBindingsTableName?: boolean; @@ -4310,8 +4586,10 @@ export type SecureTableProvisionSelect = { fields?: boolean; grants?: boolean; id?: boolean; + module?: boolean; nodes?: boolean; outFields?: boolean; + owns?: boolean; policies?: boolean; schemaId?: boolean; tableId?: boolean; @@ -4389,11 +4667,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 +4679,7 @@ export type StorageLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; storageLogTableId?: boolean; @@ -4458,19 +4735,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 +4749,7 @@ export type TransferLogModuleSelect = { privateSchemaName?: boolean; publicSchemaName?: boolean; retention?: boolean; + rollupFunctionName?: boolean; schemaId?: boolean; scope?: boolean; transferLogTableId?: boolean; @@ -4643,16 +4913,26 @@ 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 `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. */ @@ -4695,12 +4975,14 @@ export interface AgentModuleFilter { 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 +4991,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. */ @@ -5187,6 +5473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -5203,6 +5493,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 +5542,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 +5593,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 +5603,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. */ @@ -6319,10 +6649,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. */ @@ -6514,107 +6840,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 +6935,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 +6961,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 +6987,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 +7118,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 +7244,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,23 +7374,79 @@ 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?: MembershipTypesModuleFilter; + not?: MachineModuleFilter; /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; + 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; + /** 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. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: MembershipTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: MembershipTypesModuleFilter[]; + /** 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 MembershipsModuleFilter { /** Filter by the object’s `actorMaskCheck` field. */ @@ -7105,6 +7563,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 +7573,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. */ @@ -7686,6 +8150,90 @@ 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 `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[]; @@ -7699,10 +8247,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 +8281,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 +8413,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. */ @@ -7909,6 +8461,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 +8471,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. */ @@ -8063,8 +8619,6 @@ export interface SiteSurfaceModuleFilter { sitesTableName?: 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 +8627,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 +8649,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,10 +8717,6 @@ 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 `maxBulkFiles` field. */ @@ -8209,8 +8759,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 +8767,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 +8789,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. */ @@ -8580,16 +9128,26 @@ 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_RESOURCES_ASC' | 'HAS_RESOURCES_DESC' + | 'HAS_RUNS_ASC' + | 'HAS_RUNS_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -8631,12 +9189,14 @@ export type AgentModuleOrderBy = | '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 +9204,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' @@ -9042,6 +9606,10 @@ 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' | 'NAMESPACES_TABLE_ID_ASC' | 'NAMESPACES_TABLE_ID_DESC' | 'NAMESPACES_TABLE_NAME_ASC' @@ -9057,6 +9625,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 +9665,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 +9713,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 +9722,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' @@ -10195,82 +10803,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 +10887,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 +10935,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 +11049,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,6 +11163,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' @@ -10597,18 +11283,70 @@ export type LimitsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type MembershipTypesModuleOrderBy = +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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +export type MembershipTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | '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 MembershipsModuleOrderBy = @@ -10712,6 +11450,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' @@ -11213,6 +11953,86 @@ 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' + | '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' @@ -11249,6 +12069,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 +12185,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' @@ -11398,11 +12226,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' @@ -11526,16 +12358,12 @@ export type SiteSurfaceModuleOrderBy = | 'SITE_WEB_CONFIG_TABLE_NAME_ASC' | 'SITE_WEB_CONFIG_TABLE_NAME_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 +12385,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' @@ -11656,16 +12486,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 +12513,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' @@ -11968,11 +12796,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; messageTableId?: string; messageTableName?: string; personaTableId?: string; @@ -11991,13 +12824,16 @@ export interface CreateAgentModuleInput { 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 +12842,16 @@ 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; hasResources?: boolean | null; + hasRuns?: boolean | null; messageTableId?: string | null; messageTableName?: string | null; personaTableId?: string | null; @@ -12029,13 +12870,16 @@ export interface AgentModulePatch { 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; @@ -12495,12 +13339,16 @@ export interface CreateCatalogModuleInput { entityTableId?: string; functionsTableId?: string; functionsTableName?: string; + imagesTableId?: string; + imagesTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -12538,12 +13386,16 @@ export interface CatalogModulePatch { entityTableId?: string | null; functionsTableId?: string | null; functionsTableName?: string | null; + imagesTableId?: string | null; + imagesTableName?: 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 +13424,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; } @@ -13932,140 +14820,142 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreateHttpRouteModuleInput { +export interface CreateI18NModuleInput { clientMutationId?: string; - httpRouteModule: { + i18NModule: { 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; + settingsTableId?: string; }; } -export interface HttpRouteModulePatch { +export interface I18NModulePatch { 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; + 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; @@ -14076,6 +14966,7 @@ export interface CreateInferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -14083,11 +14974,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 +14987,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 +15136,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,46 +15280,94 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface CreateLimitsModuleInput { +export interface CreateK8sAdmissionModuleInput { clientMutationId?: string; - limitsModule: { - actorTableId?: string; - aggregateTableId?: string; + k8sAdmissionModule: { apiName?: string; - capCheckTrigger?: string; - creditCodeItemsTableId?: string; - creditCodesTableId?: string; - creditRedemptionsTableId?: string; databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; entityTableId?: string; - eventsTableId?: string; - limitAggregateCheckSoftFunction?: string; - limitCapsDefaultsTableId?: string; - limitCapsTableId?: string; - limitCheckFunction?: string; - limitCheckSoftFunction?: string; - limitCreditsTableId?: string; - limitDecrementFunction?: string; - limitDecrementTrigger?: string; - limitDefaults?: Record; - limitIncrementFunction?: string; - limitIncrementTrigger?: string; - limitUpdateTrigger?: string; - limitWarningStateTableId?: string; - limitWarningsTableId?: string; - prefix?: string; + k8sResourceKindsTableId?: string; + k8sSpecRulesTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; publicSchemaName?: string; - resolveCapFunction?: string; - schemaId?: string; scope: string; - tableId?: string; - tableName?: 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: { + actorTableId?: string; + aggregateTableId?: string; + apiName?: string; + capCheckTrigger?: string; + creditCodeItemsTableId?: string; + creditCodesTableId?: string; + creditRedemptionsTableId?: string; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + eventsTableId?: string; + limitAggregateCheckSoftFunction?: string; + limitCapsDefaultsTableId?: string; + limitCapsTableId?: string; + limitCheckFunction?: string; + limitCheckSoftFunction?: string; + limitCreditsTableId?: string; + limitDecrementFunction?: string; + limitDecrementTrigger?: string; + limitDefaults?: Record; + limitIncrementFunction?: string; + limitIncrementTrigger?: string; + limitUpdateTrigger?: string; + limitWarningStateTableId?: string; + limitWarningsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + resolveCapFunction?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; }; } export interface LimitsModulePatch { @@ -14434,6 +15418,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 +15610,7 @@ export interface CreateMerkleStoreModuleInput { commitTableId?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; objectTableId?: string; prefix?: string; @@ -14583,6 +15630,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; @@ -15196,6 +16244,96 @@ 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; + 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; + 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: { @@ -15214,6 +16352,8 @@ export interface CreateResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -15252,6 +16392,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 +16485,8 @@ export interface CreateRouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -15371,6 +16515,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; @@ -15418,8 +16564,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 +16579,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; @@ -15591,11 +16741,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 +16752,7 @@ export interface CreateStorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -15613,11 +16762,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 +16773,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; @@ -15741,11 +16889,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 +16900,7 @@ export interface CreateTransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -15763,11 +16910,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 +16921,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; @@ -16169,7 +17315,6 @@ export const connectionFieldsMap = { }, FunctionModule: { functionDeploymentModules: 'FunctionDeploymentModule', - httpRouteModules: 'HttpRouteModule', webhookModules: 'WebhookModule', }, GraphModule: { @@ -16182,6 +17327,7 @@ export const connectionFieldsMap = { contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', + k8sAdmissionModules: 'K8sAdmissionModule', pagesModules: 'PagesModule', resourceModules: 'ResourceModule', }, @@ -16190,16 +17336,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 +17500,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 +17554,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 +17608,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 +17674,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 +17681,16 @@ 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; hasResources?: boolean; + hasRuns?: boolean; id?: string; messageTableId?: string; messageTableName?: string; @@ -16581,13 +17710,16 @@ export interface AgentModuleInput { 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 { @@ -16840,12 +17972,16 @@ export interface CatalogModuleInput { functionsTableId?: string; functionsTableName?: string; id?: string; + imagesTableId?: string; + imagesTableName?: string; namespacesTableId?: string; namespacesTableName?: string; policies?: Record; privateApiName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resourceDefinitionsTableId?: string; resourceDefinitionsTableName?: string; resourceInstallationsTableId?: string; @@ -16865,15 +18001,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; @@ -16883,22 +18047,12 @@ 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 { - apiName?: string; - databaseId: string; - entityField?: string; - id?: string; - privateApiName?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `ConnectedAccountsModule` */ export interface ConnectedAccountsModuleInput { apiName?: string; @@ -17703,30 +18857,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 +18885,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 +18927,7 @@ export interface InferenceLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; usageSummaryTableId?: string; @@ -17833,6 +18988,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 +19048,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,8 +19110,35 @@ export interface LimitsModuleInput { tableId?: string; tableName?: string; } -/** An input for mutations affecting `MembershipTypesModule` */ -export interface MembershipTypesModuleInput { +/** 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; id?: string; schemaId?: string; @@ -17976,6 +19198,7 @@ export interface MerkleStoreModuleInput { createdAt?: string; databaseId: string; entityField?: string; + entityTableId?: string; functionPrefix?: string; id?: string; objectTableId?: string; @@ -18335,6 +19558,47 @@ 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; + schemaId?: string; + scope: string; + search?: Record; + workflowsTableId?: string; + workflowsTableName?: string; +} /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; @@ -18353,6 +19617,8 @@ export interface ResourceModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + registryBindingsTableId?: string; + registryBindingsTableName?: string; requirementsStateViewName?: string; resolvedRequirementsViewName?: string; resourceBillingRollupFunction?: string; @@ -18411,6 +19677,8 @@ export interface RouteModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + redirectsTableId?: string; + redirectsTableName?: string; resolverFunctionName?: string; routeBindingsTableId?: string; routeBindingsTableName?: string; @@ -18437,10 +19705,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. */ @@ -18513,11 +19785,9 @@ export interface SiteSurfaceModuleInput { } /** 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 +19797,7 @@ export interface StorageLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; storageLogTableId?: string; @@ -18580,11 +19851,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 +19863,7 @@ export interface TransferLogModuleInput { privateSchemaName?: string; publicSchemaName?: string; retention?: string; + rollupFunctionName?: string; schemaId?: string; scope: string; transferLogTableId?: string; @@ -19138,6 +20408,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. */ @@ -19368,69 +20642,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 +20840,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. */ @@ -19696,10 +20954,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 +20988,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. */ @@ -20215,6 +21473,10 @@ 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 `namespacesTableId` field. */ namespacesTableId?: UUIDFilter; /** Filter by the object’s `namespacesTableName` field. */ @@ -20231,6 +21493,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 +21627,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. */ @@ -20500,80 +21762,54 @@ export interface NamespaceModuleFilter { /** `webhookModules` exist. */ webhookModulesExist?: boolean; } -/** 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. */ - allowedOrigins?: StringListFilter; +/** 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?: StorageModuleFilter[]; + and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `catalogModuleId` field. */ - catalogModuleId?: UUIDFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; + /** 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 `defaultCapabilities` field. */ - defaultCapabilities?: StringListFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; + /** 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 `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. */ - filesTableName?: StringFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - 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 `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 `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; + /** Filter by the object’s `k8sAdmissionModules` relation. */ + k8sAdmissionModules?: MerkleStoreModuleToManyK8sAdmissionModuleFilter; + /** `k8sAdmissionModules` exist. */ + k8sAdmissionModulesExist?: boolean; /** Negates the expression. */ - not?: StorageModuleFilter; + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; /** 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; + 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. */ @@ -20582,65 +21818,91 @@ export interface StorageModuleFilter { 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 `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 `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; } -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleFilter { +/** 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. */ + allowedOrigins?: StringListFilter; /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; + and?: StorageModuleFilter[]; /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `catalogModuleId` field. */ + catalogModuleId?: UUIDFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** 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 `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + 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. */ + filesTableName?: StringFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** 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?: 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 +21911,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 { @@ -21178,6 +22442,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 +22532,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 +23702,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 +23792,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 +24017,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 +24152,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 +24242,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. */ @@ -23563,6 +24962,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 +26027,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 +26363,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 +26387,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 +26447,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 +26483,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 +26507,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; @@ -25219,6 +26699,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..9f631eee88 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'; @@ -66,6 +69,7 @@ export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { RealtimeModuleModel } from './realtimeModule'; 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/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..f2236fd4e4 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; diff --git a/sdk/constructive-sdk/src/remote/README.md b/sdk/constructive-sdk/src/remote/README.md new file mode 100644 index 0000000000..c4c799d9be --- /dev/null +++ b/sdk/constructive-sdk/src/remote/README.md @@ -0,0 +1,31 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 3 +- **Custom queries:** 0 +- **Custom mutations:** 1 + +**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..b71ca52e1b --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/README.md @@ -0,0 +1,187 @@ +# 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.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. + +- **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..622e69f23f --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/input-types.ts @@ -0,0 +1,1621 @@ +/** + * 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 (NULL until enrollment completes) */ + 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 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 (NULL until enrollment completes) */ + 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 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 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..989afbcbd6 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * 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 { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + 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..57392c3055 --- /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:** 5 + +**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..c01b7b9f7c --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/README.md @@ -0,0 +1,293 @@ +# 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` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).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..8f092228bf --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/input-types.ts @@ -0,0 +1,2175 @@ +/** + * 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 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 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 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 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 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..d7ef722242 --- /dev/null +++ b/sdk/constructive-sdk/src/storage/orm/mutation/index.ts @@ -0,0 +1,205 @@ +/** + * 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, + UploadPlatformFileInput, + UploadPlatformFileBulkInput, + FilesRenamePayload, + PlatformFilesRenamePayload, + ProvisionBucketPayload, + UploadPlatformFilePayload, + UploadPlatformFileBulkPayload, + FilesRenamePayloadSelect, + PlatformFilesRenamePayloadSelect, + ProvisionBucketPayloadSelect, + UploadPlatformFilePayloadSelect, + UploadPlatformFileBulkPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FilesRenameVariables { + input: FilesRenameInput; +} +export interface PlatformFilesRenameVariables { + input: PlatformFilesRenameInput; +} +/** + * 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. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +/** + * 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' + ), + }), + 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..c0c63ccafe 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,67 +700,6 @@ 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. @@ -1509,36 +718,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 +748,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 +777,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..330559a4a4 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 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 AppLimitDefaultPatch { + max?: string | null; + name?: string | null; + softMax?: string | null; +} +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. */ @@ -4314,198 +2183,16 @@ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** 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; + 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,144 +2804,57 @@ 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; @@ -5671,20 +2874,8 @@ export type ProvisionBucketPayloadSelect = { 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; -} -export type RevokeAchievementPayloadSelect = { - clientMutationId?: boolean; + provider?: boolean; + success?: boolean; }; export interface SeedAppLimitCapsDefaultsPayload { clientMutationId?: string | null; @@ -5702,14 +2893,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 +2909,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 +3354,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 +3719,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 +3839,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 +3935,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..176d63791b 100644 --- a/sdk/constructive-sdk/src/usage/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/mutation/index.ts @@ -7,44 +7,23 @@ 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. @@ -55,64 +34,20 @@ and lifecycle settings. 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 +77,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 +135,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 +193,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 - ), - }), }; }